Main Page | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

osgHaptics::HapticRenderPrepareVisitor Class Reference

Class that attach a new haptic shape for each drawable found in the tree. More...

#include <HapticRenderPrepareVisitor.h>

List of all members.

Public Member Functions

virtual ~HapticRenderPrepareVisitor ()
 Destructor.
osgHaptics::ShapegetShape ()


Detailed Description

Class that attach a new haptic shape for each drawable found in the tree.

This class traverses all drawables and attaches a new haptic shape for each drawable it find. All created shapes will be added to a ShapeComposite which will be the parent. For contact detection this ShapeComposite can be used.

If the subgraph contains instances, that is, a drawable occurs on several positions in the tree, then only the first occurence of that drawable will actually be drawn haptically. The ShapeComposte can be accessed throught the getShape() method.


Member Function Documentation

osgHaptics::Shape* osgHaptics::HapticRenderPrepareVisitor::getShape  )  [inline]
 

Return the ShapeComposite that holds all the Shapes generated. IMPORTANT: For now, attach this to a ref_ptr somewhere, otherwise it will be dropped.


The documentation for this class was generated from the following file:
Generated on Wed May 10 16:29:46 2006 for osgHaptics by  doxygen 1.4.4