VR-Forces 4.8 Class Documentation
 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::DtSubmitDesktopOverlayCallback Class Reference

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

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

Public Member Functions

 DtSubmitDesktopOverlayCallback (osg::Texture2D *tex, DtDe &de, DtVirtualRealityDriver &driver)
 CTOR takes the texture that it should submit to the VR System as an overlay. More...
 
virtual ~DtSubmitDesktopOverlayCallback ()
 DTOR. 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 void setEnabled (bool enable)
 enable or disable the overlay More...
 
- Public Member Functions inherited from 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. 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 bool flipOverlay () const
 get the flip overlays settings More...
 
bool isInitialized () const
 

Protected Member Functions

virtual void submitOverlay (osg::RenderInfo &renderInfo) const
 submit system specific overlay More...
 

Protected Attributes

DtDesktopProvidermyProvider
 
int myWidth
 
int myHeight
 
- Protected Attributes inherited from makVrv::DtSubmitOverlayCallback
DtDemyDe
 
DtVirtualRealityDrivermyDriver
 
osg::ref_ptr< osg::Texture2D > myOverlayTexture
 
osg::Matrix myOffsetMatrix
 
bool myFlipOverlay
 
bool myEnabled
 
bool myIsInitialized
 

Private Member Functions

 DtSubmitDesktopOverlayCallback ()
 prevent default constructor More...
 
 DtSubmitDesktopOverlayCallback (const DtSubmitDesktopOverlayCallback &orig)
 prevent copy construction More...
 
DtSubmitDesktopOverlayCallbackoperator= (const DtSubmitDesktopOverlayCallback &)
 prevent assignment More...
 

Detailed Description

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

Constructor & Destructor Documentation

makVrv::DtSubmitDesktopOverlayCallback::DtSubmitDesktopOverlayCallback ( )
private

prevent default constructor

makVrv::DtSubmitDesktopOverlayCallback::DtSubmitDesktopOverlayCallback ( const DtSubmitDesktopOverlayCallback orig)
private

prevent copy construction

makVrv::DtSubmitDesktopOverlayCallback::DtSubmitDesktopOverlayCallback ( osg::Texture2D *  tex,
DtDe de,
DtVirtualRealityDriver driver 
)

CTOR takes the texture that it should submit to the VR System as an overlay.

virtual makVrv::DtSubmitDesktopOverlayCallback::~DtSubmitDesktopOverlayCallback ( )
virtual

DTOR.

Member Function Documentation

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

prevent assignment

virtual void makVrv::DtSubmitDesktopOverlayCallback::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.

Reimplemented from makVrv::DtSubmitOverlayCallback.

virtual void makVrv::DtSubmitDesktopOverlayCallback::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.

Reimplemented from makVrv::DtSubmitOverlayCallback.

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

enable or disable the overlay

Reimplemented from makVrv::DtSubmitOverlayCallback.

virtual void makVrv::DtSubmitDesktopOverlayCallback::submitOverlay ( osg::RenderInfo &  renderInfo) const
protectedvirtual

submit system specific overlay

Implements makVrv::DtSubmitOverlayCallback.

Member Data Documentation

DtDesktopProvider* makVrv::DtSubmitDesktopOverlayCallback::myProvider
protected
int makVrv::DtSubmitDesktopOverlayCallback::myWidth
protected
int makVrv::DtSubmitDesktopOverlayCallback::myHeight
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)