Documentation


animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real > Class Template Reference

#include <massSpringEngine.h>

Inheritance diagram for animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >:

animal::Engine animal::MassSpringSolver< Points, Velocities, Inv_Masses, SpringStiffness, IndexedSprings > animal::OdeImplicitSolver< t_Positions, t_Vector, t_Real > animal::PhysicalSolver< t_Positions, t_Vector, t_InvMasses, t_Real > animal::OdeSolver< t_Positions, t_Vector, t_Real > X3DTK::X3D::AnimalEngineNode< AMassSpringEngine > X3DTK::X3D::MassSpringNode List of all members.

Detailed Description

template<typename Inv_Masses, typename Velocities, typename SpringStiffness, typename IndexedSprings, typename Points, typename Real = float>
class animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >

This class implements a physical engine which animates particules (defined with Inv_Masses, Velocities and Points) linked with springs (defined with SpringStiffness and IndexedSprings).

It derives both form Engine and from MassSpringSolver.

Definition at line 22 of file massSpringEngine.h.

Virtual methods

virtual void reset ()
 Initialize the engine.

virtual void move (double dt)
 Move the engine.

void draw ()
 draw stuff

virtual void getBoundingBox (float &minX, float &minY, float &minZ, float &maxX, float &maxY, float &maxZ)
 bounding box of the particles

void mousePressEvent (MouseEvent *)
 React to mouse press event.

bool get_compressed_ok ()
 Get the value of the compressed_ok boolean.

void set_compressed_ok (bool ok)
 set the value of the compressed_ok boolean

bool get_elongated_ok ()
 Get the value of the elongated_ok boolean.

void set_elongated_ok (bool ok)
 set the value of the elongated_ok boolean

bool get_displayMassSpring ()
 Get the value of the displayMassSpring boolean.

void set_displayMassSpring (bool display)
 set the value of the displayMassSpring boolean

void set_pointSize (int)
 set the value of the particle screen size

int get_pointSize () const
 Get the value of the particle screen size.

void set_lineWidth (int)
 set the value of the spring screen width

int get_lineWidth () const
 Get the value of the spring screen width.

virtual ConstrainedItempickPoint (float origin[3], float direction[3], float threshold)
 Pick along a line.

class ConstrainedPoint

Public Types

typedef MassSpringSolver<
Points, Velocities, Inv_Masses,
SpringStiffness, IndexedSprings > 
_MassSpringSolver
 Mass-spring solver, one of the parent types.

typedef _MassSpringSolver::Index Index

Public Member Functions

 MassSpringEngine ()
 Constructor.

virtual ~MassSpringEngine ()
 Destructor.


Public Attributes

Velocities * _velocities
Points * _points
Points _initialPoints
 store the initial coordinates for init()

Points _initialVelocities
 store the initial velocities for init()

int _pointSize
 particle size on screen

int _lineWidth
 spring width on screen

vector< float > elongation
 elongation[i] contains the elongation value of the spring i

vector< rgbcolours
 colours[i] contains the colour of the spring i in the "rgb" mode

bool compressed_ok
 true if the user wants to see the compressed springs

bool elongated_ok
 true if the user wants to see the elongated springs

bool displayMassSpring
 true if the user wants to see the mass-springs


Member Typedef Documentation

template<typename Inv_Masses, typename Velocities, typename SpringStiffness, typename IndexedSprings, typename Points, typename Real = float>
typedef MassSpringSolver<Points,Velocities,Inv_Masses,SpringStiffness,IndexedSprings> animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_MassSpringSolver
 

Mass-spring solver, one of the parent types.

Definition at line 120 of file massSpringEngine.h.

template<typename Inv_Masses, typename Velocities, typename SpringStiffness, typename IndexedSprings, typename Points, typename Real = float>
typedef _MassSpringSolver::Index animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::Index
 

Reimplemented from animal::MassSpringSolver< Points, Velocities, Inv_Masses, SpringStiffness, IndexedSprings >.

Definition at line 121 of file massSpringEngine.h.


Constructor & Destructor Documentation

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::MassSpringEngine  ) 
 

Constructor.

Definition at line 27 of file massSpringEngine.inl.

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::~MassSpringEngine  )  [virtual]
 

Destructor.

Definition at line 46 of file massSpringEngine.inl.


Member Function Documentation

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
void animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::draw  )  [virtual]
 

draw stuff

Reimplemented from animal::Engine.

Reimplemented in X3DTK::X3D::AnimalEngineNode< AMassSpringEngine >.

Definition at line 87 of file massSpringEngine.inl.

References animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_lineWidth, animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_points, animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_pointSize, animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::colours, animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::compressed_ok, animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::elongated_ok, animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::elongation, animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_displayMassSpring(), animal::MassSpringSolver< Points, Velocities, Inv_Masses, SpringStiffness, IndexedSprings >::get_rest_lengths(), animal::size(), and animal::v_norm().

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
bool animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_compressed_ok  ) 
 

Get the value of the compressed_ok boolean.

Definition at line 370 of file massSpringEngine.inl.

References animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::compressed_ok.

Referenced by X3DTK::Qt::MassSpringEngineQt::MassSpringEngineQt().

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
bool animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_displayMassSpring  ) 
 

Get the value of the displayMassSpring boolean.

Definition at line 422 of file massSpringEngine.inl.

References animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::displayMassSpring.

Referenced by animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::draw(), X3DTK::Qt::MassSpringEngineQt::MassSpringEngineQt(), and animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::move().

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
bool animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_elongated_ok  ) 
 

Get the value of the elongated_ok boolean.

Definition at line 396 of file massSpringEngine.inl.

References animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::elongated_ok.

Referenced by X3DTK::Qt::MassSpringEngineQt::MassSpringEngineQt().

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
int animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_lineWidth  )  const
 

Get the value of the spring screen width.

Definition at line 475 of file massSpringEngine.inl.

References animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_lineWidth.

Referenced by X3DTK::Qt::MassSpringEngineQt::MassSpringEngineQt().

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
int animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_pointSize  )  const
 

Get the value of the particle screen size.

Definition at line 449 of file massSpringEngine.inl.

References animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_pointSize.

Referenced by X3DTK::Qt::MassSpringEngineQt::MassSpringEngineQt().

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
void animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::getBoundingBox float &  minX,
float &  minY,
float &  minZ,
float &  maxX,
float &  maxY,
float &  maxZ
[virtual]
 

bounding box of the particles

Reimplemented from animal::Engine.

Definition at line 194 of file massSpringEngine.inl.

References animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_points.

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
void animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::mousePressEvent MouseEvent  )  [virtual]
 

React to mouse press event.

Reimplemented from animal::Engine.

Reimplemented in X3DTK::X3D::AnimalEngineNode< AMassSpringEngine >.

Definition at line 230 of file massSpringEngine.inl.

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
void animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::move double  dt  )  [virtual]
 

Move the engine.

Reimplemented from animal::Engine.

Definition at line 172 of file massSpringEngine.inl.

References animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_points, animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_velocities, animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_displayMassSpring(), animal::resize(), and animal::size().

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
ConstrainedItem * animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::pickPoint float  origin[3],
float  direction[3],
float  threshold
[virtual]
 

Pick along a line.

If an element is picked, it is returned as a new Item*. Else the pointer is null. It is the programmer's responsibility to delete the Item after use.

Definition at line 346 of file massSpringEngine.inl.

References animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_points, animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::ConstrainedPoint, and animal::findClosestPointToLine().

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
void animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::reset  )  [virtual]
 

Initialize the engine.

Reimplemented from animal::Engine.

Reimplemented in X3DTK::X3D::AnimalEngineNode< AMassSpringEngine >.

Definition at line 61 of file massSpringEngine.inl.

References animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_initialPoints, animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_initialVelocities, animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_points, animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_velocities, animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::colours, animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::elongation, animal::MassSpringSolver< Points, Velocities, Inv_Masses, SpringStiffness, IndexedSprings >::get_rest_lengths(), animal::resize(), animal::size(), animal::v_eq(), and animal::v_norm().

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
void animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::set_compressed_ok bool  ok  ) 
 

set the value of the compressed_ok boolean

Definition at line 383 of file massSpringEngine.inl.

References animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::compressed_ok.

Referenced by X3DTK::Qt::MassSpringEngineQt::setCompressed_ok().

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
void animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::set_displayMassSpring bool  display  ) 
 

set the value of the displayMassSpring boolean

Definition at line 435 of file massSpringEngine.inl.

References animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::displayMassSpring.

Referenced by X3DTK::Qt::MassSpringEngineQt::setDisplayMassSpring().

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
void animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::set_elongated_ok bool  ok  ) 
 

set the value of the elongated_ok boolean

Definition at line 409 of file massSpringEngine.inl.

References animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::elongated_ok.

Referenced by X3DTK::Qt::MassSpringEngineQt::setElongated_ok().

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
void animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::set_lineWidth int   ) 
 

set the value of the spring screen width

Definition at line 488 of file massSpringEngine.inl.

References animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_lineWidth.

