SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out > Class Template Reference

#include <BarycentricMappingRigid.h>

Class allowing barycentric mapping computation on a TetrahedronSetTopology in Vec3 -> Rigid case. More...

Inheritance diagram for sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >:

Detailed Description

template<class In, class Out>
class sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >

Class allowing barycentric mapping computation on a TetrahedronSetTopology in Vec3 -> Rigid case.

Protected Attributes

core::topology::PointData< sofa::type::vector< MappingData > > map
 mapper data More...
 
core::topology::PointData< sofa::type::vector< MappingOrientData > > mapOrient
 mapper data for mapped frames More...
 
VecCoord actualTetraPosition
 
MatrixTypematrixJ
 
bool updateJ
 
VecDeriv actualOut
 TEMP. More...
 
Out::VecCoord actualPos
 

Public Member Functions

 SOFA_CLASS (SOFA_TEMPLATE2(BarycentricMapperTetrahedronSetTopologyRigid, In, Out), SOFA_TEMPLATE2(TopologyBarycentricMapper, In, Out))
 
void clear (std::size_t reserve=0) override
 
Index addPointInTetra (const Index index, const SReal *baryCoords) override
 
Index addPointOrientationInTetra (const Index tetraIndex, const sofa::type::Matrix3 baryCoorsOrient)
 
void init (const typename Out::VecCoord &out, const typename In::VecCoord &in) override
 
void apply (typename Out::VecCoord &out, const typename In::VecCoord &in) override
 
void applyJ (typename Out::VecDeriv &out, const typename In::VecDeriv &in) override
 
void applyJT (typename In::VecDeriv &out, const typename Out::VecDeriv &in) override
 
void applyJT (typename In::MatrixDeriv &out, const typename Out::MatrixDeriv &in) override
 
const sofa::linearalgebra::BaseMatrixgetJ (int outSize, int inSize) override
 
void draw (const core::visual::VisualParams *, const typename Out::VecCoord &out, const typename In::VecCoord &in) override
 
void resize (core::State< Out > *toModel) override
 

Protected Member Functions

 BarycentricMapperTetrahedronSetTopologyRigid (core::topology::BaseMeshTopology *fromTopology, core::topology::BaseMeshTopology *_toTopology)
 TEMP. More...
 
virtual ~BarycentricMapperTetrahedronSetTopologyRigid ()
 

Attribute details

◆ actualOut

template<class In , class Out >
VecDeriv sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::actualOut
protected

TEMP.

◆ actualPos

template<class In , class Out >
Out::VecCoord sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::actualPos
protected

◆ actualTetraPosition

template<class In , class Out >
VecCoord sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::actualTetraPosition
protected

◆ map

◆ mapOrient

mapper data for mapped frames

◆ matrixJ

template<class In , class Out >
MatrixType* sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::matrixJ
protected

◆ updateJ

template<class In , class Out >
bool sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::updateJ
protected

Constructor details

◆ BarycentricMapperTetrahedronSetTopologyRigid()

◆ ~BarycentricMapperTetrahedronSetTopologyRigid()

template<class In , class Out >
virtual sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::~BarycentricMapperTetrahedronSetTopologyRigid ( )
inlineprotectedvirtual

Function details

◆ addPointInTetra()

template<class In , class Out >
BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::Index sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::addPointInTetra ( const Index  index,
const SReal *  baryCoords 
)
override

◆ addPointOrientationInTetra()

template<class In , class Out >
BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::Index sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::addPointOrientationInTetra ( const Index  tetraIndex,
const sofa::type::Matrix3  baryCoorsOrient 
)

◆ apply()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::apply ( typename Out::VecCoord &  out,
const typename In::VecCoord &  in 
)
override

◆ applyJ()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::applyJ ( typename Out::VecDeriv &  out,
const typename In::VecDeriv &  in 
)
override

◆ applyJT() [1/2]

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::applyJT ( typename In::MatrixDeriv &  out,
const typename Out::MatrixDeriv &  in 
)
override

◆ applyJT() [2/2]

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::applyJT ( typename In::VecDeriv &  out,
const typename Out::VecDeriv &  in 
)
override

◆ clear()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::clear ( std::size_t  reserve = 0)
override

◆ draw()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::draw ( const core::visual::VisualParams vparams,
const typename Out::VecCoord &  out,
const typename In::VecCoord &  in 
)
override

◆ getJ()

template<class In , class Out >
const sofa::linearalgebra::BaseMatrix * sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::getJ ( int  outSize,
int  inSize 
)
override

◆ init()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::init ( const typename Out::VecCoord &  out,
const typename In::VecCoord &  in 
)
override

◆ resize()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::resize ( core::State< Out > *  toModel)
override

◆ SOFA_CLASS()

template<class In , class Out >
sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopologyRigid< In, Out >::SOFA_CLASS ( SOFA_TEMPLATE2(BarycentricMapperTetrahedronSetTopologyRigid< In, Out >, In, Out)  ,
SOFA_TEMPLATE2(TopologyBarycentricMapper, In, Out)   
)

Enum details

◆ anonymous enum

template<class In , class Out >
anonymous enum
Enumerator
NIn 

◆ anonymous enum

template<class In , class Out >
anonymous enum
Enumerator
NOut