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

Set springs between the particles located inside a given box. More...

#include <BoxStiffSpringForceField.h>

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

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

Collaboration graph
[legend]

Public Types

enum  { N = Coord::static_size }
typedef StiffSpringForceField
< DataTypes > 
Inherit
typedef DataTypes::VecCoord VecCoord
typedef DataTypes::VecDeriv VecDeriv
typedef DataTypes::Coord Coord
typedef DataTypes::Deriv Deriv
typedef Coord::value_type Real
typedef Inherit::Spring Spring
typedef
core::componentmodel::behavior::MechanicalState
< DataTypes > 
MechanicalState
typedef defaulttype::Vec< 6, Real > Vec6

Public Member Functions

 BoxStiffSpringForceField (MechanicalState *object1, MechanicalState *object2, double ks=100.0, double kd=5.0)
 BoxStiffSpringForceField (double ks=100.0, double kd=5.0)
void bwdInit ()
 Initialization method called at graph modification, during top-down traversal.
void draw ()
 Render internal data of this object, for debugging purposes.

Data Fields

Data< Vec6 > box_object1
Data< Vec6 > box_object2

Detailed Description

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

Set springs between the particles located inside a given box.

Definition at line 47 of file BoxStiffSpringForceField.h.


Member Typedef Documentation

template<class DataTypes >
typedef DataTypes::Coord sofa::component::forcefield::BoxStiffSpringForceField< DataTypes >::Coord

template<class DataTypes >
typedef DataTypes::Deriv sofa::component::forcefield::BoxStiffSpringForceField< DataTypes >::Deriv

template<class DataTypes >
typedef Coord::value_type sofa::component::forcefield::BoxStiffSpringForceField< DataTypes >::Real

Definition at line 60 of file BoxStiffSpringForceField.h.

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

template<class DataTypes >
typedef DataTypes::VecDeriv sofa::component::forcefield::BoxStiffSpringForceField< DataTypes >::VecDeriv


Member Enumeration Documentation

template<class DataTypes >
anonymous enum

Enumerator:
N 

Definition at line 58 of file BoxStiffSpringForceField.h.


Constructor & Destructor Documentation

template<class DataTypes >
sofa::component::forcefield::BoxStiffSpringForceField< DataTypes >::BoxStiffSpringForceField ( MechanicalState *  object1,
MechanicalState *  object2,
double  ks = 100.0,
double  kd = 5.0 
) [inline]

Definition at line 49 of file BoxStiffSpringForceField.inl.

template<class DataTypes >
sofa::component::forcefield::BoxStiffSpringForceField< DataTypes >::BoxStiffSpringForceField ( double  ks = 100.0,
double  kd = 5.0 
) [inline]

Definition at line 58 of file BoxStiffSpringForceField.inl.


Member Function Documentation

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

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


Field Documentation


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

Generated on Sun Nov 23 04:18:40 2008 for Sofa by  doxygen 1.5.7.1