TODO Comment class here. More...
#include <TranslationConstraint.h>
Inheritance diagram for TranslationConstraint< DataTypes >:
Collaboration diagram for TranslationConstraint< DataTypes >:Public Types | |
| typedef DataTypes::Coord | Coord |
| typedef DataTypes::Deriv | Deriv |
| typedef DataTypes::MatrixDeriv::RowType | MatrixDerivRowType |
| typedef DataTypes::VecCoord | VecCoord |
| template types | |
| 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 | |
| void | draw () |
| – VisualModel interface | |
| std::vector< unsigned int > | getTargets () |
| return the targets list | |
| void | initTextures () |
| virtual void | projectPosition (VecCoord &x) |
| project x to constrained space (x models a position) | |
| void | projectResponse (MatrixDerivRowType &dx) |
| void | projectResponse (VecDeriv &dx) |
| Constraint inherits. | |
| virtual void | projectVelocity (VecDeriv &v) |
| project dx to constrained space (dx models a velocity) | |
| TranslationConstraint< DataTypes > * | removeConstraint (int index) |
| void | setInitTime (double time) |
| set initial time (context->getTime() remind the same when simulation is rewind) | |
| TranslationConstraint (Loads *loadsList, const std::map< unsigned int, unsigned int > &atomIndexToDOFIndex, sofa::core::behavior::MechanicalState< DataTypes > *mm) | |
| constructor | |
| void | update () |
| ~TranslationConstraint () | |
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
References Load::getDirection(), Loads::getLoad(), Load::getType(), Loads::numberOfLoads(), and Load::numberOfTargets().
Here is the call graph for this function:
|
inline |
| TranslationConstraint< DataTypes > * TranslationConstraint< DataTypes >::addConstraint | ( | unsigned int | index, |
| Deriv | trans | ||
| ) |
fix or translate a point
Referenced by TranslationConstraint< sofa::defaulttype::Vec3Types >::TranslationConstraint().
Here is the caller graph for this function:| void TranslationConstraint< DataTypes >::draw | ( | ) |
– VisualModel interface
|
inline |
return the targets list
|
inline |
|
virtual |
project x to constrained space (x models a position)
References Load::getDirection(), Load::getTarget(), Load::getValue(), and Load::numberOfTargets().
Here is the call graph for this function:
|
inline |
| void TranslationConstraint< DataTypes >::projectResponse | ( | VecDeriv & | dx | ) |
Constraint inherits.
project dx to constrained space
References Load::getDirection(), Load::getTarget(), Load::getValue(), and Load::numberOfTargets().
Here is the call graph for this function:
|
virtual |
project dx to constrained space (dx models a velocity)
| 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)
|
inline |