sofa::component::topology::PointSetGeometryAlgorithms< DataTypes > Class Template Reference

A class that can perform some geometric computation on a set of points. More...

#include <PointSetGeometryAlgorithms.h>

Inheritance diagram for sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >:

Inheritance graph
[legend]
Collaboration diagram for sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >:

Collaboration graph
[legend]

Public Types

typedef DataTypes::Real Real
typedef DataTypes::Coord Coord
typedef DataTypes::VecCoord VecCoord

Public Member Functions

 PointSetGeometryAlgorithms ()
virtual ~PointSetGeometryAlgorithms ()
virtual void init ()
 Initialization method called at graph modification, during bottom-up traversal.
Coord getPointSetCenter () const
 return the centroid of the set of points
void getEnclosingSphere (Coord &center, Real &radius) const
 return the centre and a radius of a sphere enclosing the set of points (may not be the smalled one)
void getAABB (Real bb[6]) const
 return the axis aligned bounding box : index 0 = xmin, index 1=ymin, index 2 = zmin, index 3 = xmax, index 4 = ymax, index 5=zmax
sofa::core::componentmodel::behavior::MechanicalState
< DataTypes > * 
getDOF () const
 Returns the object where the mechanical DOFs are stored.
virtual std::string getTemplateName () const
 Get the template type names (if any) used to instantiate this object.

Static Public Member Functions

static std::string templateName (const PointSetGeometryAlgorithms< DataTypes > *=NULL)

Protected Attributes

sofa::core::componentmodel::behavior::MechanicalState
< DataTypes > * 
object
 the object where the mechanical DOFs are stored
sofa::core::componentmodel::topology::BaseMeshTopology * m_topology

Detailed Description

template<class DataTypes>
class sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >

A class that can perform some geometric computation on a set of points.

Definition at line 51 of file PointSetGeometryAlgorithms.h.


Member Typedef Documentation

template<class DataTypes >
typedef DataTypes::Coord sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::Coord

template<class DataTypes >
typedef DataTypes::Real sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::Real

template<class DataTypes >
typedef DataTypes::VecCoord sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::VecCoord


Constructor & Destructor Documentation

template<class DataTypes >
sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::PointSetGeometryAlgorithms (  )  [inline]

Definition at line 58 of file PointSetGeometryAlgorithms.h.

template<class DataTypes >
virtual sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::~PointSetGeometryAlgorithms (  )  [inline, virtual]

Definition at line 62 of file PointSetGeometryAlgorithms.h.


Member Function Documentation

template<class DataTypes >
void sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::getAABB ( typename DataTypes::Real  bb[6]  )  const [inline]

return the axis aligned bounding box : index 0 = xmin, index 1=ymin, index 2 = zmin, index 3 = xmax, index 4 = ymax, index 5=zmax

Definition at line 94 of file PointSetGeometryAlgorithms.inl.

template<class DataTypes >
sofa::core::componentmodel::behavior::MechanicalState<DataTypes>* sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::getDOF (  )  const [inline]

Returns the object where the mechanical DOFs are stored.

Definition at line 77 of file PointSetGeometryAlgorithms.h.

References sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::object.

template<class DataTypes >
void sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::getEnclosingSphere ( typename DataTypes::Coord &  center,
typename DataTypes::Real &  radius 
) const [inline]

return the centre and a radius of a sphere enclosing the set of points (may not be the smalled one)

Definition at line 69 of file PointSetGeometryAlgorithms.inl.

References dot(), sofa::core::componentmodel::topology::Topology::getNbPoints(), and sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::m_topology.

template<class DataTypes >
DataTypes::Coord sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::getPointSetCenter (  )  const [inline]

template<class DataTypes >
virtual std::string sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::getTemplateName (  )  const [inline, virtual]

Get the template type names (if any) used to instantiate this object.

Reimplemented from sofa::core::objectmodel::Base.

Definition at line 79 of file PointSetGeometryAlgorithms.h.

References sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::templateName().

template<class DataTypes >
void sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::init ( void   )  [inline, virtual]

template<class DataTypes >
static std::string sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::templateName ( const PointSetGeometryAlgorithms< DataTypes > *  = NULL  )  [inline, static]


Field Documentation

Definition at line 91 of file PointSetGeometryAlgorithms.h.

Referenced by sofa::component::topology::TriangleSetGeometryAlgorithms< DataTypes >::closestIndexPair(), sofa::component::topology::EdgeSetGeometryAlgorithms< DataTypes >::computeEdgeLength(), sofa::component::topology::HexahedronSetGeometryAlgorithms< DataTypes >::computeHexahedronVolume(), sofa::component::topology::TriangleSetGeometryAlgorithms< DataTypes >::computeIntersectedPointsList(), sofa::component::topology::QuadSetGeometryAlgorithms< DataTypes >::computeQuadArea(), sofa::component::topology::QuadSetGeometryAlgorithms< DataTypes >::computeQuadNormal(), sofa::component::topology::EdgeSetGeometryAlgorithms< DataTypes >::computeRestEdgeLength(), sofa::component::topology::QuadSetGeometryAlgorithms< DataTypes >::computeRestQuadArea(), sofa::component::topology::EdgeSetGeometryAlgorithms< DataTypes >::computeRestSquareEdgeLength(), sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >::computeRestTetrahedronVolume(), sofa::component::topology::TriangleSetGeometryAlgorithms< DataTypes >::computeRestTriangleArea(), sofa::component::topology::TriangleSetGeometryAlgorithms< DataTypes >::computeSegmentTriangleIntersection(), sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >::computeTetrahedronVolume(), sofa::component::topology::TriangleSetGeometryAlgorithms< DataTypes >::computeTriangleArea(), sofa::component::topology::TriangleSetGeometryAlgorithms< DataTypes >::computeTriangleBarycoefs(), sofa::component::topology::TriangleSetGeometryAlgorithms< DataTypes >::computeTriangleNormal(), sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::getEnclosingSphere(), sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::getPointSetCenter(), sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >::getTetraInBall(), sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::init(), sofa::component::topology::TriangleSetGeometryAlgorithms< DataTypes >::is_PointinTriangle(), sofa::component::topology::QuadSetGeometryAlgorithms< DataTypes >::is_quad_in_plane(), sofa::component::topology::TriangleSetGeometryAlgorithms< DataTypes >::is_triangle_in_plane(), sofa::component::topology::TriangleSetGeometryAlgorithms< DataTypes >::Prepare_VertexDuplication(), sofa::component::topology::TriangleSetGeometryAlgorithms< DataTypes >::writeMSHfile(), sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >::writeMSHfile(), sofa::component::topology::QuadSetGeometryAlgorithms< DataTypes >::writeMSHfile(), sofa::component::topology::HexahedronSetGeometryAlgorithms< DataTypes >::writeMSHfile(), and sofa::component::topology::EdgeSetGeometryAlgorithms< DataTypes >::writeMSHfile().

the object where the mechanical DOFs are stored

Definition at line 90 of file PointSetGeometryAlgorithms.h.

Referenced by sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::getDOF().


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

Generated on Sun Nov 23 04:21:31 2008 for Sofa by  doxygen 1.5.7.1