#include <CenterOfMassMapping.h>


Public Types | |
| typedef BasicMapping | Inherit |
| typedef Inherit::In | In |
| typedef Inherit::Out | Out |
| typedef Out::Coord | OutCoord |
| typedef Out::Deriv | OutDeriv |
| typedef In::Coord | InCoord |
| typedef In::Deriv | InDeriv |
| typedef OutCoord::value_type | Real |
Public Member Functions | |
| CenterOfMassMapping (In *from, Out *to) | |
| virtual | ~CenterOfMassMapping () |
| void | init () |
| Initialization method called at graph modification, during bottom-up traversal. | |
| virtual void | apply (typename Out::VecCoord &childPositions, const typename In::VecCoord &parentPositions) |
| virtual void | applyJ (typename Out::VecDeriv &childForces, const typename In::VecDeriv &parentForces) |
| virtual void | applyJT (typename In::VecDeriv &parentForces, const typename Out::VecDeriv &childForces) |
| void | draw () |
| Render internal data of this object, for debugging purposes. | |
Protected Attributes | |
| BaseMass * | masses |
| double | totalMass |
Definition at line 46 of file CenterOfMassMapping.h.
| typedef Inherit::In sofa::component::mapping::CenterOfMassMapping< BasicMapping >::In |
Definition at line 50 of file CenterOfMassMapping.h.
| typedef In::Coord sofa::component::mapping::CenterOfMassMapping< BasicMapping >::InCoord |
Definition at line 54 of file CenterOfMassMapping.h.
| typedef In::Deriv sofa::component::mapping::CenterOfMassMapping< BasicMapping >::InDeriv |
Definition at line 55 of file CenterOfMassMapping.h.
| typedef BasicMapping sofa::component::mapping::CenterOfMassMapping< BasicMapping >::Inherit |
Definition at line 49 of file CenterOfMassMapping.h.
| typedef Inherit::Out sofa::component::mapping::CenterOfMassMapping< BasicMapping >::Out |
Definition at line 51 of file CenterOfMassMapping.h.
| typedef Out::Coord sofa::component::mapping::CenterOfMassMapping< BasicMapping >::OutCoord |
Definition at line 52 of file CenterOfMassMapping.h.
| typedef Out::Deriv sofa::component::mapping::CenterOfMassMapping< BasicMapping >::OutDeriv |
Definition at line 53 of file CenterOfMassMapping.h.
| typedef OutCoord::value_type sofa::component::mapping::CenterOfMassMapping< BasicMapping >::Real |
Definition at line 56 of file CenterOfMassMapping.h.
| sofa::component::mapping::CenterOfMassMapping< BasicMapping >::CenterOfMassMapping | ( | In * | from, | |
| Out * | to | |||
| ) | [inline] |
Definition at line 58 of file CenterOfMassMapping.h.
| virtual sofa::component::mapping::CenterOfMassMapping< BasicMapping >::~CenterOfMassMapping | ( | ) | [inline, virtual] |
Definition at line 61 of file CenterOfMassMapping.h.
| void sofa::component::mapping::CenterOfMassMapping< BasicMapping >::apply | ( | typename Out::VecCoord & | childPositions, | |
| const typename In::VecCoord & | parentPositions | |||
| ) | [inline, virtual] |
| void sofa::component::mapping::CenterOfMassMapping< BasicMapping >::applyJ | ( | typename Out::VecDeriv & | childForces, | |
| const typename In::VecDeriv & | parentForces | |||
| ) | [inline, virtual] |
| void sofa::component::mapping::CenterOfMassMapping< BasicMapping >::applyJT | ( | typename In::VecDeriv & | parentForces, | |
| const typename Out::VecDeriv & | childForces | |||
| ) | [inline, virtual] |
| void sofa::component::mapping::CenterOfMassMapping< BasicMapping >::draw | ( | ) | [inline, virtual] |
Render internal data of this object, for debugging purposes.
Reimplemented from sofa::core::objectmodel::BaseObject.
Definition at line 122 of file CenterOfMassMapping.inl.
References sofa::helper::gl::glVertexT().
| void sofa::component::mapping::CenterOfMassMapping< BasicMapping >::init | ( | void | ) | [inline, virtual] |
Initialization method called at graph modification, during bottom-up traversal.
Reimplemented from sofa::core::objectmodel::BaseObject.
Definition at line 56 of file CenterOfMassMapping.inl.
References sofa::core::componentmodel::behavior::BaseMass::getElementMass(), sofa::component::mapping::CenterOfMassMapping< BasicMapping >::masses, and sofa::component::mapping::CenterOfMassMapping< BasicMapping >::totalMass.
BaseMass* sofa::component::mapping::CenterOfMassMapping< BasicMapping >::masses [protected] |
Definition at line 76 of file CenterOfMassMapping.h.
Referenced by sofa::component::mapping::CenterOfMassMapping< BasicMapping >::apply(), sofa::component::mapping::CenterOfMassMapping< BasicMapping >::applyJ(), sofa::component::mapping::CenterOfMassMapping< BasicMapping >::applyJT(), and sofa::component::mapping::CenterOfMassMapping< BasicMapping >::init().
double sofa::component::mapping::CenterOfMassMapping< BasicMapping >::totalMass [protected] |
Definition at line 78 of file CenterOfMassMapping.h.
Referenced by sofa::component::mapping::CenterOfMassMapping< BasicMapping >::apply(), sofa::component::mapping::CenterOfMassMapping< BasicMapping >::applyJ(), sofa::component::mapping::CenterOfMassMapping< BasicMapping >::applyJT(), and sofa::component::mapping::CenterOfMassMapping< BasicMapping >::init().
1.5.7.1