#include <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 at graph modification, during bottom-up traversal. | |
| 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) |
| void | applyJT (typename In::VecConst &out, const typename Out::VecConst &in) |
| void | draw () |
| Render internal data of this object, for debugging purposes. | |
Data Fields | |
| Data< bool > | localCoord |
Protected Attributes | |
| sofa::helper::vector< Coord > | points |
| sofa::helper::vector< Real > | beamLength |
| sofa::helper::vector< Coord > | rotatedPoints0 |
| sofa::helper::vector< Coord > | rotatedPoints1 |
Definition at line 43 of file BeamLinearMapping.h.
| typedef Out::Coord sofa::component::mapping::BeamLinearMapping< BasicMapping >::Coord |
Definition at line 51 of file BeamLinearMapping.h.
| typedef Out::Deriv sofa::component::mapping::BeamLinearMapping< BasicMapping >::Deriv |
Definition at line 52 of file BeamLinearMapping.h.
| typedef Inherit::In sofa::component::mapping::BeamLinearMapping< BasicMapping >::In |
Definition at line 47 of file BeamLinearMapping.h.
| typedef In::Deriv sofa::component::mapping::BeamLinearMapping< BasicMapping >::InDeriv |
Definition at line 53 of file BeamLinearMapping.h.
| typedef BasicMapping sofa::component::mapping::BeamLinearMapping< BasicMapping >::Inherit |
Definition at line 46 of file BeamLinearMapping.h.
| typedef In::SparseDeriv sofa::component::mapping::BeamLinearMapping< BasicMapping >::InSparseDeriv |
Definition at line 54 of file BeamLinearMapping.h.
| typedef defaulttype::Mat<N,N,Real> sofa::component::mapping::BeamLinearMapping< BasicMapping >::Mat |
Definition at line 57 of file BeamLinearMapping.h.
| typedef Inherit::Out sofa::component::mapping::BeamLinearMapping< BasicMapping >::Out |
Definition at line 48 of file BeamLinearMapping.h.
| typedef Coord::value_type sofa::component::mapping::BeamLinearMapping< BasicMapping >::Real |
Definition at line 55 of file BeamLinearMapping.h.
| typedef Out::VecCoord sofa::component::mapping::BeamLinearMapping< BasicMapping >::VecCoord |
Definition at line 49 of file BeamLinearMapping.h.
| typedef Out::VecDeriv sofa::component::mapping::BeamLinearMapping< BasicMapping >::VecDeriv |
Definition at line 50 of file BeamLinearMapping.h.
| anonymous enum |
| sofa::component::mapping::BeamLinearMapping< BasicMapping >::BeamLinearMapping | ( | In * | from, | |
| Out * | to | |||
| ) | [inline] |
Definition at line 71 of file BeamLinearMapping.h.
| virtual sofa::component::mapping::BeamLinearMapping< BasicMapping >::~BeamLinearMapping | ( | ) | [inline, virtual] |
Definition at line 78 of file BeamLinearMapping.h.
| void sofa::component::mapping::BeamLinearMapping< BasicMapping >::apply | ( | typename Out::VecCoord & | out, | |
| const typename In::VecCoord & | in | |||
| ) | [inline] |
Definition at line 93 of file BeamLinearMapping.inl.
References sofa::component::mapping::BeamLinearMapping< BasicMapping >::beamLength, 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 118 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::VecConst & | out, | |
| const typename Out::VecConst & | in | |||
| ) | [inline] |
Definition at line 184 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] |
Definition at line 146 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 >::draw | ( | ) | [inline, virtual] |
Render internal data of this object, for debugging purposes.
Reimplemented from sofa::core::objectmodel::BaseObject.
Definition at line 222 of file BeamLinearMapping.inl.
References sofa::helper::gl::glVertexT().
| void sofa::component::mapping::BeamLinearMapping< BasicMapping >::init | ( | void | ) | [inline, virtual] |
Initialization method called at graph modification, during bottom-up traversal.
Reimplemented from sofa::core::objectmodel::BaseObject.
Definition at line 53 of file BeamLinearMapping.inl.
References sofa::component::mapping::BeamLinearMapping< BasicMapping >::beamLength, sofa::core::objectmodel::Data< T >::getValue(), sofa::component::mapping::BeamLinearMapping< BasicMapping >::localCoord, norm(), and sofa::component::mapping::BeamLinearMapping< BasicMapping >::points.
sofa::helper::vector<Real> sofa::component::mapping::BeamLinearMapping< BasicMapping >::beamLength [protected] |
Definition at line 64 of file BeamLinearMapping.h.
Referenced by sofa::component::mapping::BeamLinearMapping< BasicMapping >::apply(), and sofa::component::mapping::BeamLinearMapping< BasicMapping >::init().
| Data<bool> sofa::component::mapping::BeamLinearMapping< BasicMapping >::localCoord |
Definition at line 69 of file BeamLinearMapping.h.
Referenced by sofa::component::mapping::BeamLinearMapping< BasicMapping >::init().
sofa::helper::vector<Coord> sofa::component::mapping::BeamLinearMapping< BasicMapping >::points [protected] |
Definition at line 60 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] |
1.5.7.1