SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out > Class Template Reference

#include <BarycentricMapperSparseGridTopology.h>

Class allowing barycentric mapping computation on a SparseGridTopology. More...

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

Detailed Description

template<class In, class Out>
class sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out >

Class allowing barycentric mapping computation on a SparseGridTopology.

Protected Attributes

sofa::helper::vector< CubeDatam_map
 
topology::SparseGridTopologym_fromTopology {nullptr}
 
MatrixTypem_matrixJ {nullptr}
 
bool m_updateJ {false}
 

Public Member Functions

 SOFA_CLASS (SOFA_TEMPLATE2(BarycentricMapperSparseGridTopology, In, Out), SOFA_TEMPLATE2(TopologyBarycentricMapper, In, Out))
 
 ~BarycentricMapperSparseGridTopology () override
 
void init (const typename Out::VecCoord &out, const typename In::VecCoord &in) override
 
void clear (std::size_t reserve=0) override
 
index_type addPointInCube (const index_type cubeIndex, const SReal *baryCoords) 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 BaseMatrixgetJ (int outSize, int inSize) override
 
void draw (const VisualParams *, const typename Out::VecCoord &out, const typename In::VecCoord &in) override
 
void resize (core::State< Out > *toModel) override
 

Protected Member Functions

 BarycentricMapperSparseGridTopology (topology::SparseGridTopology *fromTopology, topology::PointSetTopologyContainer *_toTopology)
 
void addMatrixContrib (MatrixType *m, int row, int col, Real value)
 

Friends

template<class I , class O >
std::istream & operator>> (std::istream &in, BarycentricMapperSparseGridTopology< I, O > &b)
 
template<class I , class O >
std::ostream & operator<< (std::ostream &out, const BarycentricMapperSparseGridTopology< I, O > &b)
 

Attribute details

template<class In, class Out>
topology::SparseGridTopology* sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out >::m_fromTopology {nullptr}
protected
template<class In, class Out>
MatrixType* sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out >::m_matrixJ {nullptr}
protected
template<class In, class Out>
bool sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out >::m_updateJ {false}
protected

Constructor details

Function details

template<class In , class Out >
void sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out >::addMatrixContrib ( MatrixType m,
int  row,
int  col,
Real  value 
)
protected
template<class In , class Out >
BarycentricMapperSparseGridTopology< In, Out >::index_type sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out >::addPointInCube ( const index_type  cubeIndex,
const SReal *  baryCoords 
)
override
template<class In, class Out>
void sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out >::apply ( typename Out::VecCoord &  out,
const typename In::VecCoord &  in 
)
override
template<class In, class Out>
void sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out >::applyJ ( typename Out::VecDeriv &  out,
const typename In::VecDeriv &  in 
)
override
template<class In, class Out>
void sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out >::applyJT ( typename In::VecDeriv &  out,
const typename Out::VecDeriv &  in 
)
override
template<class In, class Out>
void sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out >::applyJT ( typename In::MatrixDeriv &  out,
const typename Out::MatrixDeriv &  in 
)
override
template<class In , class Out >
void sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out >::clear ( std::size_t  reserve = 0)
override
template<class In, class Out>
void sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out >::draw ( const VisualParams vparams,
const typename Out::VecCoord &  out,
const typename In::VecCoord &  in 
)
override
template<class In , class Out >
const sofa::defaulttype::BaseMatrix * sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out >::getJ ( int  outSize,
int  inSize 
)
override
template<class In, class Out>
void sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out >::init ( const typename Out::VecCoord &  out,
const typename In::VecCoord &  in 
)
override
template<class In , class Out>
void sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out >::resize ( core::State< Out > *  toModel)
override
template<class In, class Out>
sofa::component::mapping::BarycentricMapperSparseGridTopology< In, Out >::SOFA_CLASS ( SOFA_TEMPLATE2(BarycentricMapperSparseGridTopology< In, Out >, In, Out ,
SOFA_TEMPLATE2(TopologyBarycentricMapper, In, Out  
)

Enum details

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

Related details

template<class In, class Out>
template<class I , class O >
std::ostream& operator<< ( std::ostream &  out,
const BarycentricMapperSparseGridTopology< I, O > &  b 
)
friend
template<class In, class Out>
template<class I , class O >
std::istream& operator>> ( std::istream &  in,
BarycentricMapperSparseGridTopology< I, O > &  b 
)
friend