Display Class Reference
[GUI]

3D display for items in a scene. More...

#include <Display.hpp>

Inherits CanvasListener, and CommandListener.

List of all members.

Public Member Functions

 Display (Delegate *delegate)
void add (Control *control)
void computeFootprint ()
virtual void onCanvasEvent (const CanvasEvent &event)
DelegategetDelegate ()
virtual void onCommandEvent (int command)
void toggleOverlay ()

Protected Member Functions

void overlay ()

Private Attributes

bool useOverlay
Delegatedelegate
unsigned long timeStarted
int frames
int framesPerSecond
Painterpainter
vector< Control * > controls
double footprint
Canvascanvas
Glib::Timer timer

Detailed Description

3D display for items in a scene.


Member Function Documentation

void add ( Control control  ) 

Installs a control into the display.

Parameters:
control Pointer to an object implementing the Control interface.
void computeFootprint (  ) 

Adds up the footprints of all the textures in the scene.

void onCanvasEvent ( const CanvasEvent &  event  )  [virtual]

Draws the scene in the window.

void onCommandEvent ( int  command  )  [virtual]

Handles command events.

void overlay (  )  [protected]

Draws the overlay on the display.

void toggleOverlay (  ) 

Switches the overlay on and off.


The documentation for this class was generated from the following files:
Generated on Wed Jun 9 01:36:35 2010 for Gander by  doxygen 1.6.3