Simbody
|
A DecorationGenerator is used to define geometry that may change over the course of a simulation. More...
#include <DecorationGenerator.h>
Public Member Functions | |
virtual void | generateDecorations (const State &state, Array_< DecorativeGeometry > &geometry)=0 |
This will be called every time a new State is about to be visualized. | |
virtual | ~DecorationGenerator () |
Destructor is virtual; be sure to override it if you have something to clean up at the end. |
A DecorationGenerator is used to define geometry that may change over the course of a simulation.
Example include
To use it, define a concrete subclass that implements generateDecorations() to generate whatever geometry is appropriate for a given State. It can then be added to a DecorationSubsystem, or directly to a Visualizer.
virtual SimTK::DecorationGenerator::~DecorationGenerator | ( | ) | [inline, virtual] |
Destructor is virtual; be sure to override it if you have something to clean up at the end.
virtual void SimTK::DecorationGenerator::generateDecorations | ( | const State & | state, |
Array_< DecorativeGeometry > & | geometry | ||
) | [pure virtual] |