47 #ifndef __GLVIEWER_H__
48 #define __GLVIEWER_H__
115 bool setBGImage(
const std::string & imgName );
130 bool setWatermark(
const std::string & imgName );
150 bool initViewer(
const std::string & title );
158 void resizeGL(
int w,
int h );
222 void drawRecordingFrame()
const;
248 void offsetTime(
float delta );
264 void setBGColor(
float r,
float g,
float b );
281 void setFixedStep(
float stepSize );
288 void setDumpPath(
const std::string & path );
432 bool initSDL(
const std::string & title );
437 void drawWorldAxis()
const;
441 #endif // __GLVIEWER_H__
Vector3 _bgColor
The viewer's background color.
Definition: GLViewer.h:378
bool _pause
Controls whether the viewer advances the GLScene (true) or not (false).
Definition: GLViewer.h:361
bool hasWatermark() const
Reports if the viewer has a watermark.
Definition: GLViewer.h:137
size_t _currCam
The index of camera currently being used to draw the scene.
Definition: GLViewer.h:322
SDL_Event SDL_Event
Forward declaration of the SDL event type.
Definition: Context.h:53
bool _drawWorldAxis
Determines whether a world-aligned axis is drawn.
Definition: GLViewer.h:346
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
Class for defining an OpenGL Viewer.
Definition: GLViewer.h:80
Watermark * _waterMark
An optional watermark.
Definition: GLViewer.h:393
Sets up the proper compiler directives for platform and dll export/import.
std::vector< SceneGraph::GLCamera > _cameras
A set of cameras from which to draw the scene.
Definition: GLViewer.h:317
size_t _imgCount
The number of images which have been output. Used for labeling the image file names into a sequential...
Definition: GLViewer.h:414
The namespace containing visualization functionality for the pedestrian simulation.
Definition: GLViewer.h:64
int _height
The height of the viewer window (in pixels).
Definition: GLViewer.h:307
bool getDrawWorldAxis() const
Reports the state of whether the world axis is drawn or not.
Definition: GLViewer.h:216
void setCameraFOV(int i, float fov)
Sets the horizontal field of view for the ith camera.
Definition: GLViewer.h:231
bool hasBGImage() const
Reports if the viewer has a background image.
Definition: GLViewer.h:122
void setTime(float t)
Sets the current time.
Definition: GLViewer.h:254
bool _dumpImages
Determines if screen capture images will be output at each time advance.
Definition: GLViewer.h:398
void setCameraFarPlane(int i, float dist)
Sets the distance to the camera's far clipping plane.
Definition: GLViewer.h:240
The definition of a grid visualization of the ground plane.
SampleTimer _fpsDisplayTimer
A timer to determine the displayed frame rate value.
Definition: GLViewer.h:356
SceneGraph::GLCamera * getCamera(int i=0)
Gets a pointer to the ith camera.
Definition: GLViewer.h:273
float _stepSize
The step size for fixed-step simulation.
Definition: GLViewer.h:383
SceneGraph::GLScene * _scene
The GLScene to draw.
Definition: GLViewer.h:312
std::string _dumpPath
The path to the folder in which to write screen capture images.
Definition: GLViewer.h:408
void setDrawWorldAxis(bool state)
Sets whether the world axis is drawn or not.
Definition: GLViewer.h:209
A timer which uses a cache of values to only update its values every N calls to lap/elapsed. Useful for displaying frame rate.
Definition: Profiler.h:168
int _downY
The y-position of the mouse when a mouse button was depressed (in screen space).
Definition: GLViewer.h:334
The class which contains the entire drawable scene.
Definition: GLScene.h:72
The definition of the scene – the root of the directed, acyclic scene graph.
bool _update
Determines if the GLScene needs to update.
Definition: GLViewer.h:341
bool _validDumpPath
Reports if the screen capture output path is valid.
Definition: GLViewer.h:403
bool _running
Determines if the viewer should still operate – as long as it is true, it will continue its main loo...
Definition: GLViewer.h:367
int _width
The width of the viewer window (in pixels).
Definition: GLViewer.h:302
The class for controlling the view camera: it's position, orientation field of view, projection matrix, etc.
Definition: GLCamera.h:57
Functionality for timing and profiling the program.
bool _showFPS
Determines whether the frame rate is displayed in the viewer.
Definition: GLViewer.h:351
int _downX
The x-position of the mouse when a mouse button was depressed (in screen space).
Definition: GLViewer.h:328
Wrapper for the managed ImageData.
Definition: image.h:175
The specification of an OpenGL GLViewer for a scene.
Definition: ViewConfig.h:207
A class for handling the watermark functionality.
Definition: Watermark.h:74
std::vector< SceneGraph::GLLight > _lights
The set of lights to use in rendering.
Definition: GLViewer.h:419
float _viewTime
The current time at which the viewer is running. Modified by calls to GLViewer::setTime and GLViewer:...
Definition: GLViewer.h:373
Image * _bgImg
A pointer to the optional background image.
Definition: GLViewer.h:388
Functionality for capturing screen grabs to the file system.
Class to handle camera transformations in OpenGL.
static Uint32 FLAGS
The various SDL flags which determine the view.
Definition: GLViewer.h:294