SOFA API  8225a6f5
Open source framework for multi-physics simuation
sofa::component::mapping::linear::BarycentricMapperEdgeSetTopology< In, Out > Class Template Reference

#include <BarycentricMapperEdgeSetTopology.h>

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

Public Member Functions

 SOFA_CLASS (SOFA_TEMPLATE2(BarycentricMapperEdgeSetTopology, In, Out), SOFA_TEMPLATE4(BarycentricMapperTopologyContainer, In, Out, MappingData, Edge))
 
void init (const typename Out::VecCoord &out, const typename In::VecCoord &in) override
 
Index addPointInLine (const Index edgeIndex, const SReal *baryCoords) override
 
Index createPointInLine (const typename Out::Coord &p, Index edgeIndex, const typename In::VecCoord *points) override
 

Protected Member Functions

 BarycentricMapperEdgeSetTopology (sofa::core::topology::TopologyContainer *fromTopology, sofa::core::topology::BaseMeshTopology *toTopology)
 
 ~BarycentricMapperEdgeSetTopology () override=default
 
virtual type::vector< EdgegetElements () override
 
virtual type::vector< SRealgetBaryCoef (const Real *f) override
 
type::vector< SRealgetBaryCoef (const Real fx)
 
void computeBase (Mat3x3d &base, const typename In::VecCoord &in, const Edge &element) override
 
void computeCenter (Vector3 &center, const typename In::VecCoord &in, const Edge &element) override
 
void computeDistance (SReal &d, const Vector3 &v) override
 
void addPointInElement (const Index elementIndex, const SReal *baryCoords) override
 

Constructor details

◆ BarycentricMapperEdgeSetTopology()

◆ ~BarycentricMapperEdgeSetTopology()

template<class In , class Out >
sofa::component::mapping::linear::BarycentricMapperEdgeSetTopology< In, Out >::~BarycentricMapperEdgeSetTopology ( )
overrideprotecteddefault

Function details

◆ addPointInElement()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperEdgeSetTopology< In, Out >::addPointInElement ( const Index  elementIndex,
const SReal baryCoords 
)
overrideprotected

◆ addPointInLine()

template<class In , class Out >
BarycentricMapperEdgeSetTopology< In, Out >::Index sofa::component::mapping::linear::BarycentricMapperEdgeSetTopology< In, Out >::addPointInLine ( const Index  edgeIndex,
const SReal baryCoords 
)
override

◆ computeBase()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperEdgeSetTopology< In, Out >::computeBase ( Mat3x3d base,
const typename In::VecCoord &  in,
const Edge element 
)
overrideprotected

◆ computeCenter()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperEdgeSetTopology< In, Out >::computeCenter ( Vector3 center,
const typename In::VecCoord &  in,
const Edge element 
)
overrideprotected

◆ computeDistance()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperEdgeSetTopology< In, Out >::computeDistance ( SReal d,
const Vector3 v 
)
overrideprotected

◆ createPointInLine()

template<class In , class Out >
BarycentricMapperEdgeSetTopology< In, Out >::Index sofa::component::mapping::linear::BarycentricMapperEdgeSetTopology< In, Out >::createPointInLine ( const typename Out::Coord &  p,
Index  edgeIndex,
const typename In::VecCoord *  points 
)
override

◆ getBaryCoef() [1/2]

template<class In , class Out >
type::vector< SReal > sofa::component::mapping::linear::BarycentricMapperEdgeSetTopology< In, Out >::getBaryCoef ( const Real f)
overrideprotectedvirtual

◆ getBaryCoef() [2/2]

template<class In , class Out >
type::vector< SReal > sofa::component::mapping::linear::BarycentricMapperEdgeSetTopology< In, Out >::getBaryCoef ( const Real  fx)
protected

◆ getElements()

template<class In , class Out >
type::vector< Edge > sofa::component::mapping::linear::BarycentricMapperEdgeSetTopology< In, Out >::getElements
overrideprotectedvirtual

◆ init()

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

◆ SOFA_CLASS()

template<class In , class Out >
sofa::component::mapping::linear::BarycentricMapperEdgeSetTopology< In, Out >::SOFA_CLASS ( SOFA_TEMPLATE2(BarycentricMapperEdgeSetTopology< In, Out >, In, Out)  ,
SOFA_TEMPLATE4(BarycentricMapperTopologyContainer, In, Out, MappingData, Edge  
)