SoPhysicsTriMesh Class Reference
[libipsa classesPhysic Classes]

Defines a physics object with the properties of a TriMesh. More...

#include <SoPhysicsTriMesh.h>

Inheritance diagram for SoPhysicsTriMesh:

Inheritance graph
[legend]
Collaboration diagram for SoPhysicsTriMesh:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Defines a physics object with the properties of a TriMesh.

This physics object is scaleable.

TriMesh.png

A TriMesh

Definition at line 29 of file SoPhysicsTriMesh.h.


Constructor & Destructor Documentation

SoPhysicsTriMesh::SoPhysicsTriMesh ( const SbString &  nodeName = ""  ) 

The constructor of SoPhysicsTriMesh.

Parameters:
nodeName name of the node in the Inventor scenegraph

Definition at line 65 of file SoPhysicsTriMesh.cpp.


Member Function Documentation

SoBaseKit * SoPhysicsTriMesh::copy ( SbBool  copyConnections  )  const [virtual]

The overwritten copy() method

Parameters:
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.

Returns:
triMeshMass: the mass of the TriMesh.

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.


Member Data Documentation

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().

First and second matrix buffer.

Definition at line 45 of file SoPhysicsTriMesh.h.

Referenced by copy(), and updateOIPosition().

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().


The documentation for this class was generated from the following files:

Get IPSA - Inventor Physics Simulation API at SourceForge.net. Fast, secure and Free Open Source software downloads
Generated on Sat Mar 10 20:00:21 2012 for IPSA by  doxygen 1.5.8