#include <CrMesh.h>
Public Member Functions | |
| CrMesh () | |
| Default constructor creates empty objects. | |
| CrMesh (const char *) | |
| Parameterized constructor loads an Open Inventor model file. | |
| virtual | ~CrMesh () |
| Virtual destructor removes class-specific data. | |
| const char * | getFilename () const |
| Returns the Open Inventor model filename. | |
| SoIndexedTriangleStripSet * | getShape () |
| Returns the Open Inventor shape node. | |
| gstTriPolyMeshHaptic * | getHapticShape () |
| Returns the GHOST haptic shape node. | |
| void | setFilename (const char *) |
| Assigns the Open Inventor model name. | |
| void | setTriMesh (SoIndexedTriangleStripSet *) |
| Sets the Open Inventor triangle mesh from outside the class. | |
Protected Member Functions | |
| SoIndexedTriangleStripSet * | loadGeometryFromFile () |
| Opens the model file and returns its triangle data. | |
| void | updateHapticMesh () |
| Updates the GHOST mesh by copying from the Open Inventor nodes. | |
Protected Attributes | |
| char | m_filename [1024] |
| Name of the Open Inventor model file. | |
Open Inventor graphic nodes | |
| SoIndexedTriangleStripSet * | m_ivShape |
| Open Inventor triangle mesh graphic node. | |
| SoVertexProperty * | m_ivVertices |
| Open Inventor vertex data contains triangle coordinates. | |
GHOST haptic nodes | |
| gstTriPolyMesh * | m_hapticMesh |
| GHOST triangle mesh data. | |
| gstTriPolyMeshHaptic * | m_hapticShape |
| GHOST triangle mesh touchable object. | |
|
|
Default constructor creates empty objects.
|
|
|
Parameterized constructor loads an Open Inventor model file.
|
|
|
Virtual destructor removes class-specific data.
|
|
|
Returns the Open Inventor model filename.
|
|
|
Returns the GHOST haptic shape node.
|
|
|
Returns the Open Inventor shape node.
|
|
|
Opens the model file and returns its triangle data.
|
|
|
Assigns the Open Inventor model name.
|
|
|
Sets the Open Inventor triangle mesh from outside the class.
|
|
|
Updates the GHOST mesh by copying from the Open Inventor nodes.
|
|
|
Name of the Open Inventor model file.
|
|
|
GHOST triangle mesh data.
|
|
|
GHOST triangle mesh touchable object.
|
|
|
Open Inventor triangle mesh graphic node.
|
|
|
Open Inventor vertex data contains triangle coordinates.
|
1.4.3