Referenced by X3DTK::Qt::MassSpringEngineQt::setLineWidth().

template<class Inv_Masses, class Velocities, class SpringStiffness, class IndexedSprings, class Points, class Real>
void animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::set_pointSize int   ) 
 

set the value of the particle screen size

Definition at line 462 of file massSpringEngine.inl.

References animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_pointSize.

Referenced by X3DTK::Qt::MassSpringEngineQt::setPointWidth().


Friends And Related Function Documentation

template<typename Inv_Masses, typename Velocities, typename SpringStiffness, typename IndexedSprings, typename Points, typename Real = float>
friend class ConstrainedPoint [friend]
 

Definition at line 109 of file massSpringEngine.h.

Referenced by animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::pickPoint().


Member Data Documentation

template<typename Inv_Masses, typename Velocities, typename SpringStiffness, typename IndexedSprings, typename Points, typename Real = float>
Points animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_initialPoints
 

store the initial coordinates for init()

Definition at line 126 of file massSpringEngine.h.

Referenced by animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::reset().

template<typename Inv_Masses, typename Velocities, typename SpringStiffness, typename IndexedSprings, typename Points, typename Real = float>
Points animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_initialVelocities
 

store the initial velocities for init()

Definition at line 127 of file massSpringEngine.h.

Referenced by animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::reset().

template<typename Inv_Masses, typename Velocities, typename SpringStiffness, typename IndexedSprings, typename Points, typename Real = float>
int animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_lineWidth
 

spring width on screen

Definition at line 129 of file massSpringEngine.h.

Referenced by animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::draw(), animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_lineWidth(), and animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::set_lineWidth().

template<typename Inv_Masses, typename Velocities, typename SpringStiffness, typename IndexedSprings, typename Points, typename Real = float>
Points* animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_points
 

Definition at line 125 of file massSpringEngine.h.

Referenced by animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::draw(), animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::getBoundingBox(), animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::ConstrainedPoint::getPoint(), animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::move(), animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::ConstrainedPoint::moveTo(), animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::pickPoint(), and animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::reset().

template<typename Inv_Masses, typename Velocities, typename SpringStiffness, typename IndexedSprings, typename Points, typename Real = float>
int animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_pointSize
 

particle size on screen

Definition at line 128 of file massSpringEngine.h.

Referenced by animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::draw(), animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_pointSize(), and animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::set_pointSize().

template<typename Inv_Masses, typename Velocities, typename SpringStiffness, typename IndexedSprings, typename Points, typename Real = float>
Velocities* animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::_velocities
 

Definition at line 124 of file massSpringEngine.h.

Referenced by animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::move(), animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::ConstrainedPoint::moveTo(), and animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::reset().

template<typename Inv_Masses, typename Velocities, typename SpringStiffness, typename IndexedSprings, typename Points, typename Real = float>
vector<rgb> animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::colours
 

colours[i] contains the colour of the spring i in the "rgb" mode

Definition at line 139 of file massSpringEngine.h.

Referenced by animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::draw(), and animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::reset().

template<typename Inv_Masses, typename Velocities, typename SpringStiffness, typename IndexedSprings, typename Points, typename Real = float>
bool animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::compressed_ok
 

true if the user wants to see the compressed springs

Definition at line 141 of file massSpringEngine.h.

Referenced by animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::draw(), animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_compressed_ok(), and animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::set_compressed_ok().

template<typename Inv_Masses, typename Velocities, typename SpringStiffness, typename IndexedSprings, typename Points, typename Real = float>
bool animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::displayMassSpring
 

true if the user wants to see the mass-springs

Definition at line 143 of file massSpringEngine.h.

Referenced by animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_displayMassSpring(), and animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::set_displayMassSpring().

template<typename Inv_Masses, typename Velocities, typename SpringStiffness, typename IndexedSprings, typename Points, typename Real = float>
bool animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::elongated_ok
 

true if the user wants to see the elongated springs

Definition at line 142 of file massSpringEngine.h.

Referenced by animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::draw(), animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::get_elongated_ok(), and animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::set_elongated_ok().

template<typename Inv_Masses, typename Velocities, typename SpringStiffness, typename IndexedSprings, typename Points, typename Real = float>
vector<float> animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::elongation
 

elongation[i] contains the elongation value of the spring i

Definition at line 132 of file massSpringEngine.h.

Referenced by animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::draw(), and animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real >::reset().


The documentation for this class was generated from the following files:
Generated on Thu Dec 23 13:52:31 2004 by doxygen 1.3.6