![]() |
VR-Forces 4.8 Class Documentation
|
Custom per character root node that does custom traversals and short circuits osg lod picking. More...

Public Member Functions | |
| DtDiGuyOsgRootNode (DtDiGuyOsgGraphicsLink *link) | |
| CTOR. More... | |
| virtual | ~DtDiGuyOsgRootNode () |
| DTOR. More... | |
| virtual void | unbuild () |
| called by link::unbuild() More... | |
| virtual void | traverse (osg::NodeVisitor &nv) |
| override of base osg code More... | |
| void | add_geode_for_fast_draw (diguyGraphicsShape *shape, osg::Geode *geode, int lod) |
| caches a drawable for drawing quickly More... | |
| void | add_switch_for_fast_draw (diguyGraphicsShape *shape, osg::Switch *switch_node) |
| adding a switch for fast drawing More... | |
| void | remove_shape (DtDiGuyOsgGraphicsShape *shape) |
| cleans up geodes and shapes More... | |
| virtual void | setOctreeNode (DtOctreeNode< float64 > *node) |
| set octree node associated with this character More... | |
| virtual DtOctreeNode< float64 > * | octreeNode () const |
| gets octree node associated with this character More... | |
| virtual void | setScenario (DtDiGuyScenario *scenario) |
| set DtDiGuyScenario object associated with this character More... | |
| virtual DtDiGuyScenario * | scenario () |
| get DtDiGuyScenario object associated with this character More... | |
| virtual void | setPositionAndOrientation (const DtVector &pos, const DtTaitBryan &orient) |
| updates myWorldPosition, myWorldOrientation, myQuat, doesn't do anything else More... | |
| virtual void | setIsOccupant (bool occ) |
| is this a non-moving character in a vehicle More... | |
| diguyCharacter * | character () |
| gets diguy character More... | |
| const DtVector & | position () |
| perf critical position of character More... | |
| const DtTaitBryan & | orientation () |
| vrv orientation More... | |
| const osg::Quat & | quat () |
| cached osg style orientation More... | |
| bool | isOccupant () |
| is this a fake person in a vehicle More... | |
| void | setLastTraversal (unsigned int lastTrav) |
| used to figure out if the character has been visited yet this frame. More... | |
| unsigned int | lastTraversal () |
| used to figure out if the character has been visited yet this frame. More... | |
Protected Attributes | |
| 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 |
Custom per character root node that does custom traversals and short circuits osg lod picking.
| 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 | ||
| ) |
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().