![]() |
QVR
2.0.0
A library to build Virtual Reality applications
|
Context for rendering a frame. More...
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 QVRFrustum & | frustum (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) |
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:
| QVRRenderContext::QVRRenderContext | ( | ) |
Constructor.
|
inline |
Returns the eye for rendering view.
|
inline |
Returns the frustum for rendering view.
|
inline |
Returns the observer navigation matrix.
|
inline |
Returns the observer navigation orientation.
|
inline |
Returns the observer navigation position.
|
inline |
Returns the output mode of the window displaying the view.
|
inline |
Returns the index of the process that the window displaying the view belongs to.
|
inline |
Returns the pixel-based geometry of the Qt screen that the window is displayed on (from QScreen::geometry()).
|
inline |
Returns the virtual world coordinates of the bottom left corner of the screen wall.
|
inline |
Returns the virtual world coordinates of the bottom right corner of the screen wall.
|
inline |
Returns the virtual world coordinates of the top left corner of the screen wall.
|
inline |
Returns the texture size for rendering view.
|
inline |
Returns the observer tracking matrix for rendering view.
|
inline |
Returns the observer tracking orientation for rendering view.
|
inline |
Returns the observer tracking position for rendering view.
|
inline |
Returns the number of views necessary to produce the frame.
|
inline |
Returns the view matrix for rendering view.
|
inline |
Returns the pure view matrix (i.e. in tracking space, without navigation) for rendering view.
|
inline |
Returns the pixel-based geometry of window on the Qt display screen (from QWindow::geometry()).
|
inline |
Returns the index of the window displaying the view, relative to the process it belongs to.
|
friend |
|
friend |
|
friend |
1.8.13