This is an EventReporter that makes it easy to generate on-screen movies of any simulation.
More...
#include <Visualizer_Reporter.h>
This is an EventReporter that makes it easy to generate on-screen movies of any simulation.
Use it like this:
MultibodySystem system;
system.addEventReporter(new Visualizer::Reporter(viz, interval));
Visualizer(const MultibodySystem &system)
Construct a new Visualizer for the indicated System, and launch the visualizer display executable fro...
◆ Reporter() [1/2]
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.
◆ Reporter() [2/2]
This constructor will create a Visualizer with all the default settings for the supplied system sys.
This is an abbreviation for
Reporter(const Visualizer &viz, Real reportInterval=Infinity)
Create a Reporter for the given Visualizer viz, and call its report() method every reportInterval tim...
.
◆ ~Reporter()
SimTK::Visualizer::Reporter::~Reporter |
( |
| ) |
|
Destructor will also destroy the contained Visualizer object if there are no other references to it.
◆ getVisualizer()
const Visualizer & SimTK::Visualizer::Reporter::getVisualizer |
( |
| ) |
const |
◆ handleEvent()
virtual void SimTK::Visualizer::Reporter::handleEvent |
( |
const State & |
state | ) |
const |
|
overridevirtual |
◆ getImpl()
const Impl & SimTK::Visualizer::Reporter::getImpl |
( |
| ) |
const |
|
inlineprotected |
◆ updImpl()
Impl & SimTK::Visualizer::Reporter::updImpl |
( |
| ) |
|
|
inlineprotected |
◆ impl
Impl* SimTK::Visualizer::Reporter::impl |
|
protected |
The documentation for this class was generated from the following file: