#include <CCPUDoPlacementParticleEventHandler.h>
Public Member Functions | |
bool | isInheritPosition (void) const |
Getters/Setters. More... | |
var | isInheritPosition () |
Getters/Setters. More... | |
local | isInheritPosition () |
Getters/Setters. More... | |
bool | isInheritDirection (void) const |
var | isInheritDirection () |
local | isInheritDirection () |
bool | isInheritOrientation (void) const |
bool | isInheritTimeToLive (void) const |
var | isInheritTimeToLive () |
local | isInheritTimeToLive () |
bool | isInheritMass (void) const |
var | isInheritMass () |
local | isInheritMass () |
bool | isInheritTextureCoordinate (void) const |
bool | isInheritColour (void) const |
var | isInheritColour () |
local | isInheritColour () |
bool | isInheritParticleWidth (void) const |
bool | isInheritParticleHeight (void) const |
var | isInheritParticleHeight () |
local | isInheritParticleHeight () |
bool | isInheritParticleDepth (void) const |
var | isInheritParticleDepth () |
local | isInheritParticleDepth () |
void | setInheritPosition (bool inheritPosition) |
var | setInheritPosition ( var inheritPosition) |
local | setInheritPosition ( local inheritPosition) |
void | setInheritDirection (bool inheritDirection) |
void | setInheritOrientation (bool inheritOrientation) |
var | setInheritOrientation ( var inheritOrientation) |
local | setInheritOrientation ( local inheritOrientation) |
void | setInheritTimeToLive (bool inheritTimeToLive) |
var | setInheritTimeToLive ( var inheritTimeToLive) |
local | setInheritTimeToLive ( local inheritTimeToLive) |
void | setInheritMass (bool inheritMass) |
var | setInheritMass ( var inheritMass) |
local | setInheritMass ( local inheritMass) |
void | setInheritTextureCoordinate (bool inheritTextureCoordinate) |
void | setInheritColour (bool inheritColour) |
void | setInheritParticleWidth (bool inheritParticleWidth) |
void | setInheritParticleHeight (bool inheritParticleHeight) |
void | setInheritParticleDepth (bool inheritParticleDepth) |
var | setInheritParticleDepth ( var inheritParticleDepth) |
local | setInheritParticleDepth ( local inheritParticleDepth) |
const std::string & | getForceEmitterName (void) const |
Get the name of the emitter that is used to emit its particles. More... | |
local | getForceEmitterName () |
Get the name of the emitter that is used to emit its particles. More... | |
void | setForceEmitterName (const std::string &forceEmitterName) |
Set the name of the emitter that is used to emit its particles. More... | |
PUEmitter * | getForceEmitter (void) const |
Returns a pointer to the emitter that is used as a force emitter. More... | |
void | removeAsListener (void) |
Remove this as a listener from the technique. More... | |
var | removeAsListener () |
Remove this as a listener from the technique. More... | |
local | removeAsListener () |
Remove this as a listener from the technique. More... | |
unsigned int | getNumberOfParticles (void) const |
Get the number of particles to emit. More... | |
local | getNumberOfParticles () |
Get the number of particles to emit. More... | |
void | setNumberOfParticles (unsigned int numberOfParticles) |
Set the number of particles to emit. More... | |
bool | alwaysUsePosition (void) const |
Boolean that determines whether always the position of the particle that is handled must be used for emission of the new particle. More... | |
void | setAlwaysUsePosition (bool alwaysUsePosition) |
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. More... | |
virtual void | handle (PUParticleSystem3D *particleSystem, PUParticle3D *particle, float timeElapsed) override |
If the _handle() function of this class is invoked (by an Observer), it searches the ParticleEmitter defined by the mForceEmitterName. More... | |
local | handle ( local particleSystem, local particle, local timeElapsed) |
If the _handle() function of this class is invoked (by an Observer), it searches the ParticleEmitter defined by the mForceEmitterName. More... | |
virtual void | particleEmitted (PUParticleSystem3D *particleSystem, PUParticle3D *particle) override |
Initialise the emitted particle. More... | |
virtual void | particleExpired (PUParticleSystem3D *particleSystem, PUParticle3D *particle) override |
No implementation. More... | |
virtual void | copyAttributesTo (PUEventHandler *eventHandler) override |
local | copyAttributesTo ( local eventHandler) |
virtual | ~PUDoPlacementParticleEventHandler (void) |
Public Member Functions inherited from PUEventHandler | |
const std::string & | getName (void) const |
Todo. More... | |
local | getName () |
Todo. More... | |
void | setName (const std::string &name) |
PUObserver * | getParentObserver (void) const |
Todo. More... | |
var | getParentObserver () |
Todo. More... | |
local | getParentObserver () |
Todo. More... | |
void | setParentObserver (PUObserver *parentObserver) |
const std::string & | getEventHandlerType (void) const |
Todo. More... | |
local | getEventHandlerType () |
Todo. More... | |
void | setEventHandlerType (const std::string &eventHandlerType) |
virtual void | notifyRescaled (const Vec3 &scale) |
Notify that the event handler is rescaled. More... | |
virtual | ~PUEventHandler () |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Destructor. More... | |
Public Member Functions inherited from PUListener | |
PUListener () | |
virtual | ~PUListener () |
Static Public Member Functions | |
static PUDoPlacementParticleEventHandler * | create () |
local | create () |
Public Attributes | |
CC_CONSTRUCTOR_ACCESS | __pad0__: PUDoPlacementParticleEventHandler(void) |
Public Attributes inherited from PUEventHandler | |
CC_CONSTRUCTOR_ACCESS | __pad0__: PUEventHandler() |
var | __pad0__: PUEventHandler() |
local | __pad0__: PUEventHandler() |
Static Public Attributes | |
static const unsigned int | DEFAULT_NUMBER_OF_PARTICLES |
Protected Attributes | |
std::string | _forceEmitterName |
unsigned int | _numberOfParticles |
var | _numberOfParticles |
local | _numberOfParticles |
PUParticleSystem3D * | _system |
Store the technique value to keep up to speed. More... | |
var | _system |
Store the technique value to keep up to speed. More... | |
local | _system |
Store the technique value to keep up to speed. More... | |
PUEmitter * | _emitter |
Store the emitter value to keep up to speed. More... | |
var | _emitter |
Store the emitter value to keep up to speed. More... | |
local | _emitter |
Store the emitter value to keep up to speed. More... | |
bool | _found |
Used to determine whether the emitter used by the DoPlacementParticleEventHandler, is already found. More... | |
var | _found |
Used to determine whether the emitter used by the DoPlacementParticleEventHandler, is already found. More... | |
local | _found |
Used to determine whether the emitter used by the DoPlacementParticleEventHandler, is already found. More... | |
bool | _alwaysUsePosition |
By default the place where to put a new particle is on the position of the particle in the _handle function. More... | |
PUParticle3D * | _baseParticle |
The base particle from which the attributes are inherited. More... | |
var | _baseParticle |
The base particle from which the attributes are inherited. More... | |
local | _baseParticle |
The base particle from which the attributes are inherited. More... | |
bool | _inheritPosition |
These flags are used to determine which attributes must be inherited from the base particle. More... | |
bool | _inheritDirection |
var | _inheritDirection |
local | _inheritDirection |
bool | _inheritOrientation |
var | _inheritOrientation |
local | _inheritOrientation |
bool | _inheritTimeToLive |
var | _inheritTimeToLive |
local | _inheritTimeToLive |
bool | _inheritMass |
var | _inheritMass |
local | _inheritMass |
bool | _inheritTextureCoordinate |
bool | _inheritColour |
var | _inheritColour |
local | _inheritColour |
bool | _inheritParticleWidth |
var | _inheritParticleWidth |
local | _inheritParticleWidth |
bool | _inheritParticleHeight |
var | _inheritParticleHeight |
local | _inheritParticleHeight |
bool | _inheritParticleDepth |
var | _inheritParticleDepth |
local | _inheritParticleDepth |
Protected Attributes inherited from PUEventHandler | |
PUObserver * | _parentObserver |
std::string | _eventHandlerType |
std::string | _name |
Vec3 | _eventHandlerScale |
Although the scale is on a Particle System level, the event handler can also be scaled. More... | |
Protected Attributes inherited from Ref | |
unsigned int | _referenceCount |
count of references More... | |
local | _referenceCount |
count of references More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Ref | |
Ref () | |
Constructor. More... | |
Ref () | |
Constructor. More... | |
|
virtual |
|
virtual |
|
virtual |
|
inline |
Boolean that determines whether always the position of the particle that is handled must be used for emission of the new particle.
|
inline |
Boolean that determines whether always the position of the particle that is handled must be used for emission of the new particle.
|
inline |
Boolean that determines whether always the position of the particle that is handled must be used for emission of the new particle.
|
overridevirtual |
Reimplemented from PUEventHandler.
|
overridevirtual |
Reimplemented from PUEventHandler.
|
overridevirtual |
Reimplemented from PUEventHandler.
|
static |
|
static |
|
static |
PUEmitter* getForceEmitter | ( | void | ) | const |
Returns a pointer to the emitter that is used as a force emitter.
var getForceEmitter | ( | ) |
Returns a pointer to the emitter that is used as a force emitter.
local getForceEmitter | ( | ) |
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 name of the emitter that is used to emit its particles.
|
inline |
Get the name of the emitter that is used to emit its particles.
|
inline |
Get the number of particles to emit.
|
inline |
Get the number of particles to emit.
|
inline |
Get the number of particles to emit.
|
overridevirtual |
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 PUEventHandler.
|
overridevirtual |
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 PUEventHandler.
|
overridevirtual |
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 PUEventHandler.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Getters/Setters.
|
inline |
Getters/Setters.
|
inline |
Getters/Setters.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
inlineoverridevirtual |
No implementation.
Implements PUListener.
|
inlineoverridevirtual |
No implementation.
Implements PUListener.
|
inlineoverridevirtual |
No implementation.
Implements PUListener.
void removeAsListener | ( | void | ) |
Remove this as a listener from the technique.
var removeAsListener | ( | ) |
Remove this as a listener from the technique.
local removeAsListener | ( | ) |
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.
|
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.
|
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 setForceEmitterName | ( | const std::string & | forceEmitterName | ) |
Set the name of the emitter that is used to emit its particles.
var setForceEmitterName | ( | var | forceEmitterName | ) |
Set the name of the emitter that is used to emit its particles.
local setForceEmitterName | ( | local | 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 |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the number of particles to emit.
|
inline |
Set the number of particles to emit.
|
inline |
Set the number of particles to emit.
CC_CONSTRUCTOR_ACCESS __pad0__ |
|
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 |
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 |
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 |
The base particle from which the attributes are inherited.
|
protected |
The base particle from which the attributes are inherited.
|
protected |
Store the emitter value to keep up to speed.
|
protected |
Store the emitter value to keep up to speed.
|
protected |
Store the emitter value to keep up to speed.
|
protected |
|
protected |
|
protected |
|
protected |
Used to determine whether the emitter used by the DoPlacementParticleEventHandler, is already found.
|
protected |
Used to determine whether the emitter used by the DoPlacementParticleEventHandler, is already found.
|
protected |
Used to determine whether the emitter used by the DoPlacementParticleEventHandler, is already found.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
These flags are used to determine which attributes must be inherited from the base particle.
|
protected |
These flags are used to determine which attributes must be inherited from the base particle.
|
protected |
These flags are used to determine which attributes must be inherited from the base particle.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Store the technique value to keep up to speed.
|
protected |
Store the technique value to keep up to speed.
|
protected |
Store the technique value to keep up to speed.
|
static |
|
static |
|
static |