sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out > Class Template Reference

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

#include <BarycentricMapping.h>

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

Inheritance graph
[legend]
Collaboration diagram for sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >:

Collaboration graph
[legend]

Public Types

typedef
TopologyBarycentricMapper< In,
Out > 
Inherit
typedef Inherit::Real Real
typedef Inherit::OutReal OutReal
typedef Inherit::MappingData2D MappingData

Public Member Functions

 BarycentricMapperTriangleSetTopology (BaseMeshTopology *topology)
virtual ~BarycentricMapperTriangleSetTopology ()
void clear (int reserve=0)
int addPointInTriangle (int triangleIndex, const SReal *baryCoords)
int createPointInTriangle (const typename Out::Coord &p, int triangleIndex, const typename In::VecCoord *points)
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)
virtual void handleTopologyChange ()
virtual void handlePointEvents (std::list< const core::componentmodel::topology::TopologyChange * >::const_iterator, std::list< const core::componentmodel::topology::TopologyChange * >::const_iterator)

Protected Attributes

topology::PointData< MappingData > map
BaseMeshTopology * topology

Friends

std::istream & operator>> (std::istream &in, BarycentricMapperTriangleSetTopology< In, Out > &b)
std::ostream & operator<< (std::ostream &out, const BarycentricMapperTriangleSetTopology< In, Out > &b)

Detailed Description

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

Class allowing barycentric mapping computation on a TriangleSetTopology.

Definition at line 435 of file BarycentricMapping.h.


Member Typedef Documentation

Definition at line 441 of file BarycentricMapping.h.

Reimplemented from sofa::component::mapping::BarycentricMapper< In, Out >.

Definition at line 440 of file BarycentricMapping.h.


Constructor & Destructor Documentation

Definition at line 447 of file BarycentricMapping.h.

template<class In , class Out >
virtual sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::~BarycentricMapperTriangleSetTopology (  )  [inline, virtual]

Definition at line 452 of file BarycentricMapping.h.


Member Function Documentation

template<class In , class Out >
int sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::addPointInTriangle ( int  triangleIndex,
const SReal *  baryCoords 
) [inline, virtual]

template<class In , class Out >
void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::apply ( typename Out::VecCoord &  out,
const typename In::VecCoord &  in 
) [inline, virtual]

template<class In , class Out >
void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::applyJ ( typename Out::VecDeriv &  out,
const typename In::VecDeriv &  in 
) [inline, virtual]

template<class In , class Out >
void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::applyJT ( typename In::VecConst &  out,
const typename Out::VecConst &  in 
) [inline, virtual]

template<class In , class Out >
void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::applyJT ( typename In::VecDeriv &  out,
const typename Out::VecDeriv &  in 
) [inline, virtual]

template<class In , class Out >
void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::clear ( int  reserve = 0  )  [inline, virtual]

template<class In , class Out >
int sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::createPointInTriangle ( const typename Out::Coord &  p,
int  triangleIndex,
const typename In::VecCoord *  points 
) [inline, virtual]

template<class In , class Out >
void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::draw ( const typename Out::VecCoord &  out,
const typename In::VecCoord &  in 
) [inline, virtual]

template<class In , class Out >
void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::handlePointEvents ( std::list< const core::componentmodel::topology::TopologyChange * >::const_iterator  itBegin,
std::list< const core::componentmodel::topology::TopologyChange * >::const_iterator  itEnd 
) [inline, virtual]

template<class In , class Out >
void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::handleTopologyChange (  )  [inline, virtual]

template<class In , class Out >
void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::init ( const typename Out::VecCoord &  out,
const typename In::VecCoord &  in 
) [inline, virtual]


Friends And Related Function Documentation

template<class In , class Out >
std::ostream& operator<< ( std::ostream &  out,
const BarycentricMapperTriangleSetTopology< In, Out > &  b 
) [friend]

Definition at line 488 of file BarycentricMapping.h.

template<class In , class Out >
std::istream& operator>> ( std::istream &  in,
BarycentricMapperTriangleSetTopology< In, Out > &  b 
) [friend]

Definition at line 473 of file BarycentricMapping.h.


Field Documentation

Definition at line 443 of file BarycentricMapping.h.


The documentation for this class was generated from the following files:

Generated on Sun Nov 23 04:20:59 2008 for Sofa by  doxygen 1.5.7.1