Context for rendering a frame.
More...
#include <rendercontext.hpp>
|
| | QVRRenderContext () |
| | Constructor.
|
| int | processIndex () const |
| | Returns the index of the process that the window displaying the view belongs to.
|
| int | windowIndex () const |
| | Returns the index of the window displaying the view, relative to the process it belongs to.
|
| const QRect & | windowGeometry () const |
| | Returns the pixel-based geometry of window on the Qt display screen (from QWindow::geometry()).
|
| const QRect & | screenGeometry () const |
| | Returns the pixel-based geometry of the Qt screen that the window is displayed on (from QScreen::geometry()).
|
| const QVector3D & | navigationPosition () const |
| | Returns the observer navigation position.
|
| const QQuaternion & | navigationOrientation () const |
| | Returns the observer navigation orientation.
|
| QMatrix4x4 | navigationMatrix () const |
| | Returns the observer navigation matrix.
|
| QVector3D | screenWallBottomLeft () const |
| | Returns the virtual world coordinates of the bottom left corner of the screen wall.
|
| QVector3D | screenWallBottomRight () const |
| | Returns the virtual world coordinates of the bottom right corner of the screen wall.
|
| QVector3D | screenWallTopLeft () const |
| | Returns the virtual world coordinates of the top left corner of the screen wall.
|
| QVROutputMode | outputMode () const |
| | Returns the output mode of the window displaying the view.
|
| int | viewCount () const |
| | Returns the number of views necessary to produce the frame.
|
| QVREye | eye (int view) const |
| | Returns the eye for rendering view.
|
| QSize | textureSize (int view) const |
| | Returns the texture size for rendering view.
|
| const QVector3D & | trackingPosition (int view) const |
| | Returns the observer tracking position for rendering view.
|
| const QQuaternion & | trackingOrientation (int view) const |
| | Returns the observer tracking orientation for rendering view.
|
| QMatrix4x4 | trackingMatrix (int view) const |
| | Returns the observer tracking matrix for rendering view.
|
| const QVRFrustum & | frustum (int view) const |
| | Returns the frustum for rendering view.
|
| const QMatrix4x4 & | viewMatrix (int view) const |
| | Returns the view matrix for rendering view.
|
| const QMatrix4x4 & | viewMatrixPure (int view) const |
| | Returns the pure view matrix (i.e. in tracking space, without navigation) for rendering view.
|
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:
- In QVRApp::render(), it provides the information necessary for the application to render a frame.
- In the event handling functions of QVRApp, it provides information about the frame displayed in the window that generated the event.
- In the output plugin function QVROutputPlugin(), the context provides information useful for a plugin to decide how to process the frame before displaying it.
◆ QVRRenderContext()
| QVRRenderContext::QVRRenderContext |
( |
| ) |
|
◆ 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()
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.
◆ operator<<
◆ operator>>
◆ QVRWindow
The documentation for this class was generated from the following file: