AnimaL |
Tutorial |
Documentation |
#include <massSpringNode.h>
Inheritance diagram for X3DTK::X3D::MassSpringNode:

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 | |
| MFVec3f * | getCoords () |
| MFVec3f * | getVelocities () |
| 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.
Definition at line 30 of file massSpringNode.cpp. |
|
|
Destructor.
Definition at line 64 of file massSpringNode.cpp. |
|
|
Reimplemented from X3DTK::X3D::EngineNode. Definition at line 165 of file massSpringNode.cpp. References _invMassesX3D, _linksX3D, _restLengthsX3D, _stiffnessesX3D, and _velocitiesX3D. |
|
|
nodes modified by the engine
Reimplemented from X3DTK::X3D::EngineNode. Definition at line 190 of file massSpringNode.cpp. References X3DTK::X3D::X3D_X3DNodeList. |
|
|
getters/////////// gets the coordinate.
Definition at line 50 of file massSpringNode.h. |
|
|
Get a pointer to the vector of coordinates. Definition at line 202 of file massSpringNode.cpp. |
|
|
Definition at line 221 of file massSpringNode.cpp. |
|
|
Get a pointer to the vector of velocities. Definition at line 212 of file massSpringNode.cpp. |
|
|
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(). |
|
|
does nothing because the children nodes do the job
Implements X3DTK::X3D::EngineNode. Definition at line 46 of file massSpringNode.h. |
|
|
The coordinate linked with the mass-spring engine.
Definition at line 58 of file massSpringNode.h. |
|
|
in/out x3d data corresponding to _invMasses
Definition at line 60 of file massSpringNode.h. |
|
|
in/out x3d data corresponding to _links
Definition at line 68 of file massSpringNode.h. |
|
|
in/out x3d data corresponding to _restLengths
Definition at line 66 of file massSpringNode.h. |
|
|
in/out x3d data corresponding to _stiffnesses
Definition at line 64 of file massSpringNode.h. |
|
|
in/out x3d data corresponding to _velocities
Definition at line 62 of file massSpringNode.h. |
1.3.6