Documentation


X3DTK::X3D::MassSpringNode Class Reference

#include <massSpringNode.h>

Inheritance diagram for X3DTK::X3D::MassSpringNode:

X3DTK::X3D::AnimalEngineNode< AMassSpringEngine > X3DTK::X3D::EngineNode animal::MassSpringEngine< Inv_Masses, Velocities, SpringStiffness, IndexedSprings, Points, Real > X3DTK::X3D::X4DNode animal::Engine animal::MassSpringSolver< Points, Velocities, Inv_Masses, SpringStiffness, IndexedSprings > X3DGroupingNode X3DBoundedObject 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 > List of all members.

Detailed Description

This class represents the x3d node in the x3d graph for a mass-spring engine.
Examples:

qtapp.cpp.

Definition at line 31 of file massSpringNode.h.

Public Member Functions

 MassSpringNode ()
 Constructor.

 ~MassSpringNode ()
 Destructor.

virtual void init ()
 virtual methods/////// Init the engine inherited by the engine node

virtual void close ()
virtual void updateBoundingBox ()
 does nothing because the children nodes do the job

Coordinate * getCoordinate () const
 getters/////////// gets the coordinate.

void declareOutputs (X3D_X3DNodeList &list)
 nodes modified by the engine

MFVec3fgetCoords ()
MFVec3fgetVelocities ()
MFFloat * getInvMasses ()

Private Attributes

Coordinate * _coordinate
 The coordinate linked with the mass-spring engine.

MFFloat _invMassesX3D
 in/out x3d data corresponding to _invMasses

MFVec3f _velocitiesX3D
 in/out x3d data corresponding to _velocities

MFFloat _stiffnessesX3D
 in/out x3d data corresponding to _stiffnesses

MFFloat _restLengthsX3D
 in/out x3d data corresponding to _restLengths

MFInt32 _linksX3D
 in/out x3d data corresponding to _links


Constructor & Destructor Documentation

X3DTK::X3D::MassSpringNode::MassSpringNode  ) 
 

Constructor.

Definition at line 30 of file massSpringNode.cpp.

X3DTK::X3D::MassSpringNode::~MassSpringNode  ) 
 

Destructor.

Definition at line 64 of file massSpringNode.cpp.


Member Function Documentation

void X3DTK::X3D::MassSpringNode::close  )  [virtual]
 

Reimplemented from X3DTK::X3D::EngineNode.

Definition at line 165 of file massSpringNode.cpp.

References _invMassesX3D, _linksX3D, _restLengthsX3D, _stiffnessesX3D, and _velocitiesX3D.

void X3DTK::X3D::MassSpringNode::declareOutputs X3D_X3DNodeList list  )  [virtual]
 

nodes modified by the engine

Reimplemented from X3DTK::X3D::EngineNode.

Definition at line 190 of file massSpringNode.cpp.

References X3DTK::X3D::X3D_X3DNodeList.

Coordinate* X3DTK::X3D::MassSpringNode::getCoordinate  )  const [inline]
 

getters/////////// gets the coordinate.

Definition at line 50 of file massSpringNode.h.

X3DTK::MFVec3f * X3DTK::X3D::MassSpringNode::getCoords  ) 
 

Get a pointer to the vector of coordinates.

Definition at line 202 of file massSpringNode.cpp.

X3DTK::MFFloat * X3DTK::X3D::MassSpringNode::getInvMasses  ) 
 

Definition at line 221 of file massSpringNode.cpp.

X3DTK::MFVec3f * X3DTK::X3D::MassSpringNode::getVelocities  ) 
 

Get a pointer to the vector of velocities.

Definition at line 212 of file massSpringNode.cpp.

void X3DTK::X3D::MassSpringNode::init  )  [virtual]
 

virtual methods/////// Init the engine inherited by the engine node

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

Definition at line 71 of file massSpringNode.cpp.

References _invMassesX3D, _linksX3D, _restLengthsX3D, _stiffnessesX3D, _velocitiesX3D, animal::Engine::init(), animal::resize(), animal::PhysicalSolver< t_Positions, t_Vector, t_InvMasses, t_Real >::set_useMass(), and animal::v_eq().

virtual void X3DTK::X3D::MassSpringNode::updateBoundingBox  )  [inline, virtual]
 

does nothing because the children nodes do the job

Implements X3DTK::X3D::EngineNode.

Definition at line 46 of file massSpringNode.h.


Member Data Documentation

Coordinate* X3DTK::X3D::MassSpringNode::_coordinate [private]
 

The coordinate linked with the mass-spring engine.

Definition at line 58 of file massSpringNode.h.

MFFloat X3DTK::X3D::MassSpringNode::_invMassesX3D [private]
 

in/out x3d data corresponding to _invMasses

Definition at line 60 of file massSpringNode.h.

Referenced by close(), and init().

MFInt32 X3DTK::X3D::MassSpringNode::_linksX3D [private]
 

in/out x3d data corresponding to _links

Definition at line 68 of file massSpringNode.h.

Referenced by close(), and init().

MFFloat X3DTK::X3D::MassSpringNode::_restLengthsX3D [private]
 

in/out x3d data corresponding to _restLengths

Definition at line 66 of file massSpringNode.h.

Referenced by close(), and init().

MFFloat X3DTK::X3D::MassSpringNode::_stiffnessesX3D [private]
 

in/out x3d data corresponding to _stiffnesses

Definition at line 64 of file massSpringNode.h.

Referenced by close(), and init().

MFVec3f X3DTK::X3D::MassSpringNode::_velocitiesX3D [private]
 

in/out x3d data corresponding to _velocities

Definition at line 62 of file massSpringNode.h.

Referenced by close(), and init().


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