![]() |
DI-Guy SDK Documentation
13.2
|
Root transform for a group of diguy instances, allows each camera to have it's own transform. More...
Public Member Functions | |
| diguyOsgInstanceRootNode (diguyScenario *scenario) | |
| CTOR. More... | |
| ~diguyOsgInstanceRootNode () | |
| DTOR. More... | |
| diguyOsgInstanceRootNode (const diguyOsgInstanceRootNode &ob, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
| Copy CTOR. More... | |
| virtual osg::Object * | clone (const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) |
| Clone this object. More... | |
| virtual bool | computeWorldToLocalMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const |
| Transform to position relative to camera. More... | |
| virtual bool | computeLocalToWorldMatrix (osg::Matrix &matrix, osg::NodeVisitor *nv) const |
| Transform to position relative to camera. More... | |
| virtual void | traverse (osg::NodeVisitor &nv) |
Public Attributes | |
| diguyScenario * | m_scenario |
| osg::Vec3d | m_camera_position |
Root transform for a group of diguy instances, allows each camera to have it's own transform.
Transforms position to camera position so that instance spatial data can be camera-relative (i.e. fit in a float32)
| diguyOsgInstanceRootNode::diguyOsgInstanceRootNode | ( | diguyScenario * | scenario | ) |
CTOR.
| diguyOsgInstanceRootNode::~diguyOsgInstanceRootNode | ( | ) |
DTOR.
| diguyOsgInstanceRootNode::diguyOsgInstanceRootNode | ( | const diguyOsgInstanceRootNode & | ob, |
| const osg::CopyOp & | copyop = osg::CopyOp::SHALLOW_COPY |
||
| ) |
Copy CTOR.
|
virtual |
Clone this object.
|
virtual |
Transform to position relative to camera.
Used here to strip out the translation portion of the view matrix to allow camera relative rendering of instances
|
virtual |
Transform to position relative to camera.
|
virtual |
| diguyScenario* diguyOsgInstanceRootNode::m_scenario |
|
mutable |