#include <CudaBarycentricMapping.h>


Data Structures | |
| class | MapData |
Public Types | |
| typedef gpu::cuda::CudaVectorTypes < VecIn, VecIn, float > | In |
| typedef gpu::cuda::CudaVectorTypes < VecOut, VecOut, float > | Out |
| typedef TopologyBarycentricMapper< In, Out > | Inherit |
| typedef Inherit::Real | Real |
| typedef Inherit::OutReal | OutReal |
Public Member Functions | |
| BarycentricMapperMeshTopology (core::componentmodel::topology::BaseMeshTopology *topology) | |
| void | clear (int reserve=0) |
| int | addPointInLine (int lineIndex, const SReal *baryCoords) |
| int | createPointInLine (const typename Out::Coord &p, int lineIndex, const typename In::VecCoord *points) |
| int | addPointInTriangle (int triangleIndex, const SReal *baryCoords) |
| int | createPointInTriangle (const typename Out::Coord &p, int triangleIndex, const typename In::VecCoord *points) |
| int | addPointInQuad (int quadIndex, const SReal *baryCoords) |
| int | createPointInQuad (const typename Out::Coord &p, int quadIndex, const typename In::VecCoord *points) |
| int | addPointInTetra (int tetraIndex, const SReal *baryCoords) |
| 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) |
Protected Member Functions | |
| void | resizeMap (int size2, int maxNIn2) |
| void | setMap (int outIndex, int j, int inIndex, Real val) |
| void | calcMapT () |
Protected Attributes | |
| int | maxNIn |
| int | maxNOut |
| int | insize |
| int | size |
| gpu::cuda::CudaVector< MapData > | map |
| gpu::cuda::CudaVector< MapData > | mapT |
| core::componentmodel::topology::BaseMeshTopology * | topology |
Friends | |
| std::istream & | operator>> (std::istream &in, BarycentricMapperMeshTopology< In, Out > &b) |
| std::ostream & | operator<< (std::ostream &out, const BarycentricMapperMeshTopology< In, Out > &b) |
Definition at line 92 of file CudaBarycentricMapping.h.
| typedef gpu::cuda::CudaVectorTypes<VecIn,VecIn,float> sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::In |
Definition at line 95 of file CudaBarycentricMapping.h.
| typedef TopologyBarycentricMapper<In,Out> sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::Inherit |
Reimplemented from sofa::component::mapping::TopologyBarycentricMapper< In, Out >.
Definition at line 97 of file CudaBarycentricMapping.h.
| typedef gpu::cuda::CudaVectorTypes<VecOut,VecOut,float> sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::Out |
Definition at line 96 of file CudaBarycentricMapping.h.
| typedef Inherit::OutReal sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::OutReal |
Reimplemented from sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 99 of file CudaBarycentricMapping.h.
| typedef Inherit::Real sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::Real |
Reimplemented from sofa::component::mapping::TopologyBarycentricMapper< In, Out >.
Definition at line 98 of file CudaBarycentricMapping.h.
| sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::BarycentricMapperMeshTopology | ( | core::componentmodel::topology::BaseMeshTopology * | topology | ) | [inline] |
Definition at line 124 of file CudaBarycentricMapping.h.
References sofa::core::componentmodel::topology::BaseMeshTopology::getNbHexas().
| int sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::addPointInCube | ( | int | cubeIndex, | |
| const SReal * | baryCoords | |||
| ) | [inline, virtual] |
Reimplemented from sofa::component::mapping::TopologyBarycentricMapper< In, Out >.
Definition at line 431 of file CudaBarycentricMapping.inl.
| int sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::addPointInLine | ( | int | lineIndex, | |
| const SReal * | baryCoords | |||
| ) | [inline, virtual] |
Reimplemented from sofa::component::mapping::TopologyBarycentricMapper< In, Out >.
Definition at line 382 of file CudaBarycentricMapping.inl.
| int sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::addPointInQuad | ( | int | quadIndex, | |
| const SReal * | baryCoords | |||
| ) | [inline, virtual] |
Reimplemented from sofa::component::mapping::TopologyBarycentricMapper< In, Out >.
Definition at line 405 of file CudaBarycentricMapping.inl.
| int sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::addPointInTetra | ( | int | tetraIndex, | |
| const SReal * | baryCoords | |||
| ) | [inline, virtual] |
Reimplemented from sofa::component::mapping::TopologyBarycentricMapper< In, Out >.
Definition at line 418 of file CudaBarycentricMapping.inl.
| int sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::addPointInTriangle | ( | int | triangleIndex, | |
| const SReal * | baryCoords | |||
| ) | [inline, virtual] |
Reimplemented from sofa::component::mapping::TopologyBarycentricMapper< In, Out >.
Definition at line 393 of file CudaBarycentricMapping.inl.
| void sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::apply | ( | typename Out::VecCoord & | out, | |
| const typename In::VecCoord & | in | |||
| ) | [virtual] |
| void sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::applyJ | ( | typename Out::VecDeriv & | out, | |
| const typename In::VecDeriv & | in | |||
| ) |
| void sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::applyJT | ( | typename In::VecConst & | out, | |
| const typename Out::VecConst & | in | |||
| ) |
| void sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::applyJT | ( | typename In::VecDeriv & | out, | |
| const typename Out::VecDeriv & | in | |||
| ) |
| void sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::calcMapT | ( | ) | [inline, protected] |
| void sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::clear | ( | int | reserve = 0 |
) | [inline, virtual] |
Implements sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 375 of file CudaBarycentricMapping.inl.
References BSIZE.
| int sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::createPointInLine | ( | const typename Out::Coord & | p, | |
| int | lineIndex, | |||
| const typename In::VecCoord * | points | |||
| ) | [inline, virtual] |
Reimplemented from sofa::component::mapping::TopologyBarycentricMapper< In, Out >.
Definition at line 461 of file CudaBarycentricMapping.inl.
| int sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::createPointInQuad | ( | const typename Out::Coord & | p, | |
| int | quadIndex, | |||
| const typename In::VecCoord * | points | |||
| ) | [inline, virtual] |
Reimplemented from sofa::component::mapping::TopologyBarycentricMapper< In, Out >.
Definition at line 491 of file CudaBarycentricMapping.inl.
References cross(), sofa::defaulttype::Mat< L, C, real >::invert(), and sofa::defaulttype::Mat< L, C, real >::transpose().
| int sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::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 473 of file CudaBarycentricMapping.inl.
| void sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::draw | ( | const typename Out::VecCoord & | out, | |
| const typename In::VecCoord & | in | |||
| ) | [virtual] |
| void sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::init | ( | const typename Out::VecCoord & | out, | |
| const typename In::VecCoord & | in | |||
| ) | [inline, virtual] |
Implements sofa::component::mapping::BarycentricMapper< In, Out >.
Definition at line 514 of file CudaBarycentricMapping.inl.
References BSIZE, sofa::component::clear(), cross(), norm2(), and sofa::defaulttype::Mat< L, C, real >::transpose().
| void sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::resizeMap | ( | int | size2, | |
| int | maxNIn2 | |||
| ) | [inline, protected] |
| void sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::setMap | ( | int | outIndex, | |
| int | j, | |||
| int | inIndex, | |||
| Real | val | |||
| ) | [inline, protected] |
| std::ostream& operator<< | ( | std::ostream & | out, | |
| const BarycentricMapperMeshTopology< In, Out > & | b | |||
| ) | [friend] |
Definition at line 160 of file CudaBarycentricMapping.h.
| std::istream& operator>> | ( | std::istream & | in, | |
| BarycentricMapperMeshTopology< In, Out > & | b | |||
| ) | [friend] |
Definition at line 154 of file CudaBarycentricMapping.h.
int sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::insize [protected] |
Definition at line 116 of file CudaBarycentricMapping.h.
gpu::cuda::CudaVector< MapData > sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::map [protected] |
Definition at line 117 of file CudaBarycentricMapping.h.
gpu::cuda::CudaVector< MapData > sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::mapT [protected] |
Definition at line 118 of file CudaBarycentricMapping.h.
int sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::maxNIn [protected] |
Definition at line 114 of file CudaBarycentricMapping.h.
int sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::maxNOut [protected] |
Definition at line 115 of file CudaBarycentricMapping.h.
int sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::size [protected] |
Definition at line 116 of file CudaBarycentricMapping.h.
core::componentmodel::topology::BaseMeshTopology* sofa::component::mapping::BarycentricMapperMeshTopology< gpu::cuda::CudaVectorTypes< VecIn, VecIn, float >, gpu::cuda::CudaVectorTypes< VecOut, VecOut, float > >::topology [protected] |
Definition at line 119 of file CudaBarycentricMapping.h.
1.5.7.1