QVR 4.0.1
A library to build Virtual Reality applications
Public Member Functions | Friends | List of all members
QVRRenderContext Class Reference

Context for rendering a frame. More...

#include <rendercontext.hpp>

Public Member Functions

 QVRRenderContext ()
 Constructor. More...
 
int processIndex () const
 Returns the index of the process that the window displaying the view belongs to. More...
 
int windowIndex () const
 Returns the index of the window displaying the view, relative to the process it belongs to. More...
 
const QRect & windowGeometry () const
 Returns the pixel-based geometry of window on the Qt display screen (from QWindow::geometry()). More...
 
const QRect & screenGeometry () const
 Returns the pixel-based geometry of the Qt screen that the window is displayed on (from QScreen::geometry()). More...
 
const QVector3D & navigationPosition () const
 Returns the observer navigation position. More...
 
const QQuaternion & navigationOrientation () const
 Returns the observer navigation orientation. More...
 
QMatrix4x4 navigationMatrix () const
 Returns the observer navigation matrix. More...
 
QVector3D screenWallBottomLeft () const
 Returns the virtual world coordinates of the bottom left corner of the screen wall. More...
 
QVector3D screenWallBottomRight () const
 Returns the virtual world coordinates of the bottom right corner of the screen wall. More...
 
QVector3D screenWallTopLeft () const
 Returns the virtual world coordinates of the top left corner of the screen wall. More...
 
QVROutputMode outputMode () const
 Returns the output mode of the window displaying the view. More...
 
int viewCount () const
 Returns the number of views necessary to produce the frame. More...
 
QVREye eye (int view) const
 Returns the eye for rendering view. More...
 
QSize textureSize (int view) const
 Returns the texture size for rendering view. More...
 
const QVector3D & trackingPosition (int view) const
 Returns the observer tracking position for rendering view. More...
 
const QQuaternion & trackingOrientation (int view) const
 Returns the observer tracking orientation for rendering view. More...
 
QMatrix4x4 trackingMatrix (int view) const
 Returns the observer tracking matrix for rendering view. More...
 
const QVRFrustumfrustum (int view) const
 Returns the frustum for rendering view. More...
 
const QMatrix4x4 & viewMatrix (int view) const
 Returns the view matrix for rendering view. More...
 
const QMatrix4x4 & viewMatrixPure (int view) const
 Returns the pure view matrix (i.e. in tracking space, without navigation) for rendering view. More...
 

Friends

class QVRWindow
 
QDataStream & operator<< (QDataStream &ds, const QVRRenderContext &rc)
 
QDataStream & operator>> (QDataStream &ds, QVRRenderContext &rc)
 

Detailed Description

Context for rendering a frame.

A render context provides information about the views into the virtual world that are required for one output frame in a given window.

This information depends on the QVRWindow that the frame is produced for and on the QVRObserver that observes this window.

The render context is used in various places:

Constructor & Destructor Documentation

◆ QVRRenderContext()

QVRRenderContext::QVRRenderContext ( )

Constructor.

Member Function Documentation

◆ eye()

QVREye QVRRenderContext::eye ( int  view) const
inline

Returns the eye for rendering view.

◆ frustum()

const QVRFrustum & QVRRenderContext::frustum ( int  view) const
inline

Returns the frustum for rendering view.

◆ navigationMatrix()

QMatrix4x4 QVRRenderContext::navigationMatrix ( ) const
inline

Returns the observer navigation matrix.

◆ navigationOrientation()

const QQuaternion & QVRRenderContext::navigationOrientation ( ) const
inline

Returns the observer navigation orientation.

◆ navigationPosition()

const QVector3D & QVRRenderContext::navigationPosition ( ) const
inline

Returns the observer navigation position.

◆ outputMode()

QVROutputMode QVRRenderContext::outputMode ( ) const
inline

Returns the output mode of the window displaying the view.

◆ processIndex()

int QVRRenderContext::processIndex ( ) const
inline

Returns the index of the process that the window displaying the view belongs to.

◆ screenGeometry()

const QRect & QVRRenderContext::screenGeometry ( ) const
inline

Returns the pixel-based geometry of the Qt screen that the window is displayed on (from QScreen::geometry()).

◆ screenWallBottomLeft()

QVector3D QVRRenderContext::screenWallBottomLeft ( ) const
inline

Returns the virtual world coordinates of the bottom left corner of the screen wall.

◆ screenWallBottomRight()

QVector3D QVRRenderContext::screenWallBottomRight ( ) const
inline

Returns the virtual world coordinates of the bottom right corner of the screen wall.

◆ screenWallTopLeft()

QVector3D QVRRenderContext::screenWallTopLeft ( ) const
inline

Returns the virtual world coordinates of the top left corner of the screen wall.

◆ textureSize()

QSize QVRRenderContext::textureSize ( int  view) const
inline

Returns the texture size for rendering view.

◆ trackingMatrix()

QMatrix4x4 QVRRenderContext::trackingMatrix ( int  view) const
inline

Returns the observer tracking matrix for rendering view.

◆ trackingOrientation()

const QQuaternion & QVRRenderContext::trackingOrientation ( int  view) const
inline

Returns the observer tracking orientation for rendering view.

◆ trackingPosition()

const QVector3D & QVRRenderContext::trackingPosition ( int  view) const
inline

Returns the observer tracking position for rendering view.

◆ viewCount()

int QVRRenderContext::viewCount ( ) const
inline

Returns the number of views necessary to produce the frame.

◆ viewMatrix()

const QMatrix4x4 & QVRRenderContext::viewMatrix ( int  view) const
inline

Returns the view matrix for rendering view.

◆ viewMatrixPure()

const QMatrix4x4 & QVRRenderContext::viewMatrixPure ( int  view) const
inline

Returns the pure view matrix (i.e. in tracking space, without navigation) for rendering view.

◆ windowGeometry()

const QRect & QVRRenderContext::windowGeometry ( ) const
inline

Returns the pixel-based geometry of window on the Qt display screen (from QWindow::geometry()).

◆ windowIndex()

int QVRRenderContext::windowIndex ( ) const
inline

Returns the index of the window displaying the view, relative to the process it belongs to.

Friends And Related Function Documentation

◆ operator<<

QDataStream & operator<< ( QDataStream &  ds,
const QVRRenderContext rc 
)
friend

◆ operator>>

QDataStream & operator>> ( QDataStream &  ds,
QVRRenderContext rc 
)
friend

◆ QVRWindow

friend class QVRWindow
friend

The documentation for this class was generated from the following file: