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

#include <IdentityContactMapper.h>

Base class for IdentityMapping based mappers. More...

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

Detailed Description

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

Base class for IdentityMapping based mappers.

Public Attributes

MCollisionModelmodel
 
MMapping::SPtr mapping
 

Public Member Functions

 IdentityContactMapper ()
 
void setCollisionModel (MCollisionModel *model)
 
void cleanup ()
 
MMechanicalStatecreateMapping (const char *name="contactPoints")
 
void resize (int)
 
int addPoint (const Coord &, int index, Real &)
 Adding a point of the global referentiel to the mapping. More...
 
void update ()
 
void updateXfree ()
 
void updateX0 ()
 
- 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>
MMapping::SPtr sofa::component::collision::IdentityContactMapper< TCollisionModel, DataTypes >::mapping
template<class TCollisionModel, class DataTypes>
MCollisionModel* sofa::component::collision::IdentityContactMapper< TCollisionModel, DataTypes >::model

Constructor details

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

Function details

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

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::IdentityContactMapper< TCollisionModel, DataTypes >::cleanup ( )
virtual
template<class TCollisionModel , class DataTypes >
IdentityContactMapper< TCollisionModel, DataTypes >::MMechanicalState * sofa::component::collision::IdentityContactMapper< TCollisionModel, DataTypes >::createMapping ( const char *  name = "contactPoints")
virtual
template<class TCollisionModel, class DataTypes>
void sofa::component::collision::IdentityContactMapper< TCollisionModel, DataTypes >::resize ( int  )
inlinevirtual
template<class TCollisionModel, class DataTypes>
void sofa::component::collision::IdentityContactMapper< TCollisionModel, DataTypes >::setCollisionModel ( MCollisionModel model)
inline
template<class TCollisionModel, class DataTypes>
void sofa::component::collision::IdentityContactMapper< TCollisionModel, DataTypes >::update ( )
inlinevirtual
template<class TCollisionModel, class DataTypes>
void sofa::component::collision::IdentityContactMapper< TCollisionModel, DataTypes >::updateX0 ( )
inline
template<class TCollisionModel, class DataTypes>
void sofa::component::collision::IdentityContactMapper< TCollisionModel, DataTypes >::updateXfree ( )
inlinevirtual