Simbody
3.7
|
This is an EventReporter that makes it easy to generate on-screen movies of any simulation. More...
Public Member Functions | |
Reporter (const Visualizer &viz, Real reportInterval=Infinity) | |
Create a Reporter for the given Visualizer viz, and call its report() method every reportInterval time units of simulation time (not necessarily measured in seconds). More... | |
Reporter (const MultibodySystem &sys, Real reportInterval=Infinity) | |
This constructor will create a Visualizer with all the default settings for the supplied system sys. More... | |
~Reporter () | |
Destructor will also destroy the contained Visualizer object if there are no other references to it. More... | |
const Visualizer & | getVisualizer () const |
Get the Visualizer which this Reporter is using to generate images. More... | |
virtual void | handleEvent (const State &state) const override |
This satisfies the pure virtual method in EventReporter. More... | |
Public Member Functions inherited from SimTK::PeriodicEventReporter | |
~PeriodicEventReporter () | |
Real | getNextEventTime (const State &state, bool includeCurrentTime) const override |
Get the next time at which an event will occur. More... | |
PeriodicEventReporter (Real eventInterval) | |
Create a PeriodicEventReporter. More... | |
Real | getEventInterval () const |
Get the time interval at which events occur. More... | |
void | setEventInterval (Real eventInterval) |
Set the time interval at which events occur. More... | |
Public Member Functions inherited from SimTK::ScheduledEventReporter | |
virtual | ~ScheduledEventReporter () |
Public Member Functions inherited from SimTK::EventReporter | |
virtual | ~EventReporter () |
Protected Member Functions | |
const Impl & | getImpl () const |
Impl & | updImpl () |
Protected Attributes | |
Impl * | impl |
This is an EventReporter that makes it easy to generate on-screen movies of any simulation.
Use it like this:
|
explicit |
Create a Reporter for the given Visualizer viz, and call its report() method every reportInterval time units of simulation time (not necessarily measured in seconds).
Note that if you want to run your simulation in real time and you aren't using seconds as time units, you should set the time scale via the Visualizer's setRealTimeScale() method and set the report interval here to TimeScale/FrameRate.
|
explicit |
This constructor will create a Visualizer with all the default settings for the supplied system sys.
This is an abbreviation for
.
SimTK::Visualizer::Reporter::~Reporter | ( | ) |
Destructor will also destroy the contained Visualizer object if there are no other references to it.
const Visualizer& SimTK::Visualizer::Reporter::getVisualizer | ( | ) | const |
Get the Visualizer which this Reporter is using to generate images.
|
overridevirtual |
This satisfies the pure virtual method in EventReporter.
Implements SimTK::EventReporter.
|
inlineprotected |
|
inlineprotected |
|
protected |