#include <ConvertIvToGHOST.h>
Public Member Functions | |
ConvertIvToGHOST (SoVertexShape *, bool=false) | |
Constructor takes a SoVertexShape as input. | |
~ConvertIvToGHOST () | |
gstTriPolyMeshHaptic * | convertGeometry () |
Executes the conversion, returning the result. |
|
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.
|
|
|
|
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.
|