SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes > Class Template Reference

#include <SubsetContactMapper.h>

Base class for all mappers using SubsetMapping. More...

Inheritance diagram for sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes >:

Detailed Description

template<class TCollisionModel, class DataTypes>
class sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes >

Base class for all mappers using SubsetMapping.

Public Attributes

MCollisionModelmodel
 
simulation::Node::SPtr child
 
MMapping::SPtr mapping
 
MMechanicalState::SPtr outmodel
 
int nbp
 
bool needInit
 

Public Member Functions

 SubsetContactMapper ()
 
void setCollisionModel (MCollisionModel *model)
 
MMechanicalStatecreateMapping (const char *name="contactPoints")
 
void cleanup ()
 
void resize (int size)
 
int addPoint (const Coord &P, int index, Real &)
 Adding a point of the global referentiel to the mapping. More...
 
void update ()
 
void updateXfree ()
 
- Public Member Functions inherited from sofa::component::collision::BaseContactMapper< DataTypes >
virtual ~BaseContactMapper ()
 
virtual int addBaryPoint (const sofa::defaulttype::Vector3 &, int, Real &)
 Adding a point of the local referentiel(barycentric coordinate) to the mapping. More...
 
virtual int addPointB (const Coord &P, int elementId, Real &r, const sofa::defaulttype::Vector3 &)
 
int addPointB (const Coord &P, int elementId, Real &r)
 

Additional Inherited Members

- Static Public Member Functions inherited from sofa::component::collision::BaseContactMapper< DataTypes >
static BaseContactMapper< DataTypes > * Create (core::CollisionModel *model, const std::string &name=std::string("default"))
 
static ContactMapper< TCollisionModel, DataTypes > * create (ContactMapper< TCollisionModel, DataTypes > *, core::CollisionModel *arg)
 

Attribute details

template<class TCollisionModel , class DataTypes >
simulation::Node::SPtr sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes >::child
template<class TCollisionModel , class DataTypes >
MMapping::SPtr sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes >::mapping
template<class TCollisionModel , class DataTypes >
MCollisionModel* sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes >::model
template<class TCollisionModel , class DataTypes >
int sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes >::nbp
template<class TCollisionModel , class DataTypes >
bool sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes >::needInit
template<class TCollisionModel , class DataTypes >
MMechanicalState::SPtr sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes >::outmodel

Constructor details

template<class TCollisionModel , class DataTypes >
sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes >::SubsetContactMapper ( )

Function details

template<class TCollisionModel , class DataTypes >
int sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes >::addPoint ( const Coord ,
int  ,
Real  
)
virtual

Adding a point of the global referentiel to the mapping.

Reimplemented from sofa::component::collision::BaseContactMapper< DataTypes >.

template<class TCollisionModel , class DataTypes >
void sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes >::cleanup ( )
virtual
template<class TCollisionModel , class DataTypes >
SubsetContactMapper< TCollisionModel, DataTypes >::MMechanicalState * sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes >::createMapping ( const char *  name = "contactPoints")
virtual
template<class TCollisionModel , class DataTypes >
void sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes >::resize ( int  size)
virtual
template<class TCollisionModel , class DataTypes >
void sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes >::setCollisionModel ( MCollisionModel model)
template<class TCollisionModel , class DataTypes >
void sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes >::update ( )
virtual
template<class TCollisionModel , class DataTypes >
void sofa::component::collision::SubsetContactMapper< TCollisionModel, DataTypes >::updateXfree ( )
virtual