Particle Universe
1.2
|
#include <ParticleUniverseDoPlacementParticleEventHandler.h>
Public Member Functions | |
DoPlacementParticleEventHandler (void) | |
virtual | ~DoPlacementParticleEventHandler (void) |
bool | isInheritPosition (void) const |
bool | isInheritDirection (void) const |
bool | isInheritOrientation (void) const |
bool | isInheritTimeToLive (void) const |
bool | isInheritMass (void) const |
bool | isInheritTextureCoordinate (void) const |
bool | isInheritColour (void) const |
bool | isInheritParticleWidth (void) const |
bool | isInheritParticleHeight (void) const |
bool | isInheritParticleDepth (void) const |
void | setInheritPosition (bool inheritPosition) |
void | setInheritDirection (bool inheritDirection) |
void | setInheritOrientation (bool inheritOrientation) |
void | setInheritTimeToLive (bool inheritTimeToLive) |
void | setInheritMass (bool inheritMass) |
void | setInheritTextureCoordinate (bool inheritTextureCoordinate) |
void | setInheritColour (bool inheritColour) |
void | setInheritParticleWidth (bool inheritParticleWidth) |
void | setInheritParticleHeight (bool inheritParticleHeight) |
void | setInheritParticleDepth (bool inheritParticleDepth) |
const String & | getForceEmitterName (void) const |
void | setForceEmitterName (const String &forceEmitterName) |
ParticleEmitter * | getForceEmitter (void) const |
void | removeAsListener (void) |
unsigned int | getNumberOfParticles (void) const |
void | setNumberOfParticles (unsigned int numberOfParticles) |
bool | alwaysUsePosition (void) const |
void | setAlwaysUsePosition (bool alwaysUsePosition) |
virtual void | _handle (ParticleTechnique *particleTechnique, Particle *particle, Real timeElapsed) |
virtual void | particleEmitted (ParticleTechnique *particleTechnique, Particle *particle) |
virtual void | particleExpired (ParticleTechnique *particleTechnique, Particle *particle) |
virtual void | copyAttributesTo (ParticleEventHandler *eventHandler) |
Public Member Functions inherited from ParticleUniverse::ParticleEventHandler | |
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 | 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) |
Public Member Functions inherited from ParticleUniverse::TechniqueListener | |
TechniqueListener (void) | |
virtual | ~TechniqueListener (void) |
Static Public Attributes | |
static const unsigned int | DEFAULT_NUMBER_OF_PARTICLES |
Protected Attributes | |
String | mForceEmitterName |
unsigned int | mNumberOfParticles |
ParticleTechnique * | mTechnique |
ParticleEmitter * | mEmitter |
bool | mFound |
bool | mAlwaysUsePosition |
Particle * | mBaseParticle |
bool | mInheritPosition |
bool | mInheritDirection |
bool | mInheritOrientation |
bool | mInheritTimeToLive |
bool | mInheritMass |
bool | mInheritTextureCoordinate |
bool | mInheritColour |
bool | mInheritParticleWidth |
bool | mInheritParticleHeight |
bool | mInheritParticleDepth |
Protected Attributes inherited from ParticleUniverse::ParticleEventHandler | |
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 } |
This class 'sticks' one or more particles to the position of a particle that is passed through the DoPlacementParticleEventHandler.
ParticleUniverse::DoPlacementParticleEventHandler::DoPlacementParticleEventHandler | ( | void | ) |
|
virtual |
|
virtual |
If the _handle() function of this class is invoked (by an Observer), it searches the ParticleEmitter defined by the mForceEmitterName. This ParticleEmitter is either part of the ParticleTechnique in which the DoPlacementParticleEventHandler is defined, and if the ParticleEmitter is not found, other ParticleTechniques are searched. The ParticleEmitter is 'forced' to emit the requested number of particles.
Implements ParticleUniverse::ParticleEventHandler.
|
inline |
Boolean that determines whether always the position of the particle that is handled must be used for emission of the new particle.
|
virtual |
Copy attributes to another event handler.
Reimplemented from ParticleUniverse::ParticleEventHandler.
ParticleEmitter* ParticleUniverse::DoPlacementParticleEventHandler::getForceEmitter | ( | void | ) | const |
Returns a pointer to the emitter that is used as a force emitter.
|
inline |
Get the name of the emitter that is used to emit its particles.
|
inline |
Get the number of particles to emit.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Getters/Setters
|
inline |
|
inline |
|
virtual |
Initialise the emitted particle. This means that its position is set.
Implements ParticleUniverse::TechniqueListener.
|
inlinevirtual |
No implementation.
Implements ParticleUniverse::TechniqueListener.
void ParticleUniverse::DoPlacementParticleEventHandler::removeAsListener | ( | void | ) |
Remove this as a listener from the technique.
|
inline |
Set the boolean to indicate whether the position of the particle that is handled must be used for emission of the new particle or whether the contact point of the physics actor must be used. This only applies if a physics angine is used, otherwise the default is used.
void ParticleUniverse::DoPlacementParticleEventHandler::setForceEmitterName | ( | const String & | forceEmitterName | ) |
Set the name of the emitter that is used to emit its particles.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the number of particles to emit.
|
static |
|
protected |
By default the place where to put a new particle is on the position of the particle in the _handle function. If mAlwaysUsePosition is set to false, it tries the contact point of the physics actor that is associated with the particle.
|
protected |
The base particle from which the attributes are inherited
|
protected |
Store the emitter value to keep up to speed.
|
protected |
|
protected |
Used to determine whether the emitter used by the DoPlacementParticleEventHandler, is already found.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
These flags are used to determine which attributes must be inherited from the base particle.
|
protected |
|
protected |
|
protected |
|
protected |
Store the technique value to keep up to speed.