ParticleHub Class Reference

Global Particle Collector. More...

#include <ParticleHub.h>

Inheritance diagram for ParticleHub:

Object

List of all members.

Public Member Functions

void addParticle (struct Particle *particle)
 registers a new particle
void removeParticle (struct Particle *particle)
 unregisteres a particle
void clear ()
 destroy all particles
void renderGl (Camera *camera)
 Renders object to OpenGL.
void selectGl ()
 Renders object to OpenGL.
virtual string toString () const
 Returns a textual representation.
virtual string className () const
 Returns the class name of the object.
virtual enum classId classId () const
 Returns the class id of the object.

Static Public Member Functions

static ParticleHubgetInstance ()
 Getter for singleton instance.

Private Member Functions

 ParticleHub ()
 ParticleHub (const ParticleHub &source)
 ~ParticleHub ()

Private Attributes

BspTree particles

Static Private Attributes

static ParticleHubinstance = 0


Detailed Description

Global Particle Collector.

Renders all the scenes Particles


Constructor & Destructor Documentation

ParticleHub::ParticleHub (  )  [private]

ParticleHub::ParticleHub ( const ParticleHub source  )  [private]

ParticleHub::~ParticleHub (  )  [private]


Member Function Documentation

ParticleHub * ParticleHub::getInstance (  )  [static]

Getter for singleton instance.

void ParticleHub::addParticle ( struct Particle particle  ) 

registers a new particle

void ParticleHub::removeParticle ( struct Particle particle  ) 

unregisteres a particle

void ParticleHub::clear (  ) 

destroy all particles

void ParticleHub::renderGl ( Camera camera  ) 

Renders object to OpenGL.

void ParticleHub::selectGl (  ) 

Renders object to OpenGL.

string ParticleHub::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Reimplemented from Object.

string ParticleHub::className (  )  const [virtual]

Returns the class name of the object.

Returns:
a string with the name of the object's class

Reimplemented from Object.

enum classId ParticleHub::classId (  )  const [virtual]

Returns the class id of the object.

Returns:
an id of the object's class

Reimplemented from Object.


Member Data Documentation

ParticleHub * ParticleHub::instance = 0 [static, private]


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

Generated on Mon Jul 7 13:30:34 2008 for Firefly by  doxygen 1.5.6