Particle Universe
1.2
|
#include <ParticleUniverseEventHandler.h>
Public Member Functions | |
ParticleEventHandler (void) | |
virtual | ~ParticleEventHandler (void) |
const String & | getName (void) const |
void | setName (const String &name) |
ParticleObserver * | getParentObserver (void) const |
void | setParentObserver (ParticleObserver *parentObserver) |
const String & | getEventHandlerType (void) const |
void | setEventHandlerType (const String &eventHandlerType) |
virtual void | _notifyRescaled (const Vector3 &scale) |
virtual void | _handle (ParticleTechnique *particleTechnique, Particle *particle, Real timeElapsed)=0 |
virtual void | copyAttributesTo (ParticleEventHandler *eventHandler) |
virtual void | copyParentAttributesTo (ParticleEventHandler *eventHandler) |
Public Member Functions inherited from ParticleUniverse::IAlias | |
IAlias (void) | |
virtual | ~IAlias (void) |
const String & | getAliasName (void) const |
void | setAliasName (String aliasName) |
const AliasType | getAliasType (void) const |
void | setAliasType (AliasType aliasType) |
Public Member Functions inherited from ParticleUniverse::IElement | |
IElement (void) | |
virtual | ~IElement (void) |
Protected Attributes | |
ParticleObserver * | mParentObserver |
String | mEventHandlerType |
String | mName |
Vector3 | _mEventHandlerScale |
Protected Attributes inherited from ParticleUniverse::IAlias | |
String | mAliasName |
AliasType | mAliasType |
Additional Inherited Members | |
Public Types inherited from ParticleUniverse::IAlias | |
enum | AliasType { AT_UNDEFINED, AT_TECHNIQUE, AT_RENDERER, AT_EMITTER, AT_AFFECTOR, AT_OBSERVER, AT_EXTERN, AT_HANDLER, AT_BEHAVIOUR } |
A ParticleEventHandlers is used to perform a task in case a certain event happens.
|
inline |
|
inlinevirtual |
|
pure virtual |
Todo
Implemented in ParticleUniverse::DoPlacementParticleEventHandler, ParticleUniverse::DoEnableComponentEventHandler, ParticleUniverse::DoAffectorEventHandler, ParticleUniverse::DoScaleEventHandler, ParticleUniverse::DoExpireEventHandler, ParticleUniverse::DoFreezeEventHandler, and ParticleUniverse::DoStopSystemEventHandler.
|
inlinevirtual |
Notify that the event handler is rescaled.
|
inlinevirtual |
Copy attributes to another event handler.
Reimplemented in ParticleUniverse::DoPlacementParticleEventHandler, ParticleUniverse::DoEnableComponentEventHandler, ParticleUniverse::DoAffectorEventHandler, and ParticleUniverse::DoScaleEventHandler.
|
inlinevirtual |
Copy parent attributes to another event handler.
|
inline |
Todo
|
inline |
Todo
|
inline |
Todo
|
inline |
|
inline |
|
inline |
|
protected |
Although the scale is on a Particle System level, the event handler can also be scaled.
|
protected |
|
protected |
|
protected |