SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::component::constraintset::StopperConstraint< DataTypes > Class Template Reference

#include <StopperConstraint.h>

Inheritance diagram for sofa::component::constraintset::StopperConstraint< DataTypes >:

Protected Attributes

unsigned int cid
 
Data< intindex
 index of the stop constraint More...
 
Data< doublemin
 minimum value accepted More...
 
Data< doublemax
 maximum value accepted More...
 

Public Member Functions

 SOFA_CLASS (SOFA_TEMPLATE(StopperConstraint, DataTypes), SOFA_TEMPLATE(core::behavior::Constraint, DataTypes))
 
void init () override
 
void buildConstraintMatrix (const core::ConstraintParams *cParams, DataMatrixDeriv &c_d, unsigned int &cIndex, const DataVecCoord &x) override
 
void getConstraintViolation (const core::ConstraintParams *cParams, defaulttype::BaseVector *resV, const DataVecCoord &x, const DataVecDeriv &v) override
 
void getConstraintResolution (const core::ConstraintParams *, std::vector< core::behavior::ConstraintResolution * > &resTab, unsigned int &offset) override
 

Protected Member Functions

 StopperConstraint (MechanicalState *object=nullptr)
 
virtual ~StopperConstraint ()
 

Attribute details

template<class DataTypes >
unsigned int sofa::component::constraintset::StopperConstraint< DataTypes >::cid
protected
template<class DataTypes >
Data<int> sofa::component::constraintset::StopperConstraint< DataTypes >::index
protected

index of the stop constraint

template<class DataTypes >
Data<double> sofa::component::constraintset::StopperConstraint< DataTypes >::max
protected

maximum value accepted

template<class DataTypes >
Data<double> sofa::component::constraintset::StopperConstraint< DataTypes >::min
protected

minimum value accepted

Constructor details

template<class DataTypes >
sofa::component::constraintset::StopperConstraint< DataTypes >::StopperConstraint ( MechanicalState object = nullptr)
protected
template<class DataTypes >
virtual sofa::component::constraintset::StopperConstraint< DataTypes >::~StopperConstraint ( )
inlineprotectedvirtual

Function details

template<class DataTypes >
void sofa::component::constraintset::StopperConstraint< DataTypes >::buildConstraintMatrix ( const core::ConstraintParams cParams,
DataMatrixDeriv c_d,
unsigned int cIndex,
const DataVecCoord x 
)
override
template<class DataTypes >
void sofa::component::constraintset::StopperConstraint< DataTypes >::getConstraintResolution ( const core::ConstraintParams ,
std::vector< core::behavior::ConstraintResolution * > &  resTab,
unsigned int offset 
)
override
template<class DataTypes >
void sofa::component::constraintset::StopperConstraint< DataTypes >::getConstraintViolation ( const core::ConstraintParams cParams,
defaulttype::BaseVector resV,
const DataVecCoord x,
const DataVecDeriv v 
)
override
template<class DataTypes >
void sofa::component::constraintset::StopperConstraint< DataTypes >::init ( )
override
template<class DataTypes >
sofa::component::constraintset::StopperConstraint< DataTypes >::SOFA_CLASS ( SOFA_TEMPLATE(StopperConstraint< DataTypes >, DataTypes)  ,
SOFA_TEMPLATE(core::behavior::Constraint, DataTypes)   
)