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

ConvertIvToGHOST Class Reference

Provides conversion from Open Inventor to GHOST. More...

#include <ConvertIvToGHOST.h>

List of all members.

Public Member Functions

 ConvertIvToGHOST (SoVertexShape *, bool=false)
 Constructor takes a SoVertexShape as input.
 ~ConvertIvToGHOST ()
gstTriPolyMeshHapticconvertGeometry ()
 Executes the conversion, returning the result.


Detailed Description

Provides conversion from Open Inventor to GHOST.

Author:
Chris Scharver
Date
2004/06/18 01:12:16
Revision
1.8
Open Inventor has a deeper geometry support than GHOST. This class will convert an Open Inventor SoVertexShape node into a GHOST gstTriPolyMeshHaptic that can be felt with the PHANToM.

See also:
CrMesh


Constructor & Destructor Documentation

ConvertIvToGHOST::ConvertIvToGHOST SoVertexShape *  node,
bool  verbose = false
 

Constructor takes a SoVertexShape as input.

The class constructor sets the pointers for processing later. The Open Inventor shape that will be converted to GHOST must be passed as input to the object. The GHOST objects are initialized to NULL, and they will not be created until they are actually needed.

Parameters:
node Open Inventor vertex node that will be converted

ConvertIvToGHOST::~ConvertIvToGHOST  ) 
 


Member Function Documentation

gstTriPolyMeshHaptic * ConvertIvToGHOST::convertGeometry  ) 
 

Executes the conversion, returning the result.

This function is primarily in place for code clarity. It does some simple decision-making before calling the separate steps required to actually perform the conversion. If the conversion hasn't been done already, it calls copyVertices() to copy the coordinate information, and then it calls createHapticNodes() to create the GHOST scene graph nodes.

Returns:
Converted GHOST triangle node, or NULL if conversion failed.


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