List of all members.
Public Member Functions
|HapticRootNode (osgProducer::Viewer *viewer=0L)|
|virtual void||traverse (osg::NodeVisitor &nv)|
Protected Member Functions
|HapticRootNode (const HapticRootNode ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)|
|Copy constructor. |
|HapticRootNode &||operator= (const HapticRootNode &node)|
|Assignment operator. |
This can be the parent of all haptical renderable nodes. All it does really is to set the already existing "HapticRenderBin" to be the current renderbin for all its children.
It also holds a reference to the HapticDevice which can be handy. So the device is not "lost". that is dereferenced and deleted by ref_ptrīs
It is also possible to keep nodes that are supposed to be rendered into the "HapticRenderBin" in other places in the scenegraph too, just set the stateset->setRenderBinDetails(1, "HapticRenderBin"); for that node/group.
The subgraph of this group will only be rendered once per frame to avoid problems in the Haptic Shape rendering. If a Haptic shape is rendered multiple times during one frame it will cause the application to crash.
If viewer is specified in the constructor the scene will only be rendered in mono.
Executed during traversal of the scenegraph. If the NodeVisitor is a Update visitor the internal state of the haptic device is updated.