#include <BarycentricMapping.h>


Public Types | |
| typedef TopologyBarycentricMapper< In, Out > | Inherit |
| typedef Inherit::Real | Real |
| typedef Inherit::OutReal | OutReal |
| typedef Inherit::MappingData2D | MappingData |
Public Member Functions | |
| BarycentricMapperTriangleSetTopology (BaseMeshTopology *topology) | |
| virtual | ~BarycentricMapperTriangleSetTopology () |
| void | clear (int reserve=0) |
| int | addPointInTriangle (int triangleIndex, const SReal *baryCoords) |
| int | createPointInTriangle (const typename Out::Coord &p, int triangleIndex, const typename In::VecCoord *points) |
| void | init (const typename Out::VecCoord &out, const typename In::VecCoord &in) |
| 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 (const typename Out::VecCoord &out, const typename In::VecCoord &in) |
| virtual void | handleTopologyChange () |
| virtual void | handlePointEvents (std::list< const core::componentmodel::topology::TopologyChange * >::const_iterator, std::list< const core::componentmodel::topology::TopologyChange * >::const_iterator) |
Protected Attributes | |
| topology::PointData< MappingData > | map |
| BaseMeshTopology * | topology |
Friends | |
| std::istream & | operator>> (std::istream &in, BarycentricMapperTriangleSetTopology< In, Out > &b) |
| std::ostream & | operator<< (std::ostream &out, const BarycentricMapperTriangleSetTopology< In, Out > &b) |
Definition at line 435 of file BarycentricMapping.h.
| typedef TopologyBarycentricMapper<In,Out> sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::Inherit |
Reimplemented from sofa::component::mapping::TopologyBarycentricMapper< In, Out >.
Definition at line 438 of file BarycentricMapping.h.
| typedef Inherit::MappingData2D sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::MappingData |
Definition at line 441 of file BarycentricMapping.h.
| typedef Inherit::OutReal sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::OutReal |
Reimplemented from sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 440 of file BarycentricMapping.h.
| typedef Inherit::Real sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::Real |
Reimplemented from sofa::component::mapping::TopologyBarycentricMapper< In, Out >.
Definition at line 439 of file BarycentricMapping.h.
| sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::BarycentricMapperTriangleSetTopology | ( | BaseMeshTopology * | topology | ) | [inline] |
Definition at line 447 of file BarycentricMapping.h.
| virtual sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::~BarycentricMapperTriangleSetTopology | ( | ) | [inline, virtual] |
Definition at line 452 of file BarycentricMapping.h.
| int sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::addPointInTriangle | ( | int | triangleIndex, | |
| const SReal * | baryCoords | |||
| ) | [inline, virtual] |
Reimplemented from sofa::component::mapping::TopologyBarycentricMapper< In, Out >.
Definition at line 464 of file BarycentricMapping.inl.
References sofa::component::mapping::BarycentricMapper< In, Out >::MappingData< NC, NP >::baryCoords, and sofa::component::mapping::BarycentricMapper< In, Out >::MappingData< NC, NP >::in_index.
Referenced by sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::createPointInTriangle(), and sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::init().
| void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::apply | ( | typename Out::VecCoord & | out, | |
| const typename In::VecCoord & | in | |||
| ) | [inline, virtual] |
Implements sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 1067 of file BarycentricMapping.inl.
References sofa::core::componentmodel::topology::BaseMeshTopology::getTriangles(), and sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::applyJ | ( | typename Out::VecDeriv & | out, | |
| const typename In::VecDeriv & | in | |||
| ) | [inline, virtual] |
Implements sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 1337 of file BarycentricMapping.inl.
References sofa::core::componentmodel::topology::BaseMeshTopology::getTriangles(), and sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::applyJT | ( | typename In::VecConst & | out, | |
| const typename Out::VecConst & | in | |||
| ) | [inline, virtual] |
Implements sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 2436 of file BarycentricMapping.inl.
References sofa::core::componentmodel::topology::BaseMeshTopology::getTriangles(), and sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::applyJT | ( | typename In::VecDeriv & | out, | |
| const typename Out::VecDeriv & | in | |||
| ) | [inline, virtual] |
Implements sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 1606 of file BarycentricMapping.inl.
References sofa::core::componentmodel::topology::BaseMeshTopology::getTriangles(), and sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::clear | ( | int | reserve = 0 |
) | [inline, virtual] |
Implements sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 458 of file BarycentricMapping.inl.
Referenced by sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::init().
| int sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::createPointInTriangle | ( | const typename Out::Coord & | p, | |
| int | triangleIndex, | |||
| const typename In::VecCoord * | points | |||
| ) | [inline, virtual] |
Reimplemented from sofa::component::mapping::TopologyBarycentricMapper< In, Out >.
Definition at line 475 of file BarycentricMapping.inl.
References sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::addPointInTriangle(), cross(), sofa::core::componentmodel::topology::BaseMeshTopology::getTriangle(), norm2(), and sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::draw | ( | const typename Out::VecCoord & | out, | |
| const typename In::VecCoord & | in | |||
| ) | [inline, virtual] |
Implements sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 1982 of file BarycentricMapping.inl.
References sofa::core::componentmodel::topology::BaseMeshTopology::getTriangles(), sofa::helper::gl::glVertexT(), and sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::handlePointEvents | ( | std::list< const core::componentmodel::topology::TopologyChange * >::const_iterator | itBegin, | |
| std::list< const core::componentmodel::topology::TopologyChange * >::const_iterator | itEnd | |||
| ) | [inline, virtual] |
Implements sofa::component::mapping::BarycentricMapperBaseTopology.
Definition at line 2814 of file BarycentricMapping.inl.
| void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::handleTopologyChange | ( | ) | [inline, virtual] |
< To notify the end for the current sequence of topological change events
< For PointsIndicesSwap.
< For PointsAdded.
< For PointsRemoved.
< For PointsRenumbering.
< For TrianglesAdded.
< For TrianglesRemoved.
< For TrianglesRenumbering.
Implements sofa::component::mapping::BarycentricMapperBaseTopology.
Definition at line 2575 of file BarycentricMapping.inl.
References sofa::core::componentmodel::topology::ENDING_EVENT, sofa::core::componentmodel::topology::BaseMeshTopology::firstChange(), sofa::core::componentmodel::topology::BaseMeshTopology::lastChange(), sofa::core::componentmodel::topology::POINTSADDED, sofa::core::componentmodel::topology::POINTSINDICESSWAP, sofa::core::componentmodel::topology::POINTSREMOVED, sofa::core::componentmodel::topology::POINTSRENUMBERING, sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::topology, sofa::core::componentmodel::topology::TRIANGLESADDED, sofa::core::componentmodel::topology::TRIANGLESREMOVED, and sofa::core::componentmodel::topology::TRIANGLESRENUMBERING.
| void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::init | ( | const typename Out::VecCoord & | out, | |
| const typename In::VecCoord & | in | |||
| ) | [inline, virtual] |
Implements sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 493 of file BarycentricMapping.inl.
References sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::addPointInTriangle(), sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::clear(), cross(), sofa::core::componentmodel::topology::BaseMeshTopology::getTriangles(), norm2(), sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::topology, and sofa::defaulttype::Mat< L, C, real >::transpose().
| std::ostream& operator<< | ( | std::ostream & | out, | |
| const BarycentricMapperTriangleSetTopology< In, Out > & | b | |||
| ) | [friend] |
Definition at line 488 of file BarycentricMapping.h.
| std::istream& operator>> | ( | std::istream & | in, | |
| BarycentricMapperTriangleSetTopology< In, Out > & | b | |||
| ) | [friend] |
Definition at line 473 of file BarycentricMapping.h.
topology::PointData< MappingData > sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::map [protected] |
Definition at line 443 of file BarycentricMapping.h.
BaseMeshTopology* sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::topology [protected] |
Definition at line 444 of file BarycentricMapping.h.
Referenced by sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::apply(), sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::applyJ(), sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::applyJT(), sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::createPointInTriangle(), sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::draw(), sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::handleTopologyChange(), and sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::init().
1.5.7.1