Menge
Modular Pedestrian Simulation Framework for Research and Development
|
The off-line context for running a simulation. More...
#include <NullViewer.h>
Public Member Functions | |
NullViewer () | |
Default constructor. | |
~NullViewer () | |
Destructor. | |
void | setScene (SceneGraph::GLScene *scene) |
The scene to run. | |
void | run () |
The main loop. | |
void | setFixedStep (float stepSize) |
Sets the simulator to use a fixed time step, with the given value. More... | |
Protected Attributes | |
SceneGraph::GLScene * | _scene |
The GLScene to draw. | |
float | _stepSize |
The step size for fixed-step simulation. | |
LapTimer | _fpsTimer |
Timer for determining computation time. | |
The off-line context for running a simulation.
The NullViewer is a mock viewer, similar to the GLViewer It takes a SceneGraph node and repeatedly updates the scene However, there is no visualization. It's purpose is simply to run the scene.
The POINT of this type of thing is to load up an empty scene with a non-trivial system that has some secondary, non-visual side effects and simply exercise it.
void Menge::Vis::NullViewer::setFixedStep | ( | float | stepSize | ) |
Sets the simulator to use a fixed time step, with the given value.
stepSize | The size of the fixed step the viewer should advance its GLScene. |