![]() |
VR-Forces Developer's Guide
|
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel.

Public Member Functions | |
| DtSubmitOverlayCallback (osg::Texture *tex, DtDe &de, DtVirtualRealityDriver &driver) | |
| virtual | ~DtSubmitOverlayCallback () |
| virtual void | operator() (osg::RenderInfo &renderInfo) const |
| virtual osg::Matrixd | offsetMatrix () |
| virtual void | setOffsetMatrix (const osg::Matrixd &mat) |
| virtual void | setFlipOverlay (bool flip) |
| virtual bool | flipOverlay () const |
| virtual void | setOutputMode (makArchives::DtVirtualRealitySettingsRecord::DtOverlayOutput mode) |
| virtual makArchives::DtVirtualRealitySettingsRecord::DtOverlayOutput | outputMode () const |
| virtual void | setEnabled (bool enable) |
| virtual bool | isEnabled () |
| bool | isInitialized () const |
Protected Member Functions | |
| virtual void | submitOverlay (osg::RenderInfo &renderInfo) const |
Protected Attributes | |
| DtDe & | myDe |
| DtSignalConnectionManager | myConnections |
| DtVirtualRealityDriver & | myDriver |
| DtVirtualRealityProvider * | myProvider |
| osg::ref_ptr< osg::Texture > | myOverlayTexture |
| DtSwapChain * | mySwapChain |
| osg::Matrix | myOffsetMatrix |
| bool | myFlipOverlay |
| makArchives::DtVirtualRealitySettingsRecord::DtOverlayOutput | myOutputMode |
| bool | myEnabled |
| bool | myIsInitialized |
Private Member Functions | |
| DtSubmitOverlayCallback () | |
| DtSubmitOverlayCallback (const DtSubmitOverlayCallback &orig) | |
| DtSubmitOverlayCallback & | operator= (const DtSubmitOverlayCallback &) |
|
private |
prevent default constructor
|
private |
prevent copy construction
| makVrv::DtSubmitOverlayCallback::DtSubmitOverlayCallback | ( | osg::Texture * | tex, |
| DtDe & | de, | ||
| DtVirtualRealityDriver & | driver | ||
| ) |
CTOR takes the texture that it should submit to the VR System as an overlay.
|
virtual |
DTOR.
|
private |
prevent assignment
|
virtual |
the callback function called by OSG
|
virtual |
get the offset matrix that the overlay will be displayed with. This is an offset and rotation relative to the HMD view position and view direction in an East-North-Up coordinate system.
|
virtual |
get the offset matrix that the overlay will be displayed with. This is an offset and rotation relative to the HMD view position and view direction in an East-North-Up coordinate system.
|
virtual |
flip overlays on the vertical axis. Some devices expect the textures to be submitted with the uv min in the top left corner, some want it in the bottom left corner.
|
virtual |
get the flip overlays settings
|
virtual |
set the output mode for the overlay
|
virtual |
get the output mode for the overlay
|
virtual |
enable or disable the overlay
|
virtual |
| bool makVrv::DtSubmitOverlayCallback::isInitialized | ( | ) | const |
|
protectedvirtual |
submit system specific overlay
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |