artisynth.core.mechmodels
Interface HasSlaveObjects

All Known Implementing Classes:
FemMesh, FemMeshBase, FemModel, FemModel3d, FemMuscleModel, HydrostatModel, MeshComponentList, MFreeModel3d, MFreeMuscleModel, PointToPointMuscle, SkinMesh, SkinMeshBase, SpongeModel

public interface HasSlaveObjects

Indicates a model component that contains objects (not necessarily just ModelComponents) whose position and/or velocity are completely coupled to the position and velocity of the dynamic components of the system. A good example is a skinned mesh, attached to underlying Frames and Particles, in which the slave objects are the mesh vertices.

Whenever the positions and/or velocities of the dynamic system components change, the position and velocity state of the slaved object within this component must be updated using updateSlavePos() and/or updateSlaveVel().


Method Summary
 void updateSlavePos()
          Called when the system's dynamic position state changes, to update the position state of the slave objects.
 void updateSlaveVel()
          Called when the system's dynamic velocity state changes, to update the velocity state of the slave objects.
 

Method Detail

updateSlavePos

void updateSlavePos()
Called when the system's dynamic position state changes, to update the position state of the slave objects.


updateSlaveVel

void updateSlaveVel()
Called when the system's dynamic velocity state changes, to update the velocity state of the slave objects.