VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public 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. More...

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

Public Member Functions

 DtSubmitOverlayCallback (osg::Texture2D *tex, DtDe &de)
 CTOR takes the texture that it should submit to the VR System as an overlay.
virtual ~DtSubmitOverlayCallback ()
 DTOR.
virtual void operator() (osg::RenderInfo &renderInfo) const
 the callback function called by OSG
virtual osg::Matrixd offsetMatrix ()
 get the offset matrix that the overlay will be displayed with.
virtual void setOffsetMatrix (const osg::Matrixd &mat)
 get the offset matrix that the overlay will be displayed with.
virtual void setFlipOverlay (bool flip)
 flip overlays on the vertical axis.
virtual bool flipOverlay () const
 get the flip overlays settings

Protected Attributes

DtDemyDe
uint64_t myOverlay
osg::ref_ptr< osg::Texture2D > myOverlayTexture
osg::Matrix myOffsetMatrix
bool myFlipOverlay

Private Member Functions

 DtSubmitOverlayCallback ()
 prevent default constructor
 DtSubmitOverlayCallback (const DtSubmitOverlayCallback &orig)
 prevent copy construction
DtSubmitOverlayCallbackoperator= (const DtSubmitOverlayCallback &)
 prevent assignment

Detailed Description

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

Constructor & Destructor Documentation

makVrv::DtSubmitOverlayCallback::DtSubmitOverlayCallback ( )
private

prevent default constructor

makVrv::DtSubmitOverlayCallback::DtSubmitOverlayCallback ( const DtSubmitOverlayCallback orig)
private

prevent copy construction

makVrv::DtSubmitOverlayCallback::DtSubmitOverlayCallback ( osg::Texture2D *  tex,
DtDe de 
)

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

Member Data Documentation

DtDe& makVrv::DtSubmitOverlayCallback::myDe
protected
uint64_t makVrv::DtSubmitOverlayCallback::myOverlay
protected
osg::ref_ptr<osg::Texture2D> makVrv::DtSubmitOverlayCallback::myOverlayTexture
protected
osg::Matrix makVrv::DtSubmitOverlayCallback::myOffsetMatrix
protected
bool makVrv::DtSubmitOverlayCallback::myFlipOverlay
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)