|
| RecordingWorld (const dart::simulation::WorldPtr &world) |
|
void | grabTimeSlice () |
|
void | customPostStep () override |
| If update() is not overloaded, this function will be called at the end of each simulation step. More...
|
|
void | moveTo (std::size_t index) |
|
void | moveForward (int delta) |
|
void | moveBackward (int delta) |
|
void | restart () |
|
void | moveToEnd () |
|
| RealTimeWorldNode (const std::shared_ptr< dart::simulation::World > &world=nullptr, const ::osg::ref_ptr< osgShadow::ShadowTechnique > &shadower=nullptr, double targetFrequency=60.0, double targetRealTimeFactor=1.0) |
| Construct a world node that will attempt to run a simulation with close to real-time playback. More...
|
|
void | setTargetFrequency (double targetFrequency) |
| Set the target refresh rate frequency.
|
|
double | getTargetFrequency () const |
| Get the target refresh rate frequency.
|
|
void | setTargetRealTimeFactor (double targetRTF) |
| Set the target real time factor.
|
|
double | getTargetRealTimeFactor () const |
| Get the target real time factor.
|
|
double | getLastRealTimeFactor () const |
| Get the real time factor that was achieved in the last refresh cycle. More...
|
|
double | getLowestRealTimeFactor () const |
| Get the lowest real time factor that has been hit during the simulation.
|
|
double | getHighestRealTimeFactor () const |
| Get the highest real time factor that has been hit during the simulation.
|
|
void | refresh () override |
| This function is called at the beginning of each rendering cycle. More...
|
|
| WorldNode (std::shared_ptr< dart::simulation::World > world=nullptr, ::osg::ref_ptr< osgShadow::ShadowTechnique > shadowTechnique=nullptr) |
| Default constructor Shadows are disabled by default.
|
|
void | setWorld (std::shared_ptr< dart::simulation::World > newWorld) |
| Set the World that this WorldNode is associated with.
|
|
std::shared_ptr< dart::simulation::World > | getWorld () const |
| Get the World that this WorldNode is associated with.
|
|
virtual void | customPreRefresh () |
| If update() is not overloaded, this function will be called at the beginning of each rendering cycle. More...
|
|
virtual void | customPostRefresh () |
| If update() is not overloaded, this function will be called at the end of each rendering cycle. More...
|
|
virtual void | customPreStep () |
| If update() is not overloaded, this function will be called at the beginning of each simulation step. More...
|
|
bool | isSimulating () const |
| Returns true iff the WorldNode is stepping between render cycles.
|
|
void | simulate (bool on) |
| Pass in true to take steps between render cycles; pass in false to turn off steps between render cycles. More...
|
|
void | setNumStepsPerCycle (std::size_t steps) |
| Set the number of steps to take between each render cycle (only if the simulation is not paused)
|
|
std::size_t | getNumStepsPerCycle () const |
| Get the number of steps that will be taken between each render cycle (only if the simulation is not paused)
|
|
bool | isShadowed () const |
| Get whether the WorldNode is casting shadows.
|
|
void | setShadowTechnique (::osg::ref_ptr< osgShadow::ShadowTechnique > shadowTechnique=nullptr) |
| Set the ShadowTechnique If you wish to disable shadows, pass a nullptr.
|
|
::osg::ref_ptr< osgShadow::ShadowTechnique > | getShadowTechnique () const |
| Get the current ShadowTechnique nullptr is there are no shadows.
|
|
static ::osg::ref_ptr< osgShadow::ShadowTechnique > | createDefaultShadowTechnique (const Viewer *viewer) |
| Helper function to create a default ShadowTechnique given a Viewer the default ShadowTechnique is ShadowMap.
|
|
virtual | ~WorldNode () |
| Destructor.
|
|