SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::component::collision::IdentityContactMapper< TCollisionModel, typename TCollisionModel::InDataTypes > Class Template Reference

#include <IdentityContactMapper.h>

Specialization of IdentityContactMapper when mapping to the same DataTypes, as no mapping is required in this case. More...

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

Detailed Description

template<class TCollisionModel>
class sofa::component::collision::IdentityContactMapper< TCollisionModel, typename TCollisionModel::InDataTypes >

Specialization of IdentityContactMapper when mapping to the same DataTypes, as no mapping is required in this case.

Public Attributes

MCollisionModelmodel
 

Public Member Functions

 IdentityContactMapper ()
 
void setCollisionModel (MCollisionModel *model)
 
void cleanup ()
 
MMechanicalStatecreateMapping (const char *="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< TCollisionModel::InDataTypes >
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< TCollisionModel::InDataTypes >
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 >
MCollisionModel* sofa::component::collision::IdentityContactMapper< TCollisionModel, typename TCollisionModel::InDataTypes >::model

Constructor details

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

Function details

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

Adding a point of the global referentiel to the mapping.

Reimplemented from sofa::component::collision::BaseContactMapper< TCollisionModel::InDataTypes >.

template<class TCollisionModel >
void sofa::component::collision::IdentityContactMapper< TCollisionModel, typename TCollisionModel::InDataTypes >::cleanup ( )
inlinevirtual
template<class TCollisionModel >
MMechanicalState* sofa::component::collision::IdentityContactMapper< TCollisionModel, typename TCollisionModel::InDataTypes >::createMapping ( const char *  = "contactPoints")
inlinevirtual
template<class TCollisionModel >
void sofa::component::collision::IdentityContactMapper< TCollisionModel, typename TCollisionModel::InDataTypes >::resize ( int  )
inlinevirtual
template<class TCollisionModel >
void sofa::component::collision::IdentityContactMapper< TCollisionModel, typename TCollisionModel::InDataTypes >::setCollisionModel ( MCollisionModel model)
inline
template<class TCollisionModel >
void sofa::component::collision::IdentityContactMapper< TCollisionModel, typename TCollisionModel::InDataTypes >::update ( )
inlinevirtual
template<class TCollisionModel >
void sofa::component::collision::IdentityContactMapper< TCollisionModel, typename TCollisionModel::InDataTypes >::updateX0 ( )
inline
template<class TCollisionModel >
void sofa::component::collision::IdentityContactMapper< TCollisionModel, typename TCollisionModel::InDataTypes >::updateXfree ( )
inlinevirtual