Menge
Modular Pedestrian Simulation Framework for Research and Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
Menge::Vis::NullViewer Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

void Menge::Vis::NullViewer::setFixedStep ( float  stepSize)

Sets the simulator to use a fixed time step, with the given value.

Parameters
stepSizeThe size of the fixed step the viewer should advance its GLScene.

The documentation for this class was generated from the following files: