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

CrMesh Class Reference

Triangle mesh class bridge between Open Inventor and GHOST. More...

#include <CrMesh.h>

List of all members.

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.
gstTriPolyMeshHapticgetHapticShape ()
 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
gstTriPolyMeshm_hapticMesh
 GHOST triangle mesh data.
gstTriPolyMeshHapticm_hapticShape
 GHOST triangle mesh touchable object.


Detailed Description

Triangle mesh class bridge between Open Inventor and GHOST.

Author:
Chris Scharver
Date
2004/05/06 18:24:26
Revision
1.8
Open Inventor and GHOST maintain different representations for their scene graph objects. Triangle meshes are represented different, so this class serves a bridge to mediate between the two.

See also:
ConvertIvToGHOST


Constructor & Destructor Documentation

CrMesh::CrMesh  ) 
 

Default constructor creates empty objects.

CrMesh::CrMesh const char *   ) 
 

Parameterized constructor loads an Open Inventor model file.

CrMesh::~CrMesh  )  [virtual]
 

Virtual destructor removes class-specific data.


Member Function Documentation

const char * CrMesh::getFilename  )  const
 

Returns the Open Inventor model filename.

gstTriPolyMeshHaptic * CrMesh::getHapticShape  ) 
 

Returns the GHOST haptic shape node.

SoIndexedTriangleStripSet * CrMesh::getShape  ) 
 

Returns the Open Inventor shape node.

SoIndexedTriangleStripSet * CrMesh::loadGeometryFromFile  )  [protected]
 

Opens the model file and returns its triangle data.

void CrMesh::setFilename const char *   ) 
 

Assigns the Open Inventor model name.

void CrMesh::setTriMesh SoIndexedTriangleStripSet *   ) 
 

Sets the Open Inventor triangle mesh from outside the class.

void CrMesh::updateHapticMesh  )  [protected]
 

Updates the GHOST mesh by copying from the Open Inventor nodes.


Member Data Documentation

char CrMesh::m_filename[1024] [protected]
 

Name of the Open Inventor model file.

gstTriPolyMesh* CrMesh::m_hapticMesh [protected]
 

GHOST triangle mesh data.

gstTriPolyMeshHaptic* CrMesh::m_hapticShape [protected]
 

GHOST triangle mesh touchable object.

SoIndexedTriangleStripSet* CrMesh::m_ivShape [protected]
 

Open Inventor triangle mesh graphic node.

SoVertexProperty* CrMesh::m_ivVertices [protected]
 

Open Inventor vertex data contains triangle coordinates.


The documentation for this class was generated from the following files:
Generated on Wed May 18 01:24:59 2005 for SculptDemo by  doxygen 1.4.3