#include <SoCollisionShapeTriMesh.h>


Public Member Functions | |
| virtual SoCollisionShape * | copy (SbBool copyConnections) const |
| SoCollisionShapeTriMesh (const SbString &nodeName="") | |
Static Public Member Functions | |
| static void | initClass () |
Public Attributes | |
| SoSFNode | ivModel |
Protected Member Functions | |
| virtual dGeomID | cGeom (const SbMatrix &mm) |
| virtual void | updateVisualisationAndOdeProperties () |
Private Member Functions | |
| SO_KIT_HEADER (SoCollisionShapeTriMesh) | |
This TriMesh is used for collision handling.
A TriMesh
Definition at line 38 of file SoCollisionShapeTriMesh.h.
| SoCollisionShapeTriMesh::SoCollisionShapeTriMesh | ( | const SbString & | nodeName = "" |
) |
The constructor of SoCollisionShapeTriMesh. It changes the type of SoCollisionShape::visualisation to SoNode creates all necessary sensors and calls SoCollisionShapeTriMesh::setUpConnections().
| nodeName | name of the node in the Inventor scenegraph |
Definition at line 62 of file SoCollisionShapeTriMesh.cpp.
References ivModel, and SoCollisionShape::updateOdePropertiesTrigger.
| dGeomID SoCollisionShapeTriMesh::cGeom | ( | const SbMatrix & | mm | ) | [protected, virtual] |
Creates a TriMesh geom object. This method creates a TriMesh geom using the inventor model stored in the ivModel field, and return its ID.
| mm | the model matrix of the current node |
Reimplemented from SoCollisionShape.
Definition at line 111 of file SoCollisionShapeTriMesh.cpp.
References SoCollisionShape::COG, TriangleExtractor::execute(), TriangleExtractor::getResult(), VertexStorage< T >::indices, ivModel, VertexStorage< T >::MAX_INDEX_COUNT, VertexStorage< T >::MAX_VERTEX_COUNT, SoCollisionShape::space, and VertexStorage< T >::vertices.
| SoCollisionShape * SoCollisionShapeTriMesh::copy | ( | SbBool | copyConnections | ) | const [virtual] |
The overwritten copy() method
| copyConnections | copy connections if true |
Reimplemented from SoCollisionShape.
Definition at line 82 of file SoCollisionShapeTriMesh.cpp.
References SoCollisionShape::setUpConnections().
| void SoCollisionShapeTriMesh::initClass | ( | ) | [static] |
Initialises the class and it's type id variables.
Reimplemented from SoCollisionShape.
Definition at line 50 of file SoCollisionShapeTriMesh.cpp.
| SoCollisionShapeTriMesh::SO_KIT_HEADER | ( | SoCollisionShapeTriMesh | ) | [private] |
| void SoCollisionShapeTriMesh::updateVisualisationAndOdeProperties | ( | ) | [protected, virtual] |
This method sets the visualisation shape to the new trimesh node.
Reimplemented from SoCollisionShape.
Definition at line 97 of file SoCollisionShapeTriMesh.cpp.
The Inventor Model which is used as a base for creating the ODE TriMesh object (default = NULL).
Definition at line 50 of file SoCollisionShapeTriMesh.h.
Referenced by cGeom(), and SoCollisionShapeTriMesh().
|
|
Generated on Sat Mar 10 20:00:20 2012 for IPSA by
1.5.8
|