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 Attributes | Private Member Functions
makVrv::DtMultiViewData Class Reference

simple class to encapsulate the different views in a multiview vr setup

Public Member Functions

 DtMultiViewData (unsigned int numViews)
 
virtual ~DtMultiViewData ()
 
virtual const osg::Matrix & cullViewOffset () const
 
virtual void setCullViewOffset (const osg::Matrix &offset)
 
virtual const osg::Matrix & projection (unsigned int index) const
 
virtual void setProjection (const osg::Matrix &projection, unsigned int index)
 
virtual const osg::Matrix & viewOffset (unsigned int index) const
 
virtual void setViewOffset (const osg::Matrix &offset, unsigned int index)
 
virtual const osg::Camera * parentView () const
 
virtual void setParentView (osg::Camera *parent)
 

Protected Attributes

osg::Matrix myCullViewOffset
 
std::vector< osg::Matrix > myProjections
 
std::vector< osg::Matrix > myViewOffsets
 
osg::Camera * myParentCamera
 

Private Member Functions

 DtMultiViewData ()=delete
 
 DtMultiViewData (const DtMultiViewData &rhs)=delete
 
DtMultiViewDataoperator= (const DtMultiViewData &rhs)=delete
 

Constructor & Destructor Documentation

makVrv::DtMultiViewData::DtMultiViewData ( unsigned int  numViews)
virtual makVrv::DtMultiViewData::~DtMultiViewData ( )
virtual
makVrv::DtMultiViewData::DtMultiViewData ( )
privatedelete

not allowed

makVrv::DtMultiViewData::DtMultiViewData ( const DtMultiViewData rhs)
privatedelete

not allowed

Member Function Documentation

DtMultiViewData& makVrv::DtMultiViewData::operator= ( const DtMultiViewData rhs)
privatedelete

not allowed

virtual const osg::Matrix& makVrv::DtMultiViewData::cullViewOffset ( ) const
virtual

returns the cullview offset

virtual void makVrv::DtMultiViewData::setCullViewOffset ( const osg::Matrix &  offset)
virtual

set the cull view offset

virtual const osg::Matrix& makVrv::DtMultiViewData::projection ( unsigned int  index) const
virtual

returns the projection matrix for index view

virtual void makVrv::DtMultiViewData::setProjection ( const osg::Matrix &  projection,
unsigned int  index 
)
virtual

sets the projection matrix for index view

virtual const osg::Matrix& makVrv::DtMultiViewData::viewOffset ( unsigned int  index) const
virtual

returns the view offset for index view

virtual void makVrv::DtMultiViewData::setViewOffset ( const osg::Matrix &  offset,
unsigned int  index 
)
virtual

set the view offset for index view

virtual const osg::Camera* makVrv::DtMultiViewData::parentView ( ) const
virtual

returns the parent view if any

virtual void makVrv::DtMultiViewData::setParentView ( osg::Camera *  parent)
virtual

set the parent view of this if any

Member Data Documentation

osg::Matrix makVrv::DtMultiViewData::myCullViewOffset
protected

view space offset for the camera when culling so the main camera frustum encapsulates the multiview frustums

std::vector<osg::Matrix> makVrv::DtMultiViewData::myProjections
protected

projection matrix for each view

std::vector<osg::Matrix> makVrv::DtMultiViewData::myViewOffsets
protected

offsets from the main camera for each view

osg::Camera* makVrv::DtMultiViewData::myParentCamera
protected

varjo at the moment has two multiview channels, this variable represents the parent camera i.e. the context view


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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)