sofa::component::forcefield::QuadBendingSprings< DataTypes > Class Template Reference

Bending springs added between vertices of quads sharing a common edge. More...

#include <QuadBendingSprings.h>

Inheritance diagram for sofa::component::forcefield::QuadBendingSprings< DataTypes >:

Inheritance graph
[legend]
Collaboration diagram for sofa::component::forcefield::QuadBendingSprings< DataTypes >:

Collaboration graph
[legend]

Public Types

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

Public Member Functions

 QuadBendingSprings ()
 ~QuadBendingSprings ()
virtual void init ()
 Searches triangle topology and creates the bending springs.
virtual void draw ()
 Render internal data of this object, for debugging purposes.

Protected Types

typedef std::pair< unsigned,
unsigned > 
IndexPair

Protected Member Functions

void addSpring (unsigned, unsigned, std::set< IndexPair > &)
void registerEdge (IndexPair, IndexPair, std::map< IndexPair, IndexPair > &, std::set< IndexPair > &)

Protected Attributes

component::MechanicalObject
< DataTypes > * 
dof

Detailed Description

template<class DataTypes>
class sofa::component::forcefield::QuadBendingSprings< DataTypes >

Bending springs added between vertices of quads sharing a common edge.

The springs connect the vertices not belonging to the common edge. It compresses when the surface bends along the common edge.

Definition at line 47 of file QuadBendingSprings.h.


Member Typedef Documentation

template<class DataTypes >
typedef std::pair<unsigned,unsigned> sofa::component::forcefield::QuadBendingSprings< DataTypes >::IndexPair [protected]

Definition at line 65 of file QuadBendingSprings.h.

template<class DataTypes >
typedef DataTypes::Real sofa::component::forcefield::QuadBendingSprings< DataTypes >::Real

template<class DataTypes >
typedef DataTypes::VecCoord sofa::component::forcefield::QuadBendingSprings< DataTypes >::VecCoord


Constructor & Destructor Documentation

template<class DataTypes >
sofa::component::forcefield::QuadBendingSprings< DataTypes >::QuadBendingSprings (  )  [inline]

Definition at line 44 of file QuadBendingSprings.inl.

template<class DataTypes >
sofa::component::forcefield::QuadBendingSprings< DataTypes >::~QuadBendingSprings (  )  [inline]

Definition at line 51 of file QuadBendingSprings.inl.


Member Function Documentation

template<class DataTypes >
void sofa::component::forcefield::QuadBendingSprings< DataTypes >::addSpring ( unsigned  a,
unsigned  b,
std::set< IndexPair > &  springSet 
) [inline, protected]

template<class DataTypes >
virtual void sofa::component::forcefield::QuadBendingSprings< DataTypes >::draw (  )  [inline, virtual]

Render internal data of this object, for debugging purposes.

Reimplemented from sofa::component::forcefield::SpringForceField< DataTypes >.

Definition at line 60 of file QuadBendingSprings.h.

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

template<class DataTypes >
void sofa::component::forcefield::QuadBendingSprings< DataTypes >::registerEdge ( IndexPair  ab,
IndexPair  cd,
std::map< IndexPair, IndexPair > &  edgeMap,
std::set< IndexPair > &  springSet 
) [inline, protected]


Field Documentation


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

Generated on Sun Nov 23 04:19:35 2008 for Sofa by  doxygen 1.5.7.1