sofa::component::collision::TetrahedronModel Class Reference

#include <TetrahedronModel.h>

Inheritance diagram for sofa::component::collision::TetrahedronModel:

Inheritance graph
[legend]
Collaboration diagram for sofa::component::collision::TetrahedronModel:

Collaboration graph
[legend]

Data Structures

struct  TetrahedronInfo

Public Types

typedef Vec3Types InDataTypes
typedef Vec3Types DataTypes
typedef DataTypes::VecCoord VecCoord
typedef DataTypes::VecDeriv VecDeriv
typedef DataTypes::Coord Coord
typedef DataTypes::Deriv Deriv
typedef Tetrahedron Element

Public Member Functions

 TetrahedronModel ()
virtual void init ()
 Initialization method called at graph modification, during bottom-up traversal.
virtual void resize (int size)
 Set the number of elements.
virtual void computeBoundingTree (int maxDepth=0)
 Create or update the bounding volume hierarchy.
void draw (int index)
 Render an collision element.
void draw ()
 Render the whole collision model.
virtual void handleTopologyChange ()
 Handle topological Changes.
core::componentmodel::behavior::MechanicalState
< Vec3Types > * 
getMechanicalState ()

Protected Attributes

sofa::helper::vector
< TetrahedronInfo > 
elems
const
sofa::core::componentmodel::topology::BaseMeshTopology::SeqTetras * 
tetra
core::componentmodel::behavior::MechanicalState
< Vec3Types > * 
mstate
sofa::core::componentmodel::topology::BaseMeshTopology * _topology

Friends

class Tetrahedron

Detailed Description

Definition at line 82 of file TetrahedronModel.h.


Member Typedef Documentation

Definition at line 89 of file TetrahedronModel.h.

Definition at line 86 of file TetrahedronModel.h.

Definition at line 90 of file TetrahedronModel.h.

Definition at line 91 of file TetrahedronModel.h.

Definition at line 85 of file TetrahedronModel.h.

Definition at line 87 of file TetrahedronModel.h.

Definition at line 88 of file TetrahedronModel.h.


Constructor & Destructor Documentation

sofa::component::collision::TetrahedronModel::TetrahedronModel (  ) 

Definition at line 54 of file TetrahedronModel.cpp.


Member Function Documentation

void sofa::component::collision::TetrahedronModel::computeBoundingTree ( int  maxDepth = 0  )  [virtual]

void sofa::component::collision::TetrahedronModel::draw (  )  [virtual]

void sofa::component::collision::TetrahedronModel::draw ( int   )  [virtual]

core::componentmodel::behavior::MechanicalState<Vec3Types>* sofa::component::collision::TetrahedronModel::getMechanicalState (  )  [inline]

Definition at line 129 of file TetrahedronModel.h.

References mstate.

void sofa::component::collision::TetrahedronModel::handleTopologyChange (  )  [virtual]

Handle topological Changes.

Reimplemented from sofa::core::objectmodel::BaseObject.

Definition at line 89 of file TetrahedronModel.cpp.

References _topology, sofa::core::componentmodel::topology::BaseMeshTopology::getNbTetras(), and resize().

void sofa::component::collision::TetrahedronModel::init ( void   )  [virtual]

void sofa::component::collision::TetrahedronModel::resize ( int  s  )  [virtual]

Set the number of elements.

Reimplemented from sofa::core::CollisionModel.

Definition at line 59 of file TetrahedronModel.cpp.

References elems, sofa::core::CollisionModel::getPrevious(), and sofa::core::CollisionModel::resize().

Referenced by handleTopologyChange(), and init().


Friends And Related Function Documentation

friend class Tetrahedron [friend]

Definition at line 92 of file TetrahedronModel.h.


Field Documentation

Definition at line 107 of file TetrahedronModel.h.

Referenced by computeBoundingTree(), draw(), handleTopologyChange(), and init().

Definition at line 102 of file TetrahedronModel.h.

Referenced by computeBoundingTree(), and resize().

Definition at line 105 of file TetrahedronModel.h.

Referenced by computeBoundingTree(), draw(), getMechanicalState(), and init().

Definition at line 103 of file TetrahedronModel.h.

Referenced by init().


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

Generated on Sun Nov 23 04:17:38 2008 for Sofa by  doxygen 1.5.7.1