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

#include <BarycentricMapperQuadSetTopology.h>

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

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

Detailed Description

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

Class allowing barycentric mapping computation on a QuadSetTopology.

Protected Attributes

topology::QuadSetTopologyContainerm_fromContainer
 
topology::QuadSetGeometryAlgorithms< In > * m_fromGeomAlgo
 

Public Member Functions

 SOFA_CLASS (SOFA_TEMPLATE2(BarycentricMapperQuadSetTopology, In, Out), SOFA_TEMPLATE4(BarycentricMapperTopologyContainer, In, Out, MappingData, Quad))
 
index_type addPointInQuad (const index_type index, const SReal *baryCoords) override
 
index_type createPointInQuad (const typename Out::Coord &p, index_type index, const typename In::VecCoord *points) override
 
virtual ~BarycentricMapperQuadSetTopology ()
 

Protected Member Functions

 BarycentricMapperQuadSetTopology (topology::QuadSetTopologyContainer *fromTopology, topology::PointSetTopologyContainer *toTopology)
 
virtual helper::vector< QuadgetElements () override
 
virtual helper::vector< SReal > getBaryCoef (const Real *f) override
 
helper::vector< SReal > getBaryCoef (const Real fx, const Real fy)
 
void computeBase (Mat3x3d &base, const typename In::VecCoord &in, const Quad &element) override
 
void computeCenter (Vector3 &center, const typename In::VecCoord &in, const Quad &element) override
 
void computeDistance (double &d, const Vector3 &v) override
 
void addPointInElement (const index_type elementIndex, const SReal *baryCoords) override
 

Attribute details

template<class In, class Out>
topology::QuadSetTopologyContainer* sofa::component::mapping::BarycentricMapperQuadSetTopology< In, Out >::m_fromContainer
protected
template<class In, class Out>
topology::QuadSetGeometryAlgorithms<In>* sofa::component::mapping::BarycentricMapperQuadSetTopology< In, Out >::m_fromGeomAlgo
protected

Constructor details

Function details

template<class In , class Out >
void sofa::component::mapping::BarycentricMapperQuadSetTopology< In, Out >::addPointInElement ( const index_type  elementIndex,
const SReal *  baryCoords 
)
overrideprotected
template<class In , class Out >
BarycentricMapperQuadSetTopology< In, Out >::index_type sofa::component::mapping::BarycentricMapperQuadSetTopology< In, Out >::addPointInQuad ( const index_type  index,
const SReal *  baryCoords 
)
override
template<class In, class Out >
void sofa::component::mapping::BarycentricMapperQuadSetTopology< In, Out >::computeBase ( Mat3x3d base,
const typename In::VecCoord &  in,
const Quad element 
)
overrideprotected
template<class In, class Out >
void sofa::component::mapping::BarycentricMapperQuadSetTopology< In, Out >::computeCenter ( Vector3 &  center,
const typename In::VecCoord &  in,
const Quad element 
)
overrideprotected
template<class In , class Out >
void sofa::component::mapping::BarycentricMapperQuadSetTopology< In, Out >::computeDistance ( double d,
const Vector3 &  v 
)
overrideprotected
template<class In, class Out>
BarycentricMapperQuadSetTopology< In, Out >::index_type sofa::component::mapping::BarycentricMapperQuadSetTopology< In, Out >::createPointInQuad ( const typename Out::Coord &  p,
index_type  index,
const typename In::VecCoord *  points 
)
override
template<class In , class Out >
helper::vector< SReal > sofa::component::mapping::BarycentricMapperQuadSetTopology< In, Out >::getBaryCoef ( const Real f)
overrideprotectedvirtual
template<class In , class Out >
helper::vector< SReal > sofa::component::mapping::BarycentricMapperQuadSetTopology< In, Out >::getBaryCoef ( const Real  fx,
const Real  fy 
)
protected
template<class In , class Out >
helper::vector< Quad > sofa::component::mapping::BarycentricMapperQuadSetTopology< In, Out >::getElements ( )
overrideprotectedvirtual
template<class In, class Out>
sofa::component::mapping::BarycentricMapperQuadSetTopology< In, Out >::SOFA_CLASS ( SOFA_TEMPLATE2(BarycentricMapperQuadSetTopology< In, Out >, In, Out ,
SOFA_TEMPLATE4(BarycentricMapperTopologyContainer, In, Out, MappingData, Quad  
)