![]() |
VR-Forces Developer's Guide
|
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 | |
| DtMultiViewData & | operator= (const DtMultiViewData &rhs)=delete |
|
virtual |
|
privatedelete |
not allowed
|
privatedelete |
not allowed
|
privatedelete |
not allowed
|
virtual |
returns the cullview offset
|
virtual |
set the cull view offset
returns the projection matrix for index view
|
virtual |
sets the projection matrix for index view
returns the view offset for index view
|
virtual |
set the view offset for index view
|
virtual |
returns the parent view if any
|
virtual |
set the parent view of this if any
|
protected |
view space offset for the camera when culling so the main camera frustum encapsulates the multiview frustums
|
protected |
projection matrix for each view
|
protected |
offsets from the main camera for each view
|
protected |
varjo at the moment has two multiview channels, this variable represents the parent camera i.e. the context view