Abstract class defining the interface to be implemented by particle emitters.
More...
|
| ParticleEmitter (ParticleSystem *psys) |
|
virtual | ~ParticleEmitter () |
| Virtual destructor essential. More...
|
|
virtual unsigned short | _getEmissionCount (Real timeElapsed)=0 |
| Gets the number of particles which this emitter would like to emit based on the time elapsed. More...
|
|
virtual void | _initParticle (Particle *pParticle) |
| Initialises a particle based on the emitter's approach and parameters. More...
|
|
virtual const Radian & | getAngle () const |
| Returns the maximum angle which the initial particle direction can deviate from the emitters base direction. More...
|
|
virtual const ColourValue & | getColour () const |
| Gets the colour of particles to be emitted. More...
|
|
virtual const ColourValue & | getColourRangeEnd () const |
| Gets the maximum colour of particles to be emitted. More...
|
|
virtual const ColourValue & | getColourRangeStart () const |
| Gets the minimum colour of particles to be emitted. More...
|
|
virtual const Vector3 & | getDirection () const |
| Returns the base direction of the emitter. More...
|
|
virtual const Vector3 & | getDirPositionReference () const |
| Returns the position reference to generate direction of emitted particles. More...
|
|
virtual bool | getDirPositionReferenceEnabled () const |
| Returns whether direction or position reference is used. More...
|
|
virtual Real | getDuration () const |
| Gets the duration of the emitter from when it is created or re-enabled. More...
|
|
virtual Real | getEmissionRate () const |
| Returns the emission rate set for this emitter. More...
|
|
const String & | getEmittedEmitter () const |
| Returns the name of the emitter to be emitted. More...
|
|
virtual bool | getEnabled () const |
| Gets the flag indicating if this emitter is enabled or not. More...
|
|
virtual Real | getMaxDuration () const |
| Gets the maximum duration of this emitter in seconds (see setDuration for more details) More...
|
|
virtual Real | getMaxParticleVelocity () const |
| Returns the maximum particle velocity. More...
|
|
virtual Real | getMaxRepeatDelay () const |
| Gets the maximum duration of this emitter in seconds (see setRepeatDelay for more details) More...
|
|
virtual Real | getMaxTimeToLive () const |
| Gets the maximum time each particle will live for. More...
|
|
virtual Real | getMinDuration () const |
| Gets the minimum duration of this emitter in seconds (see setDuration for more details) More...
|
|
virtual Real | getMinParticleVelocity () const |
| Returns the minimum particle velocity. More...
|
|
virtual Real | getMinRepeatDelay () const |
| Gets the minimum duration of this emitter in seconds (see setRepeatDelay for more details) More...
|
|
virtual Real | getMinTimeToLive () const |
| Gets the minimum time each particle will live for. More...
|
|
const String & | getName () const |
| Returns the name of the emitter. More...
|
|
virtual Real | getParticleVelocity () const |
| Returns the initial velocity of particles emitted. More...
|
|
virtual const Vector3 & | getPosition () const |
| Returns the position of this emitter relative to the center of the particle system. More...
|
|
virtual Real | getRepeatDelay () const |
| Gets the duration of the emitter from when it is created or re-enabled. More...
|
|
virtual Real | getStartTime () const |
| Gets the start time of the emitter. More...
|
|
virtual Real | getTimeToLive () const |
| Gets the time each particle will live for. More...
|
|
const String & | getType () const |
| Returns the name of the type of emitter. More...
|
|
virtual const Vector3 & | getUp () const |
| Returns the up vector of the emitter. More...
|
|
virtual bool | isEmitted () const |
| Return true if the emitter is emitted by another emitter. More...
|
|
virtual void | setAngle (const Radian &angle) |
| Sets the maximum angle away from the emitter direction which particle will be emitted. More...
|
|
virtual void | setColour (const ColourValue &colour) |
| Sets the initial colour of particles emitted. More...
|
|
virtual void | setColour (const ColourValue &colourStart, const ColourValue &colourEnd) |
| Sets the range of colours for emitted particles. More...
|
|
virtual void | setColourRangeEnd (const ColourValue &colour) |
| Sets the maximum colour of particles to be emitted. More...
|
|
virtual void | setColourRangeStart (const ColourValue &colour) |
| Sets the minimum colour of particles to be emitted. More...
|
|
virtual void | setDirection (const Vector3 &direction) |
| Sets the direction of the emitter. More...
|
|
virtual void | setDirPositionReference (const Vector3 &position, bool enable) |
| Sets the direction of the emitter. More...
|
|
virtual void | setDuration (Real duration) |
| Sets the duration of the emitter. More...
|
|
virtual void | setDuration (Real min, Real max) |
| Sets the range of random duration for this emitter. More...
|
|
virtual void | setEmissionRate (Real particlesPerSecond) |
| Sets the emission rate for this emitter. More...
|
|
virtual void | setEmitted (bool emitted) |
| Set the indication (true/false) to indicate that the emitter is emitted by another emitter. More...
|
|
virtual void | setEmittedEmitter (const String &emittedEmitter) |
| Sets the name of the emitter to be emitted. More...
|
|
virtual void | setEnabled (bool enabled) |
| Sets whether or not the emitter is enabled. More...
|
|
virtual void | setMaxDuration (Real max) |
| Sets the maximum duration of this emitter in seconds (see setDuration for more details) More...
|
|
virtual void | setMaxParticleVelocity (Real max) |
| Returns the maximum particle velocity. More...
|
|
virtual void | setMaxRepeatDelay (Real max) |
| Sets the maximum duration of this emitter in seconds (see setRepeatDelay for more details) More...
|
|
virtual void | setMaxTimeToLive (Real max) |
| Sets the maximum time each particle will live for. More...
|
|
virtual void | setMinDuration (Real min) |
| Sets the minimum duration of this emitter in seconds (see setDuration for more details) More...
|
|
virtual void | setMinParticleVelocity (Real min) |
| Returns the minimum particle velocity. More...
|
|
virtual void | setMinRepeatDelay (Real min) |
| Sets the minimum duration of this emitter in seconds (see setRepeatDelay for more details) More...
|
|
virtual void | setMinTimeToLive (Real min) |
| Sets the minimum time each particle will live for. More...
|
|
virtual void | setName (const String &newName) |
| Sets the name of the emitter. More...
|
|
virtual void | setParticleVelocity (Real min, Real max) |
| Sets the initial velocity range of particles emitted. More...
|
|
virtual void | setParticleVelocity (Real speed) |
| Sets the initial velocity of particles emitted. More...
|
|
virtual void | setPosition (const Vector3 &pos) |
| Sets the position of this emitter relative to the particle system center. More...
|
|
virtual void | setRepeatDelay (Real duration) |
| Sets the time between repeats of the emitter. More...
|
|
virtual void | setRepeatDelay (Real min, Real max) |
| Sets the range of random duration for this emitter. More...
|
|
virtual void | setStartTime (Real startTime) |
| Sets the 'start time' of this emitter. More...
|
|
virtual void | setTimeToLive (Real minTtl, Real maxTtl) |
| Sets the range of lifetime for particles emitted. More...
|
|
virtual void | setTimeToLive (Real ttl) |
| Sets the lifetime of all particles emitted. More...
|
|
virtual void | setUp (const Vector3 &up) |
| Sets the notional up vector of the emitter. More...
|
|
| StringInterface () |
|
virtual | ~StringInterface () |
| Virtual destructor, see Effective C++. More...
|
|
virtual void | copyParametersTo (StringInterface *dest) const |
| Method for copying this object's parameters to another object. More...
|
|
ParamDictionary * | getParamDictionary () |
| Retrieves the parameter dictionary for this class. More...
|
|
const ParamDictionary * | getParamDictionary () const |
|
virtual String | getParameter (const String &name) const |
| Generic parameter retrieval method. More...
|
|
const ParameterList & | getParameters () const |
| Retrieves a list of parameters valid for this object. More...
|
|
virtual bool | setParameter (const String &name, const String &value) |
| Generic parameter setting method. More...
|
|
virtual void | setParameterList (const NameValuePairList ¶mList) |
| Generic multiple parameter setting method. More...
|
|
Public Member Functions inherited from Ogre::Particle |
| Particle () |
|
void | _notifyOwner (ParticleSystem *owner) |
| Internal method for notifying the particle of it's owner. More...
|
|
void | _notifyVisualData (ParticleVisualData *vis) |
| Internal method for notifying the particle of it's optional visual data. More...
|
|
Real | getOwnHeight () const |
| Retrieves the particle's personal width, if hasOwnDimensions is true. More...
|
|
Real | getOwnWidth () const |
| Retrieves the particle's personal width, if hasOwnDimensions is true. More...
|
|
const Radian & | getRotation () const |
|
ParticleVisualData * | getVisualData () const |
| Get the optional visual data associated with the class. More...
|
|
bool | hasOwnDimensions () const |
| Returns true if this particle deviates from the ParticleSystem's default dimensions (i.e. More...
|
|
void | resetDimensions () |
| Utility method to reset this particle. More...
|
|
void | setDimensions (Real width, Real height) |
| Sets the width and height for this particle. More...
|
|
void | setRotation (const Radian &rad) |
| Sets the current rotation. More...
|
|
Abstract class defining the interface to be implemented by particle emitters.
- Because there are so many types of emitters you could use, OGRE chooses not to dictate the available types. It comes with some in-built, but allows plugins or applications to extend the emitter types available. This is done by subclassing ParticleEmitter to have the appropriate emission behaviour you want, and also creating a subclass of ParticleEmitterFactory which is responsible for creating instances of your new emitter type. You register this factory with the ParticleSystemManager using addEmitterFactory, and from then on emitters of this type can be created either from code or through text particle scripts by naming the type.
- This same approach is used for ParticleAffectors (which modify existing particles per frame). This means that OGRE is particularly flexible when it comes to creating particle system effects, with literally infinite combinations of emitter and affector types, and parameters within those types.