![]() |
Computer Assited Medical Intervention Tool Kit
version 4.1
|
TODO Comment class here. More...
#include <TranslationConstraint.h>
Inherits ProjectiveConstraintSet< DataTypes >.
Public Types | |
| typedef DataTypes::Coord | Coord |
| typedef DataTypes::Deriv | Deriv |
| typedef DataTypes::MatrixDeriv::RowType | MatrixDerivRowType |
| typedef DataTypes::VecCoord | VecCoord |
| template types More... | |
| typedef DataTypes::VecCoord::iterator | VecCoordIterator |
| typedef DataTypes::VecDeriv | VecDeriv |
| typedef DataTypes::VecDeriv::iterator | VecDerivIterator |
Public Member Functions | |
| TranslationConstraint< DataTypes > * | addConstraint (unsigned int index, Deriv trans) |
| fix or translate a point More... | |
| void | draw () |
| – VisualModel interface More... | |
| std::vector< unsigned int > | getTargets () |
| return the targets list More... | |
| void | initTextures () |
| virtual void | projectPosition (VecCoord &x) |
| project x to constrained space (x models a position) More... | |
| void | projectResponse (VecDeriv &dx) |
| Constraint inherits. More... | |
| void | projectResponse (MatrixDerivRowType &dx) |
| virtual void | projectVelocity (VecDeriv &v) |
| project dx to constrained space (dx models a velocity) More... | |
| TranslationConstraint< DataTypes > * | removeConstraint (int index) |
| void | setInitTime (double time) |
| set initial time (context->getTime() remind the same when simulation is rewind) More... | |
| TranslationConstraint (Loads *loadsList, const std::map< unsigned int, unsigned int > &atomIndexToDOFIndex, sofa::core::behavior::MechanicalState< DataTypes > *mm) | |
| constructor More... | |
| void | update () |
| ~TranslationConstraint () | |
Private Member Functions | |
| void | fixDOF (int index, int axe) |
| fix a point on the axe specified (0=x, 1=y, 2=z) More... | |
Private Attributes | |
| std::map< unsigned int, unsigned int > | atomToDOFIndexes |
| link between PML object indexes and sofa Dofs Indexes More... | |
| VecDeriv | directionsNULLs |
| list of fixed directions More... | |
| VecDeriv | initPos |
| initial positions More... | |
| double | initTime |
| initial time More... | |
| std::vector< Load * > | loads |
| the lml loads More... | |
| sofa::core::behavior::MechanicalState< DataTypes > * | mmodel |
| the mechanical model More... | |
| std::vector< unsigned int > | targets |
| the set of vertex targets More... | |
| VecDeriv | translations |
| list of translations More... | |
TODO Comment class here.
| typedef DataTypes::Coord TranslationConstraint< DataTypes >::Coord |
| typedef DataTypes::Deriv TranslationConstraint< DataTypes >::Deriv |
| typedef DataTypes::MatrixDeriv::RowType TranslationConstraint< DataTypes >::MatrixDerivRowType |
| typedef DataTypes::VecCoord TranslationConstraint< DataTypes >::VecCoord |
template types
| typedef DataTypes::VecCoord::iterator TranslationConstraint< DataTypes >::VecCoordIterator |
| typedef DataTypes::VecDeriv TranslationConstraint< DataTypes >::VecDeriv |
| typedef DataTypes::VecDeriv::iterator TranslationConstraint< DataTypes >::VecDerivIterator |
| TranslationConstraint< DataTypes >::TranslationConstraint | ( | Loads * | loadsList, |
| const std::map< unsigned int, unsigned int > & | atomIndexToDOFIndex, | ||
| sofa::core::behavior::MechanicalState< DataTypes > * | mm | ||
| ) |
constructor
|
inline |
| TranslationConstraint<DataTypes>* TranslationConstraint< DataTypes >::addConstraint | ( | unsigned int | index, |
| Deriv | trans | ||
| ) |
fix or translate a point
Referenced by TranslationConstraint< sofa::defaulttype::Vec3Types >::getTargets().
| void TranslationConstraint< DataTypes >::draw | ( | ) |
– VisualModel interface
Referenced by TranslationConstraint< sofa::defaulttype::Vec3Types >::projectResponse().
|
private |
fix a point on the axe specified (0=x, 1=y, 2=z)
Referenced by TranslationConstraint< sofa::defaulttype::Vec3Types >::update().
|
inline |
return the targets list
Referenced by SofaSimulator::buildConstraints().
|
inline |
|
virtual |
project x to constrained space (x models a position)
Referenced by TranslationConstraint< sofa::defaulttype::Vec3Types >::getTargets().
| void TranslationConstraint< DataTypes >::projectResponse | ( | VecDeriv & | dx | ) |
Constraint inherits.
project dx to constrained space
Referenced by TranslationConstraint< sofa::defaulttype::Vec3Types >::getTargets().
|
inline |
|
virtual |
project dx to constrained space (dx models a velocity)
Referenced by TranslationConstraint< sofa::defaulttype::Vec3Types >::getTargets().
| TranslationConstraint<DataTypes>* TranslationConstraint< DataTypes >::removeConstraint | ( | int | index | ) |
| void TranslationConstraint< DataTypes >::setInitTime | ( | double | time | ) |
set initial time (context->getTime() remind the same when simulation is rewind)
Referenced by SofaSimulator::buildConstraints(), and TranslationConstraint< sofa::defaulttype::Vec3Types >::update().
|
inline |
|
private |
link between PML object indexes and sofa Dofs Indexes
|
private |
list of fixed directions
|
private |
initial positions
|
private |
initial time
|
private |
the lml loads
|
private |
the mechanical model
|
private |
the set of vertex targets
Referenced by TranslationConstraint< sofa::defaulttype::Vec3Types >::getTargets().
|
private |
list of translations
1.8.13