#include <BeamLinearMapping.h>


Definition at line 44 of file BeamLinearMapping.h.
Public Types | |
| enum | { N = Coord::static_size } |
| typedef BasicMapping | Inherit |
| typedef Inherit::In | In |
| typedef Inherit::Out | Out |
| typedef Out::VecCoord | VecCoord |
| typedef Out::VecDeriv | VecDeriv |
| typedef Out::Coord | Coord |
| typedef Out::Deriv | Deriv |
| typedef In::Deriv | InDeriv |
| typedef In::SparseDeriv | InSparseDeriv |
| typedef Coord::value_type | Real |
| typedef defaulttype::Mat< N, N, Real > | Mat |
Public Member Functions | |
| BeamLinearMapping (In *from, Out *to) | |
| virtual | ~BeamLinearMapping () |
| void | init () |
| Initialization method called after each graph modification. | |
| void | apply (typename Out::VecCoord &out, const typename In::VecCoord &in) |
| void | applyJ (typename Out::VecDeriv &out, const typename In::VecDeriv &in) |
| void | applyJT (typename In::VecDeriv &out, const typename Out::VecDeriv &in) |
| Template specialization for 2D rigids. | |
| void | applyJT (typename In::VecConst &out, const typename Out::VecConst &in) |
| Template specialization for 2D rigids. | |
| void | draw () |
| Template specialization for 2D rigids. | |
| void | initTextures () |
| void | update () |
Data Fields | |
| Data< unsigned > | index |
Protected Member Functions | |
| bool | getShow (const core::objectmodel::BaseObject *m) const |
| bool | getShow (const core::componentmodel::behavior::BaseMechanicalMapping *m) const |
Protected Attributes | |
| sofa::helper::vector < Coord > | points |
| sofa::helper::vector < Coord > | rotatedPoints0 |
| sofa::helper::vector < Coord > | rotatedPoints1 |
| typedef BasicMapping sofa::component::mapping::BeamLinearMapping< BasicMapping >::Inherit |
Definition at line 47 of file BeamLinearMapping.h.
| typedef Inherit::In sofa::component::mapping::BeamLinearMapping< BasicMapping >::In |
Definition at line 48 of file BeamLinearMapping.h.
| typedef Inherit::Out sofa::component::mapping::BeamLinearMapping< BasicMapping >::Out |
Definition at line 49 of file BeamLinearMapping.h.
| typedef Out::VecCoord sofa::component::mapping::BeamLinearMapping< BasicMapping >::VecCoord |
Definition at line 50 of file BeamLinearMapping.h.
| typedef Out::VecDeriv sofa::component::mapping::BeamLinearMapping< BasicMapping >::VecDeriv |
Definition at line 51 of file BeamLinearMapping.h.
| typedef Out::Coord sofa::component::mapping::BeamLinearMapping< BasicMapping >::Coord |
Definition at line 52 of file BeamLinearMapping.h.
| typedef Out::Deriv sofa::component::mapping::BeamLinearMapping< BasicMapping >::Deriv |
Definition at line 53 of file BeamLinearMapping.h.
| typedef In::Deriv sofa::component::mapping::BeamLinearMapping< BasicMapping >::InDeriv |
Definition at line 54 of file BeamLinearMapping.h.
| typedef In::SparseDeriv sofa::component::mapping::BeamLinearMapping< BasicMapping >::InSparseDeriv |
Definition at line 55 of file BeamLinearMapping.h.
| typedef Coord::value_type sofa::component::mapping::BeamLinearMapping< BasicMapping >::Real |
Definition at line 56 of file BeamLinearMapping.h.
| typedef defaulttype::Mat<N,N,Real> sofa::component::mapping::BeamLinearMapping< BasicMapping >::Mat |
Definition at line 58 of file BeamLinearMapping.h.
| anonymous enum |
| sofa::component::mapping::BeamLinearMapping< BasicMapping >::BeamLinearMapping | ( | In * | from, | |
| Out * | to | |||
| ) | [inline] |
Definition at line 70 of file BeamLinearMapping.h.
| virtual sofa::component::mapping::BeamLinearMapping< BasicMapping >::~BeamLinearMapping | ( | ) | [inline, virtual] |
Definition at line 76 of file BeamLinearMapping.h.
| void sofa::component::mapping::BeamLinearMapping< BasicMapping >::init | ( | void | ) | [inline, virtual] |
Initialization method called after each graph modification.
Reimplemented from sofa::core::objectmodel::BaseObject.
Definition at line 53 of file BeamLinearMapping.inl.
References sofa::simulation::tree::init(), and sofa::component::mapping::BeamLinearMapping< BasicMapping >::points.
| void sofa::component::mapping::BeamLinearMapping< BasicMapping >::apply | ( | typename Out::VecCoord & | out, | |
| const typename In::VecCoord & | in | |||
| ) | [inline] |
Definition at line 67 of file BeamLinearMapping.inl.
References sofa::component::mapping::BeamLinearMapping< BasicMapping >::points, sofa::helper::rfloor(), sofa::component::mapping::BeamLinearMapping< BasicMapping >::rotatedPoints0, and sofa::component::mapping::BeamLinearMapping< BasicMapping >::rotatedPoints1.
| void sofa::component::mapping::BeamLinearMapping< BasicMapping >::applyJ | ( | typename Out::VecDeriv & | out, | |
| const typename In::VecDeriv & | in | |||
| ) | [inline] |
Definition at line 90 of file BeamLinearMapping.inl.
References cross(), sofa::component::mapping::BeamLinearMapping< BasicMapping >::points, sofa::helper::rfloor(), sofa::component::mapping::BeamLinearMapping< BasicMapping >::rotatedPoints0, and sofa::component::mapping::BeamLinearMapping< BasicMapping >::rotatedPoints1.
| void sofa::component::mapping::BeamLinearMapping< BasicMapping >::applyJT | ( | typename In::VecDeriv & | out, | |
| const typename Out::VecDeriv & | in | |||
| ) | [inline] |
Template specialization for 2D rigids.
Definition at line 127 of file BeamLinearMapping.inl.
References cross(), sofa::component::mapping::BeamLinearMapping< BasicMapping >::points, sofa::helper::rfloor(), sofa::component::mapping::BeamLinearMapping< BasicMapping >::rotatedPoints0, and sofa::component::mapping::BeamLinearMapping< BasicMapping >::rotatedPoints1.
| void sofa::component::mapping::BeamLinearMapping< BaseMapping >::applyJT | ( | typename In::VecConst & | out, | |
| const typename Out::VecConst & | in | |||
| ) | [inline] |
| void sofa::component::mapping::BeamLinearMapping< BasicMapping >::draw | ( | ) | [inline, virtual] |
Template specialization for 2D rigids.
Implements sofa::core::VisualModel.
Definition at line 236 of file BeamLinearMapping.inl.
References sofa::component::mapping::BeamLinearMapping< BasicMapping >::getShow(), and sofa::helper::gl::glVertexT().
| void sofa::component::mapping::BeamLinearMapping< BasicMapping >::initTextures | ( | ) | [inline, virtual] |
Initialize the textures, or other graphical resources.
Called once before the first frame is drawn, and if the graphical context has been recreated.
Implements sofa::core::VisualModel.
Definition at line 92 of file BeamLinearMapping.h.
| void sofa::component::mapping::BeamLinearMapping< BasicMapping >::update | ( | ) | [inline, virtual] |
used to update the model if necessary.
Implements sofa::core::VisualModel.
Definition at line 93 of file BeamLinearMapping.h.
| bool sofa::component::mapping::BeamLinearMapping< BasicMapping >::getShow | ( | const core::objectmodel::BaseObject * | m | ) | const [inline, protected] |
Definition at line 99 of file BeamLinearMapping.h.
References sofa::core::objectmodel::BaseObject::getContext(), and sofa::core::objectmodel::BaseContext::getShowMappings().
Referenced by sofa::component::mapping::BeamLinearMapping< BasicMapping >::draw().
| bool sofa::component::mapping::BeamLinearMapping< BasicMapping >::getShow | ( | const core::componentmodel::behavior::BaseMechanicalMapping * | m | ) | const [inline, protected] |
Definition at line 101 of file BeamLinearMapping.h.
References sofa::core::objectmodel::BaseObject::getContext(), and sofa::core::objectmodel::BaseContext::getShowMechanicalMappings().
sofa::helper::vector<Coord> sofa::component::mapping::BeamLinearMapping< BasicMapping >::points [protected] |
Definition at line 61 of file BeamLinearMapping.h.
Referenced by sofa::component::mapping::BeamLinearMapping< BasicMapping >::apply(), sofa::component::mapping::BeamLinearMapping< BasicMapping >::applyJ(), sofa::component::mapping::BeamLinearMapping< BasicMapping >::applyJT(), and sofa::component::mapping::BeamLinearMapping< BasicMapping >::init().
sofa::helper::vector<Coord> sofa::component::mapping::BeamLinearMapping< BasicMapping >::rotatedPoints0 [protected] |
sofa::helper::vector<Coord> sofa::component::mapping::BeamLinearMapping< BasicMapping >::rotatedPoints1 [protected] |
| Data<unsigned> sofa::component::mapping::BeamLinearMapping< BasicMapping >::index |
Definition at line 68 of file BeamLinearMapping.h.
1.5.3