![]() |
VR-Forces 4.8 Class Documentation
|
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel. More...

Public Member Functions | |
| DtSubmitOverlayCallback (osg::Texture2D *tex, DtDe &de, DtVirtualRealityDriver &driver) | |
| CTOR takes the texture that it should submit to the VR System as an overlay. More... | |
| virtual | ~DtSubmitOverlayCallback () |
| DTOR. More... | |
| virtual void | operator() (osg::RenderInfo &renderInfo) const |
| the callback function called by OSG More... | |
| virtual osg::Matrixd | offsetMatrix () |
| get the offset matrix that the overlay will be displayed with. More... | |
| virtual void | setOffsetMatrix (const osg::Matrixd &mat) |
| get the offset matrix that the overlay will be displayed with. More... | |
| virtual void | setFlipOverlay (bool flip) |
| flip overlays on the vertical axis. More... | |
| virtual bool | flipOverlay () const |
| get the flip overlays settings More... | |
| virtual void | setEnabled (bool enable) |
| enable or disable the overlay More... | |
| bool | isInitialized () const |
Protected Member Functions | |
| virtual void | submitOverlay (osg::RenderInfo &renderInfo) const =0 |
| submit system specific overlay More... | |
Protected Attributes | |
| DtDe & | myDe |
| DtVirtualRealityDriver & | myDriver |
| osg::ref_ptr< osg::Texture2D > | myOverlayTexture |
| osg::Matrix | myOffsetMatrix |
| bool | myFlipOverlay |
| bool | myEnabled |
| bool | myIsInitialized |
Private Member Functions | |
| DtSubmitOverlayCallback () | |
| prevent default constructor More... | |
| DtSubmitOverlayCallback (const DtSubmitOverlayCallback &orig) | |
| prevent copy construction More... | |
| DtSubmitOverlayCallback & | operator= (const DtSubmitOverlayCallback &) |
| prevent assignment More... | |
An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel.
|
private |
prevent default constructor
|
private |
prevent copy construction
| makVrv::DtSubmitOverlayCallback::DtSubmitOverlayCallback | ( | osg::Texture2D * | 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.
Reimplemented in makVrv::DtSubmitVarjoOverlayCallback, makVrv::DtSubmitDesktopOverlayCallback, makVrv::DtSubmitOculusOverlayCallback, and makVrv::DtSubmitOpenVROverlayCallback.
|
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.
Reimplemented in makVrv::DtSubmitVarjoOverlayCallback, makVrv::DtSubmitDesktopOverlayCallback, makVrv::DtSubmitOculusOverlayCallback, and makVrv::DtSubmitOpenVROverlayCallback.
|
virtual |
get the flip overlays settings
|
virtual |
enable or disable the overlay
Reimplemented in makVrv::DtSubmitVarjoOverlayCallback, makVrv::DtSubmitDesktopOverlayCallback, makVrv::DtSubmitOculusOverlayCallback, and makVrv::DtSubmitOpenVROverlayCallback.
| bool makVrv::DtSubmitOverlayCallback::isInitialized | ( | ) | const |
|
protectedpure virtual |
submit system specific overlay
Implemented in makVrv::DtSubmitVarjoOverlayCallback, makVrv::DtSubmitOpenVROverlayCallback, makVrv::DtSubmitDesktopOverlayCallback, and makVrv::DtSubmitOculusOverlayCallback.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |