sofa::component::ParticleSink< TDataTypes > Class Template Reference

#include <ParticleSink.h>

Inheritance diagram for sofa::component::ParticleSink< TDataTypes >:

Inheritance graph
[legend]
Collaboration diagram for sofa::component::ParticleSink< TDataTypes >:

Collaboration graph
[legend]

Public Types

typedef TDataTypes DataTypes
typedef DataTypes::Real Real
typedef DataTypes::Coord Coord
typedef DataTypes::VecCoord VecCoord
typedef DataTypes::Deriv Deriv
typedef DataTypes::VecDeriv VecDeriv
typedef helper::vector< Real > VecDensity
typedef
core::componentmodel::behavior::MechanicalState
< DataTypes > 
MechanicalModel

Public Member Functions

 ParticleSink ()
virtual ~ParticleSink ()
virtual void init ()
 Initialization method called at graph modification, during bottom-up traversal.
virtual void animateBegin (double, double time)
void handleTopologyChange ()
 Handle topological changes.
virtual void projectResponse (VecDeriv &res)
 Project dx to constrained space (dx models an acceleration).
virtual void projectVelocity (VecDeriv &)
 Project v to constrained space (v models a velocity).
virtual void projectPosition (VecCoord &x)
 Project x to constrained space (x models a position).
virtual void animateEnd (double, double)
virtual void handleEvent (sofa::core::objectmodel::Event *event)
 Handle an event.
virtual void draw ()
 Render internal data of this object, for debugging purposes.

Data Fields

Data< Deriv > planeNormal
Data< Real > planeD0
Data< Real > planeD1
Data< defaulttype::Vec3f > color
Data< bool > showPlane
topology::PointSubset fixed

Detailed Description

template<class TDataTypes>
class sofa::component::ParticleSink< TDataTypes >

Definition at line 63 of file ParticleSink.h.


Member Typedef Documentation

template<class TDataTypes >
typedef DataTypes::Coord sofa::component::ParticleSink< TDataTypes >::Coord

Reimplemented from sofa::core::componentmodel::behavior::Constraint< TDataTypes >.

Definition at line 68 of file ParticleSink.h.

template<class TDataTypes >
typedef TDataTypes sofa::component::ParticleSink< TDataTypes >::DataTypes

Definition at line 66 of file ParticleSink.h.

template<class TDataTypes >
typedef DataTypes::Deriv sofa::component::ParticleSink< TDataTypes >::Deriv

Reimplemented from sofa::core::componentmodel::behavior::Constraint< TDataTypes >.

Definition at line 70 of file ParticleSink.h.

Definition at line 74 of file ParticleSink.h.

template<class TDataTypes >
typedef DataTypes::Real sofa::component::ParticleSink< TDataTypes >::Real

Reimplemented from sofa::core::componentmodel::behavior::Constraint< TDataTypes >.

Definition at line 67 of file ParticleSink.h.

template<class TDataTypes >
typedef DataTypes::VecCoord sofa::component::ParticleSink< TDataTypes >::VecCoord

Reimplemented from sofa::core::componentmodel::behavior::Constraint< TDataTypes >.

Definition at line 69 of file ParticleSink.h.

template<class TDataTypes >
typedef helper::vector<Real> sofa::component::ParticleSink< TDataTypes >::VecDensity

Definition at line 72 of file ParticleSink.h.

template<class TDataTypes >
typedef DataTypes::VecDeriv sofa::component::ParticleSink< TDataTypes >::VecDeriv

Reimplemented from sofa::core::componentmodel::behavior::Constraint< TDataTypes >.

Definition at line 71 of file ParticleSink.h.


Constructor & Destructor Documentation

template<class TDataTypes >
sofa::component::ParticleSink< TDataTypes >::ParticleSink (  )  [inline]

template<class TDataTypes >
virtual sofa::component::ParticleSink< TDataTypes >::~ParticleSink (  )  [inline, virtual]

Definition at line 97 of file ParticleSink.h.


Member Function Documentation

template<class TDataTypes >
virtual void sofa::component::ParticleSink< TDataTypes >::animateBegin ( double  ,
double  time 
) [inline, virtual]

template<class TDataTypes >
virtual void sofa::component::ParticleSink< TDataTypes >::animateEnd ( double  ,
double   
) [inline, virtual]

template<class TDataTypes >
virtual void sofa::component::ParticleSink< TDataTypes >::draw (  )  [inline, virtual]

template<class TDataTypes >
virtual void sofa::component::ParticleSink< TDataTypes >::handleEvent ( sofa::core::objectmodel::Event *  e  )  [inline, virtual]

template<class TDataTypes >
void sofa::component::ParticleSink< TDataTypes >::handleTopologyChange (  )  [inline, virtual]

template<class TDataTypes >
virtual void sofa::component::ParticleSink< TDataTypes >::init ( void   )  [inline, virtual]

template<class TDataTypes >
virtual void sofa::component::ParticleSink< TDataTypes >::projectPosition ( VecCoord &  x  )  [inline, virtual]

template<class TDataTypes >
virtual void sofa::component::ParticleSink< TDataTypes >::projectResponse ( VecDeriv &  dx  )  [inline, virtual]

Project dx to constrained space (dx models an acceleration).

This method must be implemented by the component, and is usually called by the generic Constraint::projectResponse() method.

Parameters:
dx  project dx to constrained space

Implements sofa::core::componentmodel::behavior::Constraint< TDataTypes >.

Definition at line 174 of file ParticleSink.h.

References sofa::component::topology::PointSubset::empty(), sofa::component::ParticleSink< TDataTypes >::fixed, sofa::core::componentmodel::behavior::Constraint< TDataTypes >::mstate, and sofa::component::topology::PointSubset::size().

template<class TDataTypes >
virtual void sofa::component::ParticleSink< TDataTypes >::projectVelocity ( VecDeriv &  v  )  [inline, virtual]

Project v to constrained space (v models a velocity).

This method must be implemented by the component, and is usually called by the generic Constraint::projectVelocity() method.

Parameters:
v  project dx to constrained space (dx models a velocity)

Implements sofa::core::componentmodel::behavior::Constraint< TDataTypes >.

Definition at line 183 of file ParticleSink.h.


Field Documentation

template<class TDataTypes >
Data<defaulttype::Vec3f> sofa::component::ParticleSink< TDataTypes >::color

Definition at line 79 of file ParticleSink.h.

Referenced by sofa::component::ParticleSink< TDataTypes >::draw().

template<class TDataTypes >
topology::PointSubset sofa::component::ParticleSink< TDataTypes >::fixed

template<class TDataTypes >
Data<Real> sofa::component::ParticleSink< TDataTypes >::planeD0

template<class TDataTypes >
Data<Real> sofa::component::ParticleSink< TDataTypes >::planeD1

template<class TDataTypes >
Data<Deriv> sofa::component::ParticleSink< TDataTypes >::planeNormal

template<class TDataTypes >
Data<bool> sofa::component::ParticleSink< TDataTypes >::showPlane

Definition at line 80 of file ParticleSink.h.

Referenced by sofa::component::ParticleSink< TDataTypes >::draw().


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

Generated on Sun Nov 23 04:13:32 2008 for Sofa by  doxygen 1.5.7.1