CreatorStrategy Class Reference

#include <CreatorStrategy.h>

List of all members.

Public Member Functions

 CreatorStrategy (void)
 ~CreatorStrategy (void)

Protected Member Functions

void onEvent (LargeDisplayEvent *evt)
virtual VisComponentGLcreateComponent (unsigned int x=0, unsigned int y=0, unsigned int z=0)=0


Detailed Description

This strategy defines a button that when pressed creates a VisComponent object. The creation process (i. e., instantiating the component and adding strategies) must be done by the subclasses.

Author:
Fabricio Anastacio - fabriciocfa@yahoo.com
Since:
August 28, 2007


Constructor & Destructor Documentation

CreatorStrategy::CreatorStrategy ( void   ) 

Constructs a creator strategy.

CreatorStrategy::~CreatorStrategy ( void   ) 

Destroys this strategy.


Member Function Documentation

void CreatorStrategy::onEvent ( LargeDisplayEvent *  evt  )  [protected]

Handles the given event.

Parameters:
evt the event to be handled.

virtual VisComponentGL* CreatorStrategy::createComponent ( unsigned int  x = 0,
unsigned int  y = 0,
unsigned int  z = 0 
) [protected, pure virtual]

Returns a pointer to the created component.

Parameters:
x the x-coordinate of the creator button pressing in screen space
y the y-coordinate of the creator button pressing in screen space
z the z-coordinate of the creator button pressing in screen space
Returns:
a pointer to the created component.


The documentation for this class was generated from the following files:
Generated on Fri Dec 21 17:46:07 2007 for LargeDisplayFrameworkToolkit by  doxygen 1.5.2