![]() |
VR-Forces 5.0.2 Developer's Guide
|
Custom per character root node that does custom traversals and short circuits osg lod picking.

Public Member Functions | |
| DtDiGuyOsgRootNode (DtDiGuyOsgGraphicsLink *link) | |
| virtual | ~DtDiGuyOsgRootNode () |
| virtual void | unbuild () |
| virtual void | traverse (osg::NodeVisitor &nv) |
| void | add_geode_for_fast_draw (diguyGraphicsShape *shape, osg::Geode *geode, int lod) |
| void | add_switch_for_fast_draw (diguyGraphicsShape *shape, osg::Switch *switch_node, int lod) |
| void | remove_shape (DtDiGuyOsgGraphicsShape *shape) |
| virtual void | setOctreeNode (DtOctreeNode< float64 > *node) |
| virtual DtOctreeNode< float64 > * | octreeNode () const |
| virtual void | setScenario (DtDiGuyScenario *scenario) |
| virtual DtDiGuyScenario * | scenario () |
| virtual void | setPositionAndOrientation (const DtVector &pos, const DtTaitBryan &orient) |
| virtual void | setIsOccupant (bool occ) |
| diguyCharacter * | character () |
| const DtVector & | position () |
| const DtTaitBryan & | orientation () |
| const osg::Quat & | quat () |
| bool | isOccupant () |
| void | setLastTraversal (unsigned int lastTrav) |
| unsigned int | lastTraversal () |
Protected Attributes | |
| std::vector< std::vector < diguyOsgGraphicsShapeSwitchPair > > | m_switch_nodes |
| std::vector< std::vector < diguyOsgGraphicsShapeGeodePair > > | m_lod_drawables |
| DtDiGuyOsgGraphicsLink * | m_link |
| unsigned int | myLastTraversal |
| float | myMinDrawDistance |
| bool | myOccupant |
| DtOctreeNode< float64 > * | myOctreeNode |
| DtDiGuyScenario * | myScenario |
| DtVector | myWorldPosition |
| DtTaitBryan | myWorldOrientation |
| osg::Quat | myQuat |
| makVrv::DtDiGuyOsgRootNode::DtDiGuyOsgRootNode | ( | DtDiGuyOsgGraphicsLink * | link | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
called by link::unbuild()
|
virtual |
override of base osg code
| void makVrv::DtDiGuyOsgRootNode::add_geode_for_fast_draw | ( | diguyGraphicsShape * | shape, |
| osg::Geode * | geode, | ||
| int | lod | ||
| ) |
caches a drawable for drawing quickly
| void makVrv::DtDiGuyOsgRootNode::add_switch_for_fast_draw | ( | diguyGraphicsShape * | shape, |
| osg::Switch * | switch_node, | ||
| int | lod | ||
| ) |
adding a switch for fast drawing
| void makVrv::DtDiGuyOsgRootNode::remove_shape | ( | DtDiGuyOsgGraphicsShape * | shape | ) |
cleans up geodes and shapes
|
virtual |
set octree node associated with this character
|
virtual |
gets octree node associated with this character
|
virtual |
set DtDiGuyScenario object associated with this character
|
virtual |
get DtDiGuyScenario object associated with this character
|
virtual |
updates myWorldPosition, myWorldOrientation, myQuat, doesn't do anything else
|
inlinevirtual |
is this a non-moving character in a vehicle
References myOccupant.
| diguyCharacter* makVrv::DtDiGuyOsgRootNode::character | ( | ) |
gets diguy character
|
inline |
perf critical position of character
References myWorldPosition.
|
inline |
vrv orientation
References myWorldOrientation.
|
inline |
cached osg style orientation
References myQuat.
|
inline |
is this a fake person in a vehicle
References myOccupant.
used to figure out if the character has been visited yet this frame.
References myLastTraversal.
used to figure out if the character has been visited yet this frame.
References myLastTraversal.
|
protected |
|
protected |
|
protected |
Referenced by lastTraversal(), and setLastTraversal().
|
protected |
|
protected |
Referenced by isOccupant(), and setIsOccupant().
|
protected |
|
protected |
|
protected |
Referenced by position().
|
protected |
Referenced by orientation().
|
protected |
Referenced by quat().