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

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

Public Member Functions

 DtMultiViewData (unsigned int numViews=2)
 
const osg::Vec3 & cullViewOffset () const
 returns the cullview offset More...
 
void setCullViewOffset (const osg::Vec3 &offset)
 set the cull view offset More...
 
const osg::Matrix & projection (unsigned int index) const
 returns the projection matrix for index view More...
 
void setProjection (const osg::Matrix &projection, unsigned int index)
 sets the projection matrix for index view More...
 
const osg::Vec3 & viewOffset (unsigned int index) const
 returns the view offset for index view More...
 
void setViewOffset (const osg::Vec3 &offset, unsigned int index)
 set the view offset for index view More...
 

Protected Attributes

osg::Vec3 myCullViewOffset
 view space offset for the camera when culling so the main camera frustum encapsulates the multiview frustums More...
 
std::vector< osg::Matrix > myProjections
 projection matrix for each view More...
 
std::vector< osg::Vec3 > myViewOffsets
 offsets from the main camera for each view More...
 

Detailed Description

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

Constructor & Destructor Documentation

makVrv::DtMultiViewData::DtMultiViewData ( unsigned int  numViews = 2)

Member Function Documentation

const osg::Vec3& makVrv::DtMultiViewData::cullViewOffset ( ) const

returns the cullview offset

void makVrv::DtMultiViewData::setCullViewOffset ( const osg::Vec3 &  offset)

set the cull view offset

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

returns the projection matrix for index view

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

sets the projection matrix for index view

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

returns the view offset for index view

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

set the view offset for index view

Member Data Documentation

osg::Vec3 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::Vec3> makVrv::DtMultiViewData::myViewOffsets
protected

offsets from the main camera for each view


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)