Delegate Class Reference
[Command]

Interprets commands and passes them on to workers. More...

#include <Delegate.hpp>

List of all members.

Public Member Functions

 Delegate (Scene *scene, Canvas *canvas)
 ~Delegate ()
void addListener (CommandListener *listener, int command)
void fireEvent (int command)
Canvas * getCanvas () const
Scene * getScene () const
void run (int command)
void run (int command, float argument)
void run (int command, string argument)
void setCanvas (Canvas *canvas)
void setScene (Scene *scene)

Private Attributes

Scene * scene
Canvas * canvas
map< int, CommandListener * > listeners
Cameraman * cameraman
Compositor * compositor
Director * director
Grip * grip
Producer * producer

Detailed Description

Interprets commands and passes them on to workers.

Warning:
Currently only supports one listener per command.
See also:
Cameraman
Compositor
Director
Grip
Producer

Constructor & Destructor Documentation

Delegate ( Scene *  scene,
Canvas *  canvas 
)

Stores the inputs and sets up all the workers.

~Delegate (  ) 

Deletes all the workers.


Member Function Documentation

void addListener ( CommandListener *  listener,
int  command 
)

Adds a callback that will be called when a command is issued.

void fireEvent ( int  command  ) 

Calls the listener for a command.

void run ( int  command,
string  argument 
)

Runs a command by handing it off to a worker.

void run ( int  command,
float  argument 
)

Runs a command by handing it off to a worker.

void run ( int  command  ) 

Runs a command by handing it off to a worker.


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