QVR 4.1.0
A library to build Virtual Reality applications
Loading...
Searching...
No Matches
QVRRenderContext Class Reference

Context for rendering a frame. More...

#include <rendercontext.hpp>

Public Member Functions

 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 QVRFrustumfrustum (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.
 
bool haveUnitedScreenWall () const
 Returns whether there is a global 2D screen wall that is united across all windows.
 
const QVector3D & unitedScreenWallBottomLeft () const
 Returns the virtual world coordinates of the bottom left corner of the global screen wall united across all windows.
 
const QVector3D & unitedScreenWallBottomRight () const
 Returns the virtual world coordinates of the bottom right corner of the global screen wall united across all windows.
 
const QVector3D & unitedScreenWallTopLeft () const
 Returns the virtual world coordinates of the top left corner of the global screen wall united across all windows.
 
bool haveIntersectedScreenWall () const
 Returns whether there is a global 2D screen wall that is intersected across all windows.
 
const QVector3D & intersectedScreenWallBottomLeft () const
 Returns the virtual world coordinates of the bottom left corner of the global screen wall intersected across all windows.
 
const QVector3D & intersectedScreenWallBottomRight () const
 Returns the virtual world coordinates of the bottom right corner of the global screen wall intersected across all windows.
 
const QVector3D & intersectedScreenWallTopLeft () const
 Returns the virtual world coordinates of the top left corner of the global screen wall intersected across all windows.
 

Friends

class QVRWindow
 
class QVRManager
 
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:

  • 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.

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.

◆ haveIntersectedScreenWall()

bool QVRRenderContext::haveIntersectedScreenWall ( ) const
inline

Returns whether there is a global 2D screen wall that is intersected across all windows.

◆ haveUnitedScreenWall()

bool QVRRenderContext::haveUnitedScreenWall ( ) const
inline

Returns whether there is a global 2D screen wall that is united across all windows.

◆ intersectedScreenWallBottomLeft()

const QVector3D & QVRRenderContext::intersectedScreenWallBottomLeft ( ) const
inline

Returns the virtual world coordinates of the bottom left corner of the global screen wall intersected across all windows.

◆ intersectedScreenWallBottomRight()

const QVector3D & QVRRenderContext::intersectedScreenWallBottomRight ( ) const
inline

Returns the virtual world coordinates of the bottom right corner of the global screen wall intersected across all windows.

◆ intersectedScreenWallTopLeft()

const QVector3D & QVRRenderContext::intersectedScreenWallTopLeft ( ) const
inline

Returns the virtual world coordinates of the top left corner of the global screen wall intersected across all windows.

◆ 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.

◆ unitedScreenWallBottomLeft()

const QVector3D & QVRRenderContext::unitedScreenWallBottomLeft ( ) const
inline

Returns the virtual world coordinates of the bottom left corner of the global screen wall united across all windows.

◆ unitedScreenWallBottomRight()

const QVector3D & QVRRenderContext::unitedScreenWallBottomRight ( ) const
inline

Returns the virtual world coordinates of the bottom right corner of the global screen wall united across all windows.

◆ unitedScreenWallTopLeft()

const QVector3D & QVRRenderContext::unitedScreenWallTopLeft ( ) const
inline

Returns the virtual world coordinates of the top left corner of the global screen wall united across all windows.

◆ 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 Symbol Documentation

◆ operator<<

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

◆ operator>>

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

◆ QVRManager

friend class QVRManager
friend

◆ QVRWindow

friend class QVRWindow
friend

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