sofa::filemanager::pml::PMLRigidBody Class Reference

#include <PMLRigidBody.h>

Inheritance diagram for sofa::filemanager::pml::PMLRigidBody:

Inheritance graph
[legend]
Collaboration diagram for sofa::filemanager::pml::PMLRigidBody:

Collaboration graph
[legend]

Public Member Functions

 PMLRigidBody (StructuralComponent *body, GNode *parent)
 ~PMLRigidBody ()
string isTypeOf ()
bool FusionBody (PMLBody *)
 merge the body with current object
Vector3 getDOF (unsigned int index)
GNode * getPointsNode ()
MechanicalObject< RigidTypes > * getRefDOF ()

Data Fields

bool bodyFixed
 is the body totally fixed?

Private Member Functions

void createMechanicalState (StructuralComponent *body)
 creation of the scene graph
void createTopology (StructuralComponent *body)
void createMass (StructuralComponent *body)
void createVisualModel (StructuralComponent *body)
void createForceField ()
void createCollisionModel ()
void initMass (string m)
 initialization of properties
void initInertiaMatrix (string m)
void initPosition (string m)
void initVelocity (string m)

Private Attributes

MechanicalObject< RigidTypes > * refDOF
 mechanical model containing the reference node (gravity center)
BaseMapping * mapping
 mapping between refDof and mesh points
GNode * VisualNode
 GNode containing the visual model.
GNode * CollisionNode
 GNode containing the collision models.
Vector3 bary
 barycenter coordinates of the solid
std::vector< SReal > massList
std::vector< SReal > inertiaMatrix
Vector3 transPos
Quat rotPos
Vector3 transVel
Vector3 rotVel

Detailed Description

Definition at line 70 of file PMLRigidBody.h.


Constructor & Destructor Documentation

sofa::filemanager::pml::PMLRigidBody::PMLRigidBody ( StructuralComponent *  body,
GNode *  parent 
)

sofa::filemanager::pml::PMLRigidBody::~PMLRigidBody (  ) 


Member Function Documentation

void sofa::filemanager::pml::PMLRigidBody::createCollisionModel (  )  [private, virtual]

void sofa::filemanager::pml::PMLRigidBody::createForceField (  )  [inline, private, virtual]

Implements sofa::filemanager::pml::PMLBody.

Definition at line 100 of file PMLRigidBody.h.

void sofa::filemanager::pml::PMLRigidBody::createMass ( StructuralComponent *  body  )  [private, virtual]

void sofa::filemanager::pml::PMLRigidBody::createMechanicalState ( StructuralComponent *  body  )  [private, virtual]

void sofa::filemanager::pml::PMLRigidBody::createTopology ( StructuralComponent *  body  )  [private, virtual]

void sofa::filemanager::pml::PMLRigidBody::createVisualModel ( StructuralComponent *  body  )  [private, virtual]

bool sofa::filemanager::pml::PMLRigidBody::FusionBody ( PMLBody *   )  [virtual]

merge the body with current object

Implements sofa::filemanager::pml::PMLBody.

Definition at line 430 of file PMLRigidBody.cpp.

Vector3 sofa::filemanager::pml::PMLRigidBody::getDOF ( unsigned int  index  )  [virtual]

GNode* sofa::filemanager::pml::PMLRigidBody::getPointsNode (  )  [inline, virtual]

Implements sofa::filemanager::pml::PMLBody.

Definition at line 85 of file PMLRigidBody.h.

References VisualNode.

MechanicalObject<RigidTypes>* sofa::filemanager::pml::PMLRigidBody::getRefDOF (  )  [inline]

Definition at line 87 of file PMLRigidBody.h.

References refDOF.

void sofa::filemanager::pml::PMLRigidBody::initInertiaMatrix ( string  m  )  [private]

Definition at line 120 of file PMLRigidBody.cpp.

References inertiaMatrix.

Referenced by PMLRigidBody().

void sofa::filemanager::pml::PMLRigidBody::initMass ( string  m  )  [private]

initialization of properties

Definition at line 105 of file PMLRigidBody.cpp.

References massList.

Referenced by PMLRigidBody().

void sofa::filemanager::pml::PMLRigidBody::initPosition ( string  m  )  [private]

Definition at line 135 of file PMLRigidBody.cpp.

References rotPos, and transPos.

Referenced by PMLRigidBody().

void sofa::filemanager::pml::PMLRigidBody::initVelocity ( string  m  )  [private]

Definition at line 168 of file PMLRigidBody.cpp.

References rotVel, and transVel.

Referenced by PMLRigidBody().

string sofa::filemanager::pml::PMLRigidBody::isTypeOf (  )  [inline, virtual]

Implements sofa::filemanager::pml::PMLBody.

Definition at line 78 of file PMLRigidBody.h.


Field Documentation

barycenter coordinates of the solid

Definition at line 119 of file PMLRigidBody.h.

Referenced by createMass(), createMechanicalState(), and createVisualModel().

is the body totally fixed?

Definition at line 90 of file PMLRigidBody.h.

Referenced by PMLRigidBody().

GNode containing the collision models.

Definition at line 117 of file PMLRigidBody.h.

Referenced by ~PMLRigidBody().

Definition at line 123 of file PMLRigidBody.h.

Referenced by createMass(), and initInertiaMatrix().

mapping between refDof and mesh points

Definition at line 113 of file PMLRigidBody.h.

Referenced by createVisualModel(), and ~PMLRigidBody().

Definition at line 122 of file PMLRigidBody.h.

Referenced by createMass(), and initMass().

mechanical model containing the reference node (gravity center)

Definition at line 111 of file PMLRigidBody.h.

Referenced by createMechanicalState(), createVisualModel(), and getRefDOF().

Definition at line 127 of file PMLRigidBody.h.

Referenced by createMechanicalState(), and initPosition().

Definition at line 131 of file PMLRigidBody.h.

Referenced by createMechanicalState(), and initVelocity().

Definition at line 126 of file PMLRigidBody.h.

Referenced by createMechanicalState(), and initPosition().

Definition at line 130 of file PMLRigidBody.h.

Referenced by createMechanicalState(), and initVelocity().

GNode containing the visual model.

Definition at line 115 of file PMLRigidBody.h.

Referenced by createCollisionModel(), createVisualModel(), getPointsNode(), and ~PMLRigidBody().


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

Generated on Sun Nov 23 04:24:00 2008 for Sofa by  doxygen 1.5.7.1