#include <BarycentricMapping.h>


Public Types | |
| typedef TopologyBarycentricMapper< In, Out > | Inherit |
| typedef Inherit::Real | Real |
| typedef Inherit::OutReal | OutReal |
| typedef Inherit::CubeData | CubeData |
Public Member Functions | |
| BarycentricMapperRegularGridTopology (topology::RegularGridTopology *topology) | |
| virtual | ~BarycentricMapperRegularGridTopology () |
| void | clear (int reserve=0) |
| bool | isEmpty () |
| void | setTopology (topology::RegularGridTopology *topology) |
| int | addPointInCube (int cubeIndex, const SReal *baryCoords) |
| 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) |
| template<> | |
| void | apply (Out::VecCoord &out, const In::VecCoord &in) |
| template<> | |
| void | applyJ (Out::VecDeriv &out, const In::VecDeriv &in) |
| template<> | |
| void | applyJT (In::VecDeriv &out, const Out::VecDeriv &in) |
| template<> | |
| void | applyJT (In::VecConst &, const Out::VecConst &) |
| template<> | |
| void | draw (const Out::VecCoord &, const In::VecCoord &) |
| template<> | |
| void | apply (Out::VecCoord &out, const In::VecCoord &in) |
| template<> | |
| void | applyJ (Out::VecDeriv &out, const In::VecDeriv &in) |
| template<> | |
| void | applyJT (In::VecDeriv &out, const Out::VecDeriv &in) |
| template<> | |
| void | applyJT (In::VecConst &, const Out::VecConst &) |
| template<> | |
| void | draw (const Out::VecCoord &, const In::VecCoord &) |
| template<> | |
| void | apply (Out::VecCoord &out, const In::VecCoord &in) |
| template<> | |
| void | applyJ (Out::VecDeriv &out, const In::VecDeriv &in) |
| template<> | |
| void | applyJT (In::VecDeriv &out, const Out::VecDeriv &in) |
| template<> | |
| void | applyJT (In::VecConst &, const Out::VecConst &) |
| template<> | |
| void | draw (const Out::VecCoord &, const In::VecCoord &) |
| template<> | |
| void | apply (Out::VecCoord &out, const In::VecCoord &in) |
| template<> | |
| void | applyJ (Out::VecDeriv &out, const In::VecDeriv &in) |
| template<> | |
| void | applyJT (In::VecDeriv &out, const Out::VecDeriv &in) |
| template<> | |
| void | applyJT (In::VecConst &, const Out::VecConst &) |
| template<> | |
| void | draw (const Out::VecCoord &, const In::VecCoord &) |
Protected Attributes | |
| sofa::helper::vector< CubeData > | map |
| topology::RegularGridTopology * | topology |
Friends | |
| std::istream & | operator>> (std::istream &in, BarycentricMapperRegularGridTopology< In, Out > &b) |
| std::ostream & | operator<< (std::ostream &out, const BarycentricMapperRegularGridTopology< In, Out > &b) |
Definition at line 154 of file BarycentricMapping.h.
| typedef Inherit::CubeData sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::CubeData |
Reimplemented from sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 160 of file BarycentricMapping.h.
| typedef TopologyBarycentricMapper<In,Out> sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::Inherit |
Reimplemented from sofa::component::mapping::TopologyBarycentricMapper< In, Out >.
Definition at line 157 of file BarycentricMapping.h.
| typedef Inherit::OutReal sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::OutReal |
Reimplemented from sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 159 of file BarycentricMapping.h.
| typedef Inherit::Real sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::Real |
Reimplemented from sofa::component::mapping::TopologyBarycentricMapper< In, Out >.
Definition at line 158 of file BarycentricMapping.h.
| sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::BarycentricMapperRegularGridTopology | ( | topology::RegularGridTopology * | topology | ) | [inline] |
Definition at line 165 of file BarycentricMapping.h.
| virtual sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::~BarycentricMapperRegularGridTopology | ( | ) | [inline, virtual] |
Definition at line 170 of file BarycentricMapping.h.
| int sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::addPointInCube | ( | int | cubeIndex, | |
| const SReal * | baryCoords | |||
| ) | [inline, virtual] |
Reimplemented from sofa::component::mapping::TopologyBarycentricMapper< In, Out >.
Definition at line 81 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::BarycentricMapperRegularGridTopology< In, Out >::init().
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3fTypes, CudaVec3f1Types >::apply | ( | Out::VecCoord & | out, | |
| const In::VecCoord & | in | |||
| ) | [inline] |
Definition at line 298 of file CudaBarycentricMapping.inl.
References sofa::component::topology::GridTopology::getNx(), sofa::component::topology::GridTopology::getNy(), sofa::component::topology::GridTopology::getNz(), sofa::gpu::cuda::RegularGridMapperCuda3f_3f1_apply(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3f1Types, CudaVec3fTypes >::apply | ( | Out::VecCoord & | out, | |
| const In::VecCoord & | in | |||
| ) | [inline] |
Definition at line 259 of file CudaBarycentricMapping.inl.
References sofa::component::topology::GridTopology::getNx(), sofa::component::topology::GridTopology::getNy(), sofa::component::topology::GridTopology::getNz(), sofa::gpu::cuda::RegularGridMapperCuda3f1_3f_apply(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3f1Types, CudaVec3f1Types >::apply | ( | Out::VecCoord & | out, | |
| const In::VecCoord & | in | |||
| ) | [inline] |
Definition at line 219 of file CudaBarycentricMapping.inl.
References sofa::component::topology::GridTopology::getNx(), sofa::component::topology::GridTopology::getNy(), sofa::component::topology::GridTopology::getNz(), sofa::gpu::cuda::RegularGridMapperCuda3f1_apply(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3fTypes, CudaVec3fTypes >::apply | ( | Out::VecCoord & | out, | |
| const In::VecCoord & | in | |||
| ) | [inline] |
Definition at line 179 of file CudaBarycentricMapping.inl.
References sofa::component::topology::GridTopology::getNx(), sofa::component::topology::GridTopology::getNy(), sofa::component::topology::GridTopology::getNz(), sofa::gpu::cuda::RegularGridMapperCuda3f_apply(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::apply | ( | typename Out::VecCoord & | out, | |
| const typename In::VecCoord & | in | |||
| ) | [inline, virtual] |
Implements sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 881 of file BarycentricMapping.inl.
References sofa::component::topology::GridTopology::getCubeCopy(), sofa::component::topology::GridTopology::getHexaCopy(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3fTypes, CudaVec3f1Types >::applyJ | ( | Out::VecDeriv & | out, | |
| const In::VecDeriv & | in | |||
| ) | [inline] |
Definition at line 306 of file CudaBarycentricMapping.inl.
References sofa::component::topology::GridTopology::getNx(), sofa::component::topology::GridTopology::getNy(), sofa::component::topology::GridTopology::getNz(), sofa::gpu::cuda::RegularGridMapperCuda3f_3f1_applyJ(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3f1Types, CudaVec3fTypes >::applyJ | ( | Out::VecDeriv & | out, | |
| const In::VecDeriv & | in | |||
| ) | [inline] |
Definition at line 267 of file CudaBarycentricMapping.inl.
References sofa::component::topology::GridTopology::getNx(), sofa::component::topology::GridTopology::getNy(), sofa::component::topology::GridTopology::getNz(), sofa::gpu::cuda::RegularGridMapperCuda3f1_3f_applyJ(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3f1Types, CudaVec3f1Types >::applyJ | ( | Out::VecDeriv & | out, | |
| const In::VecDeriv & | in | |||
| ) | [inline] |
Definition at line 227 of file CudaBarycentricMapping.inl.
References sofa::component::topology::GridTopology::getNx(), sofa::component::topology::GridTopology::getNy(), sofa::component::topology::GridTopology::getNz(), sofa::gpu::cuda::RegularGridMapperCuda3f1_applyJ(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3fTypes, CudaVec3fTypes >::applyJ | ( | Out::VecDeriv & | out, | |
| const In::VecDeriv & | in | |||
| ) | [inline] |
Definition at line 187 of file CudaBarycentricMapping.inl.
References sofa::component::topology::GridTopology::getNx(), sofa::component::topology::GridTopology::getNy(), sofa::component::topology::GridTopology::getNz(), sofa::gpu::cuda::RegularGridMapperCuda3f_applyJ(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::applyJ | ( | typename Out::VecDeriv & | out, | |
| const typename In::VecDeriv & | in | |||
| ) | [inline, virtual] |
Implements sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 1153 of file BarycentricMapping.inl.
References sofa::component::topology::GridTopology::getCubeCopy(), sofa::component::topology::GridTopology::getHexaCopy(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3fTypes, CudaVec3f1Types >::applyJT | ( | In::VecConst & | , | |
| const Out::VecConst & | ||||
| ) | [inline] |
Definition at line 325 of file CudaBarycentricMapping.inl.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3fTypes, CudaVec3f1Types >::applyJT | ( | In::VecDeriv & | out, | |
| const Out::VecDeriv & | in | |||
| ) | [inline] |
Definition at line 314 of file CudaBarycentricMapping.inl.
References sofa::component::topology::GridTopology::getNx(), sofa::component::topology::GridTopology::getNy(), sofa::component::topology::GridTopology::getNz(), sofa::gpu::cuda::RegularGridMapperCuda3f_3f1_applyJT(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3f1Types, CudaVec3fTypes >::applyJT | ( | In::VecConst & | , | |
| const Out::VecConst & | ||||
| ) | [inline] |
Definition at line 286 of file CudaBarycentricMapping.inl.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3f1Types, CudaVec3fTypes >::applyJT | ( | In::VecDeriv & | out, | |
| const Out::VecDeriv & | in | |||
| ) | [inline] |
Definition at line 275 of file CudaBarycentricMapping.inl.
References sofa::component::topology::GridTopology::getNx(), sofa::component::topology::GridTopology::getNy(), sofa::component::topology::GridTopology::getNz(), sofa::gpu::cuda::RegularGridMapperCuda3f1_3f_applyJT(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3f1Types, CudaVec3f1Types >::applyJT | ( | In::VecConst & | , | |
| const Out::VecConst & | ||||
| ) | [inline] |
Definition at line 246 of file CudaBarycentricMapping.inl.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3f1Types, CudaVec3f1Types >::applyJT | ( | In::VecDeriv & | out, | |
| const Out::VecDeriv & | in | |||
| ) | [inline] |
Definition at line 235 of file CudaBarycentricMapping.inl.
References sofa::component::topology::GridTopology::getNx(), sofa::component::topology::GridTopology::getNy(), sofa::component::topology::GridTopology::getNz(), sofa::gpu::cuda::RegularGridMapperCuda3f1_applyJT(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3fTypes, CudaVec3fTypes >::applyJT | ( | In::VecConst & | , | |
| const Out::VecConst & | ||||
| ) | [inline] |
Definition at line 206 of file CudaBarycentricMapping.inl.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3fTypes, CudaVec3fTypes >::applyJT | ( | In::VecDeriv & | out, | |
| const Out::VecDeriv & | in | |||
| ) | [inline] |
Definition at line 195 of file CudaBarycentricMapping.inl.
References sofa::component::topology::GridTopology::getNx(), sofa::component::topology::GridTopology::getNy(), sofa::component::topology::GridTopology::getNz(), sofa::gpu::cuda::RegularGridMapperCuda3f_applyJT(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::applyJT | ( | typename In::VecConst & | out, | |
| const typename Out::VecConst & | in | |||
| ) | [inline, virtual] |
Implements sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 2124 of file BarycentricMapping.inl.
References sofa::component::topology::GridTopology::getCubeCopy(), sofa::component::topology::GridTopology::getHexaCopy(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::applyJT | ( | typename In::VecDeriv & | out, | |
| const typename Out::VecDeriv & | in | |||
| ) | [inline, virtual] |
Implements sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 1419 of file BarycentricMapping.inl.
References sofa::component::topology::GridTopology::getCubeCopy(), sofa::component::topology::GridTopology::getHexaCopy(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::clear | ( | int | reserve = 0 |
) | [inline, virtual] |
Implements sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 74 of file BarycentricMapping.inl.
Referenced by sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::init().
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3fTypes, CudaVec3f1Types >::draw | ( | const Out::VecCoord & | , | |
| const In::VecCoord & | ||||
| ) | [inline] |
Definition at line 330 of file CudaBarycentricMapping.inl.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3f1Types, CudaVec3fTypes >::draw | ( | const Out::VecCoord & | , | |
| const In::VecCoord & | ||||
| ) | [inline] |
Definition at line 291 of file CudaBarycentricMapping.inl.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3f1Types, CudaVec3f1Types >::draw | ( | const Out::VecCoord & | , | |
| const In::VecCoord & | ||||
| ) | [inline] |
Definition at line 251 of file CudaBarycentricMapping.inl.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< CudaVec3fTypes, CudaVec3fTypes >::draw | ( | const Out::VecCoord & | , | |
| const In::VecCoord & | ||||
| ) | [inline] |
Definition at line 211 of file CudaBarycentricMapping.inl.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< 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 1702 of file BarycentricMapping.inl.
References sofa::component::topology::GridTopology::getCubeCopy(), sofa::component::topology::GridTopology::getHexaCopy(), sofa::helper::gl::glVertexT(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< 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 93 of file BarycentricMapping.inl.
References sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::addPointInCube(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::clear(), sofa::component::topology::RegularGridTopology::findCube(), sofa::component::topology::RegularGridTopology::findNearestCube(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology.
| bool sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::isEmpty | ( | ) | [inline] |
Definition at line 173 of file BarycentricMapping.h.
| void sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::setTopology | ( | topology::RegularGridTopology * | topology | ) | [inline] |
Definition at line 174 of file BarycentricMapping.h.
| std::ostream& operator<< | ( | std::ostream & | out, | |
| const BarycentricMapperRegularGridTopology< In, Out > & | b | |||
| ) | [friend] |
Definition at line 191 of file BarycentricMapping.h.
| std::istream& operator>> | ( | std::istream & | in, | |
| BarycentricMapperRegularGridTopology< In, Out > & | b | |||
| ) | [friend] |
Definition at line 185 of file BarycentricMapping.h.
sofa::helper::vector<CubeData> sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::map [protected] |
Definition at line 162 of file BarycentricMapping.h.
topology::RegularGridTopology* sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::topology [protected] |
Definition at line 163 of file BarycentricMapping.h.
Referenced by sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::apply(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::applyJ(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::applyJT(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::draw(), sofa::component::mapping::BarycentricMapperRegularGridTopology< In, Out >::init(), and sofa::component::mapping::BarycentricMapperRegularGridTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::setTopology().
1.5.7.1