VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtSubmitOverlayCallback Class Reference

An OSG camera callback that will submit the channel to the underlying VR system as an overlay channel.

Inheritance diagram for makVrv::DtSubmitOverlayCallback:
Inheritance graph
[legend]

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

DtDemyDe
 
DtSignalConnectionManager myConnections
 
DtVirtualRealityDrivermyDriver
 
DtVirtualRealityProvidermyProvider
 
osg::ref_ptr< osg::Texture > myOverlayTexture
 
DtSwapChainmySwapChain
 
osg::Matrix myOffsetMatrix
 
bool myFlipOverlay
 
makArchives::DtVirtualRealitySettingsRecord::DtOverlayOutput myOutputMode
 
bool myEnabled
 
bool myIsInitialized
 

Private Member Functions

 DtSubmitOverlayCallback ()
 
 DtSubmitOverlayCallback (const DtSubmitOverlayCallback &orig)
 
DtSubmitOverlayCallbackoperator= (const DtSubmitOverlayCallback &)
 

Constructor & Destructor Documentation

makVrv::DtSubmitOverlayCallback::DtSubmitOverlayCallback ( )
private

prevent default constructor

makVrv::DtSubmitOverlayCallback::DtSubmitOverlayCallback ( const DtSubmitOverlayCallback orig)
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 makVrv::DtSubmitOverlayCallback::~DtSubmitOverlayCallback ( )
virtual

DTOR.

Member Function Documentation

DtSubmitOverlayCallback& makVrv::DtSubmitOverlayCallback::operator= ( const DtSubmitOverlayCallback )
private

prevent assignment

virtual void makVrv::DtSubmitOverlayCallback::operator() ( osg::RenderInfo &  renderInfo) const
virtual

the callback function called by OSG

virtual osg::Matrixd makVrv::DtSubmitOverlayCallback::offsetMatrix ( )
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 void makVrv::DtSubmitOverlayCallback::setOffsetMatrix ( const osg::Matrixd &  mat)
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 void makVrv::DtSubmitOverlayCallback::setFlipOverlay ( bool  flip)
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 bool makVrv::DtSubmitOverlayCallback::flipOverlay ( ) const
virtual

get the flip overlays settings

virtual void makVrv::DtSubmitOverlayCallback::setOutputMode ( makArchives::DtVirtualRealitySettingsRecord::DtOverlayOutput  mode)
virtual

set the output mode for the overlay

virtual makArchives::DtVirtualRealitySettingsRecord::DtOverlayOutput makVrv::DtSubmitOverlayCallback::outputMode ( ) const
virtual

get the output mode for the overlay

virtual void makVrv::DtSubmitOverlayCallback::setEnabled ( bool  enable)
virtual

enable or disable the overlay

virtual bool makVrv::DtSubmitOverlayCallback::isEnabled ( )
virtual
Returns
true if overlay is currently enabled and should be submited
bool makVrv::DtSubmitOverlayCallback::isInitialized ( ) const
virtual void makVrv::DtSubmitOverlayCallback::submitOverlay ( osg::RenderInfo &  renderInfo) const
protectedvirtual

submit system specific overlay

Member Data Documentation

DtDe& makVrv::DtSubmitOverlayCallback::myDe
protected
DtSignalConnectionManager makVrv::DtSubmitOverlayCallback::myConnections
protected
DtVirtualRealityDriver& makVrv::DtSubmitOverlayCallback::myDriver
protected
DtVirtualRealityProvider* makVrv::DtSubmitOverlayCallback::myProvider
protected
osg::ref_ptr<osg::Texture> makVrv::DtSubmitOverlayCallback::myOverlayTexture
protected
DtSwapChain* makVrv::DtSubmitOverlayCallback::mySwapChain
mutableprotected
osg::Matrix makVrv::DtSubmitOverlayCallback::myOffsetMatrix
protected
bool makVrv::DtSubmitOverlayCallback::myFlipOverlay
protected
makArchives::DtVirtualRealitySettingsRecord::DtOverlayOutput makVrv::DtSubmitOverlayCallback::myOutputMode
protected
bool makVrv::DtSubmitOverlayCallback::myEnabled
protected
bool makVrv::DtSubmitOverlayCallback::myIsInitialized
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)