VR-Forces 4.10 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::DtSubmitVarjoOverlayCallback 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::DtSubmitVarjoOverlayCallback:
Inheritance graph
[legend]

Public Member Functions

 DtSubmitVarjoOverlayCallback (osg::Texture *tex, DtDe &de, DtVirtualRealityDriver &driver)
 CTOR takes the texture that it should submit to the VR System as an overlay. More...
 
virtual ~DtSubmitVarjoOverlayCallback ()
 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::Texture *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...
 
virtual bool isEnabled ()
 
bool isInitialized () const
 

Protected Member Functions

virtual void submitOverlay (osg::RenderInfo &renderInfo) const
 submit system specific overlay More...
 
virtual void copyTextureToSwapChain (osg::Texture *texture, uint8_t eyeIndex, int32_t swapChainIndex, osg::RenderInfo &renderInfo) const
 copy the osg texture into th swapchain texture More...
 
virtual bool initSwapChain () const
 create the Varjo texture swapchain More...
 
virtual unsigned int nextSwapImage () const
 get the next texture id in the swapchain More...
 

Protected Attributes

DtVarjoProvidermyProvider
 
varjo_Session * myVarjoSession
 
int myWidth
 
int myHeight
 
bool mySwapChainsInitialized
 These are mutable because they are used as part of the const drawImplementation. More...
 
varjo_SwapChain * myColorSwapChain
 
int myDisplayEyeMask
 
bool myUsingTexArray
 
- Protected Attributes inherited from makVrv::DtSubmitOverlayCallback
DtDemyDe
 
DtVirtualRealityDrivermyDriver
 
osg::ref_ptr< osg::Texture > myOverlayTexture
 
osg::Matrix myOffsetMatrix
 
bool myFlipOverlay
 
bool myEnabled
 
bool myIsInitialized
 

Private Member Functions

 DtSubmitVarjoOverlayCallback ()
 prevent default constructor More...
 
 DtSubmitVarjoOverlayCallback (const DtSubmitVarjoOverlayCallback &orig)
 prevent copy construction More...
 
DtSubmitVarjoOverlayCallbackoperator= (const DtSubmitVarjoOverlayCallback &)
 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::DtSubmitVarjoOverlayCallback::DtSubmitVarjoOverlayCallback ( osg::Texture *  tex,
DtDe de,
DtVirtualRealityDriver driver 
)

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

virtual makVrv::DtSubmitVarjoOverlayCallback::~DtSubmitVarjoOverlayCallback ( )
virtual

DTOR.

makVrv::DtSubmitVarjoOverlayCallback::DtSubmitVarjoOverlayCallback ( )
private

prevent default constructor

makVrv::DtSubmitVarjoOverlayCallback::DtSubmitVarjoOverlayCallback ( const DtSubmitVarjoOverlayCallback orig)
private

prevent copy construction

Member Function Documentation

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

prevent assignment

virtual void makVrv::DtSubmitVarjoOverlayCallback::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::DtSubmitVarjoOverlayCallback::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::DtSubmitVarjoOverlayCallback::setEnabled ( bool  enable)
virtual

enable or disable the overlay

Reimplemented from makVrv::DtSubmitOverlayCallback.

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

submit system specific overlay

Implements makVrv::DtSubmitOverlayCallback.

virtual void makVrv::DtSubmitVarjoOverlayCallback::copyTextureToSwapChain ( osg::Texture *  texture,
uint8_t  eyeIndex,
int32_t  swapChainIndex,
osg::RenderInfo &  renderInfo 
) const
protectedvirtual

copy the osg texture into th swapchain texture

virtual bool makVrv::DtSubmitVarjoOverlayCallback::initSwapChain ( ) const
protectedvirtual

create the Varjo texture swapchain

virtual unsigned int makVrv::DtSubmitVarjoOverlayCallback::nextSwapImage ( ) const
protectedvirtual

get the next texture id in the swapchain

Member Data Documentation

DtVarjoProvider* makVrv::DtSubmitVarjoOverlayCallback::myProvider
protected
varjo_Session* makVrv::DtSubmitVarjoOverlayCallback::myVarjoSession
protected
int makVrv::DtSubmitVarjoOverlayCallback::myWidth
protected
int makVrv::DtSubmitVarjoOverlayCallback::myHeight
protected
bool makVrv::DtSubmitVarjoOverlayCallback::mySwapChainsInitialized
mutableprotected

These are mutable because they are used as part of the const drawImplementation.

varjo_SwapChain* makVrv::DtSubmitVarjoOverlayCallback::myColorSwapChain
mutableprotected
int makVrv::DtSubmitVarjoOverlayCallback::myDisplayEyeMask
protected
bool makVrv::DtSubmitVarjoOverlayCallback::myUsingTexArray
protected

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

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)