#include <SoPhysicsTriMesh.h>
Public Member Functions | |
SoBaseKit * | copy (SbBool copyConnections) const |
SoPhysicsTriMesh (const SbString &nodeName="") | |
Static Public Member Functions | |
static void | initClass () |
Protected Member Functions | |
virtual dMass | getInitialMass () |
virtual void | updateOIPosition () |
Private Member Functions | |
SO_KIT_HEADER (SoPhysicsTriMesh) | |
Private Attributes | |
bool | dblbfilled |
dReal | matrix_dblbuff [16 *2] |
bool | matrixbuf0 |
This physics object is scaleable.
A TriMesh
Definition at line 29 of file SoPhysicsTriMesh.h.
SoPhysicsTriMesh::SoPhysicsTriMesh | ( | const SbString & | nodeName = "" |
) |
The constructor of SoPhysicsTriMesh.
nodeName | name of the node in the Inventor scenegraph |
Definition at line 65 of file SoPhysicsTriMesh.cpp.
SoBaseKit * SoPhysicsTriMesh::copy | ( | SbBool | copyConnections | ) | const [virtual] |
The overwritten copy() method
copyConnections | copy connections if true |
Reimplemented from SoPhysics.
Definition at line 82 of file SoPhysicsTriMesh.cpp.
References SoPhysics::copy(), dblbfilled, matrix_dblbuff, and matrixbuf0.
dMass SoPhysicsTriMesh::getInitialMass | ( | ) | [protected, virtual] |
This method returns the mass of the TriMesh object. The mass of the object that will be returned is calculated by taking care of changes in scaling. NOTE: The collisionShape field of this class needs to be set before calling this method because relies on the dGeomID of the collisionShape.
Reimplemented from SoPhysics.
Definition at line 138 of file SoPhysicsTriMesh.cpp.
References SoPhysics::geom, and SoPhysics::mass.
void SoPhysicsTriMesh::initClass | ( | ) | [static] |
Initialises the class and it's type id variables.
Reimplemented from SoPhysics.
Definition at line 55 of file SoPhysicsTriMesh.cpp.
SoPhysicsTriMesh::SO_KIT_HEADER | ( | SoPhysicsTriMesh | ) | [private] |
void SoPhysicsTriMesh::updateOIPosition | ( | ) | [protected, virtual] |
Updates the position of the Inventor visualisation according to the values retrieved from ODE
Reimplemented from SoPhysics.
Definition at line 103 of file SoPhysicsTriMesh.cpp.
References SoPhysics::body, dblbfilled, SoPhysics::geom, matrix_dblbuff, and matrixbuf0.
SoPhysicsTriMesh::dblbfilled [private] |
False if SoPhysicsTriMesh::matrix_dblbuff is empty (this is possible once after the object has been created) and true if it is filled (default = false).
Definition at line 47 of file SoPhysicsTriMesh.h.
Referenced by copy(), and updateOIPosition().
SoPhysicsTriMesh::matrix_dblbuff [private] |
First and second matrix buffer.
Definition at line 45 of file SoPhysicsTriMesh.h.
Referenced by copy(), and updateOIPosition().
SoPhysicsTriMesh::matrixbuf0 [private] |
If false the first matrix buffer of SoPhysicsTriMesh::matrix_dblbuff is used and the second matrix buffer is used if this member is true (default = false).
Definition at line 46 of file SoPhysicsTriMesh.h.
Referenced by copy(), and updateOIPosition().
Generated on Sat Mar 10 20:00:21 2012 for IPSA by 1.5.8 |