#include <OgreParticleEmitter.h>
Inheritance diagram for Ogre::ParticleEmitter:
Public Methods | |
ParticleEmitter () | |
virtual | ~ParticleEmitter () |
Virtual destructor essential. | |
virtual void | setPosition (const Vector3 &pos) |
Sets the position of this emitter relative to the particle system center. | |
virtual const Vector3 & | getPosition (void) const |
Returns the position of this emitter relative to thte center of the particle system. | |
virtual void | setDirection (const Vector3 &direction) |
Sets the direction of the emitter. | |
virtual const Vector3 & | getDirection (void) const |
Returns the base direction of the emitter. | |
virtual void | setAngle (const Radian &angle) |
Sets the maximum angle away from the emitter direction which particle will be emitted. | |
virtual const Radian & | getAngle (void) const |
Returns the maximum angle which the initial particle direction can deviate from the emitters base direction. | |
virtual void | setParticleVelocity (Real speed) |
Sets the initial velocity of particles emitted. | |
virtual void | setParticleVelocity (Real min, Real max) |
Sets the initial velocity range of particles emitted. | |
virtual void | setMinParticleVelocity (Real min) |
Returns the minimum particle velocity. | |
virtual void | setMaxParticleVelocity (Real max) |
Returns the maximum particle velocity. | |
virtual Real | getParticleVelocity (void) const |
Returns the initial velocity of particles emitted. | |
virtual Real | getMinParticleVelocity (void) const |
Returns the minimum particle velocity. | |
virtual Real | getMaxParticleVelocity (void) const |
Returns the maximum particle velocity. | |
virtual void | setEmissionRate (Real particlesPerSecond) |
Sets the emission rate for this emitter. | |
virtual Real | getEmissionRate (void) const |
Returns the emission rate set for this emitter. | |
virtual void | setTimeToLive (Real ttl) |
Sets the lifetime of all particles emitted. | |
virtual void | setTimeToLive (Real minTtl, Real maxTtl) |
Sets the range of lifetime for particles emitted. | |
virtual void | setMinTimeToLive (Real min) |
Sets the minimum time each particle will live for. | |
virtual void | setMaxTimeToLive (Real max) |
Sets the maximum time each particle will live for. | |
virtual Real | getTimeToLive (void) const |
Gets the time each particle will live for. | |
virtual Real | getMinTimeToLive (void) const |
Gets the minimum time each particle will live for. | |
virtual Real | getMaxTimeToLive (void) const |
Gets the maximum time each particle will live for. | |
virtual void | setColour (const ColourValue &colour) |
Sets the initial colour of particles emitted. | |
virtual void | setColour (const ColourValue &colourStart, const ColourValue &colourEnd) |
Sets the range of colours for emitted particles. | |
virtual void | setColourRangeStart (const ColourValue &colour) |
Sets the minimum colour of particles to be emitted. | |
virtual void | setColourRangeEnd (const ColourValue &colour) |
Sets the maximum colour of particles to be emitted. | |
virtual const ColourValue & | getColour (void) const |
Gets the colour of particles to be emitted. | |
virtual const ColourValue & | getColourRangeStart (void) const |
Gets the minimum colour of particles to be emitted. | |
virtual const ColourValue & | getColourRangeEnd (void) const |
Gets the maximum colour of particles to be emitted. | |
virtual unsigned short | _getEmissionCount (Real timeElapsed)=0 |
Gets the number of particles which this emitter would like to emit based on the time elapsed. | |
virtual void | _initParticle (Particle *pParticle) |
Initialises a particle based on the emitter's approach and parameters. | |
String | getType (void) |
Returns the name of the type of emitter. | |
virtual void | setEnabled (bool enabled) |
Sets whether or not the emitter is enabled. | |
virtual bool | getEnabled (void) const |
Gets the flag indicating if this emitter is enabled or not. | |
virtual void | setStartTime (Real startTime) |
Sets the 'start time' of this emitter. | |
virtual Real | getStartTime (void) const |
Gets the start time of the emitter. | |
virtual void | setDuration (Real duration) |
Sets the duration of the emitter. | |
virtual Real | getDuration (void) const |
Gets the duration of the emitter from when it is created or re-enabled. | |
virtual void | setDuration (Real min, Real max) |
Sets the range of random duration for this emitter. | |
virtual void | setMinDuration (Real min) |
Sets the minimum duration of this emitter in seconds (see setDuration for more details). | |
virtual void | setMaxDuration (Real max) |
Sets the maximum duration of this emitter in seconds (see setDuration for more details). | |
virtual Real | getMinDuration (void) const |
Gets the minimum duration of this emitter in seconds (see setDuration for more details). | |
virtual Real | getMaxDuration (void) const |
Gets the maximum duration of this emitter in seconds (see setDuration for more details). | |
virtual void | setRepeatDelay (Real duration) |
Sets the time between repeats of the emitter. | |
virtual Real | getRepeatDelay (void) const |
Gets the duration of the emitter from when it is created or re-enabled. | |
virtual void | setRepeatDelay (Real min, Real max) |
Sets the range of random duration for this emitter. | |
virtual void | setMinRepeatDelay (Real min) |
Sets the minimum duration of this emitter in seconds (see setRepeatDelay for more details). | |
virtual void | setMaxRepeatDelay (Real max) |
Sets the maximum duration of this emitter in seconds (see setRepeatDelay for more details). | |
virtual Real | getMinRepeatDelay (void) const |
Gets the minimum duration of this emitter in seconds (see setRepeatDelay for more details). | |
virtual Real | getMaxRepeatDelay (void) const |
Gets the maximum duration of this emitter in seconds (see setRepeatDelay for more details). | |
ParamDictionary * | getParamDictionary (void) |
Retrieves the parameter dictionary for this class. | |
const ParamDictionary * | getParamDictionary (void) const |
const ParameterList & | getParameters (void) const |
Retrieves a list of parameters valid for this object. | |
virtual bool | setParameter (const String &name, const String &value) |
Generic parameter setting method. | |
virtual String | getParameter (const String &name) const |
Generic parameter retrieval method. | |
virtual void | copyParametersTo (StringInterface *dest) const |
Method for copying this object's parameters to another object. | |
Static Public Methods | |
void | cleanupDictionary () |
Cleans up the static 'msDictionary' required to reset Ogre, otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the ResourceManager implementers (e.g. | |
Protected Methods | |
virtual void | genEmissionDirection (Vector3 &destVector) |
Internal utility method for generating particle exit direction. | |
virtual void | genEmissionVelocity (Vector3 &destVector) |
Internal utility method to apply velocity to a particle direction. | |
virtual Real | genEmissionTTL (void) |
Internal utility method for generating a time-to-live for a particle. | |
virtual void | genEmissionColour (ColourValue &destColour) |
Internal utility method for generating a colour for a particle. | |
virtual unsigned short | genConstantEmissionCount (Real timeElapsed) |
Internal utility method for generating an emission count based on a constant emission rate. | |
void | addBaseParameters (void) |
Internal method for setting up the basic parameter definitions for a subclass. | |
void | initDurationRepeat (void) |
Internal method for initialising the duration & repeat of an emitter. | |
bool | createParamDictionary (const String &className) |
Internal method for creating a parameter dictionary for the class, if it does not already exist. | |
Protected Attributes | |
Vector3 | mPosition |
Position relative to the center of the ParticleSystem. | |
Real | mEmissionRate |
Rate in particles per second at which this emitter wishes to emit particles. | |
String | mType |
Name of the type of emitter, MUST be initialised by subclasses. | |
Vector3 | mDirection |
Base direction of the emitter, may not be used by some emitters. | |
Vector3 | mUp |
Radian | mAngle |
Angle around direction which particles may be emitted, internally radians but angleunits for interface. | |
Real | mMinSpeed |
Min speed of particles. | |
Real | mMaxSpeed |
Max speed of particles. | |
Real | mMinTTL |
Initial time-to-live of particles (min). | |
Real | mMaxTTL |
Initial time-to-live of particles (max). | |
ColourValue | mColourRangeStart |
Initial colour of particles (range start). | |
ColourValue | mColourRangeEnd |
Initial colour of particles (range end). | |
bool | mEnabled |
Whether this emitter is currently enabled (defaults to true). | |
Real | mStartTime |
Start time (in seconds from start of first call to ParticleSystem to update). | |
Real | mDurationMin |
Minimum length of time emitter will run for (0 = forever). | |
Real | mDurationMax |
Maximum length of time the emitter will run for (0 = forever). | |
Real | mDurationRemain |
Current duration remainder. | |
Real | mRepeatDelayMin |
Time between each repeat. | |
Real | mRepeatDelayMax |
Real | mRepeatDelayRemain |
Repeat delay left. | |
Real | mRemainder |
String | mParamDictName |
Class name for this instance to be used as a lookup (must be initialised by subclasses). | |
Static Protected Attributes | |
EmitterCommands::CmdAngle | msAngleCmd |
EmitterCommands::CmdColour | msColourCmd |
EmitterCommands::CmdColourRangeStart | msColourRangeStartCmd |
EmitterCommands::CmdColourRangeEnd | msColourRangeEndCmd |
EmitterCommands::CmdDirection | msDirectionCmd |
EmitterCommands::CmdEmissionRate | msEmissionRateCmd |
EmitterCommands::CmdMaxTTL | msMaxTTLCmd |
EmitterCommands::CmdMaxVelocity | msMaxVelocityCmd |
EmitterCommands::CmdMinTTL | msMinTTLCmd |
EmitterCommands::CmdMinVelocity | msMinVelocityCmd |
EmitterCommands::CmdPosition | msPositionCmd |
EmitterCommands::CmdTTL | msTTLCmd |
EmitterCommands::CmdVelocity | msVelocityCmd |
EmitterCommands::CmdDuration | msDurationCmd |
EmitterCommands::CmdMinDuration | msMinDurationCmd |
EmitterCommands::CmdMaxDuration | msMaxDurationCmd |
EmitterCommands::CmdRepeatDelay | msRepeatDelayCmd |
EmitterCommands::CmdMinRepeatDelay | msMinRepeatDelayCmd |
EmitterCommands::CmdMaxRepeatDelay | msMaxRepeatDelayCmd |
ParamDictionaryMap | msDictionary |
Dictionary of parameters. |
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 paramters within those types.
Definition at line 62 of file OgreParticleEmitter.h.
|
Definition at line 54 of file OgreParticleEmitter.cpp. References mAngle, mColourRangeEnd, mColourRangeStart, mEmissionRate, mEnabled, mMaxSpeed, mMaxTTL, mMinSpeed, mMinTTL, mPosition, mRemainder, and setDirection(). |
|
Virtual destructor essential.
Definition at line 77 of file OgreParticleEmitter.cpp. |
|
Gets the number of particles which this emitter would like to emit based on the time elapsed.
Implemented in Ogre::AreaEmitter, and Ogre::PointEmitter. |
|
Initialises a particle based on the emitter's approach and parameters.
Reimplemented in Ogre::BoxEmitter, Ogre::CylinderEmitter, Ogre::EllipsoidEmitter, Ogre::HollowEllipsoidEmitter, Ogre::PointEmitter, and Ogre::RingEmitter. Definition at line 358 of file OgreParticleEmitter.h. References Ogre::Billboard::resetDimensions(). |
|
Internal method for setting up the basic parameter definitions for a subclass.
Definition at line 273 of file OgreParticleEmitter.cpp. References Ogre::ParamDictionary::addParameter(), Ogre::StringInterface::getParamDictionary(), msAngleCmd, msColourCmd, msColourRangeEndCmd, msColourRangeStartCmd, msDirectionCmd, msDurationCmd, msEmissionRateCmd, msMaxDurationCmd, msMaxRepeatDelayCmd, msMaxTTLCmd, msMaxVelocityCmd, msMinDurationCmd, msMinRepeatDelayCmd, msMinTTLCmd, msMinVelocityCmd, msPositionCmd, msRepeatDelayCmd, msTTLCmd, msVelocityCmd, Ogre::PT_COLOURVALUE, Ogre::PT_REAL, and Ogre::PT_VECTOR3. Referenced by Ogre::AreaEmitter::initDefaults(), and Ogre::PointEmitter::PointEmitter(). |
|
Cleans up the static 'msDictionary' required to reset Ogre, otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the ResourceManager implementers (e.g. MaterialManager) initializes. Definition at line 53 of file OgreStringInterface.cpp. References Ogre::StringInterface::msDictionary. |
|
Method for copying this object's parameters to another object.
Definition at line 293 of file OgreStringInterface.h. References Ogre::ParamDictionary::mParamDefs, and Ogre::StringInterface::setParameter(). Referenced by Ogre::GuiElement::clone(), Ogre::GuiElement::copyFromTemplate(), Ogre::GuiContainer::copyFromTemplate(), and Ogre::ParticleSystem::operator=(). |
|
|
Internal utility method for generating an emission count based on a constant emission rate.
Definition at line 207 of file OgreParticleEmitter.cpp. References mDurationRemain, mEmissionRate, mRemainder, mRepeatDelayRemain, mStartTime, Ogre::Real, and setEnabled(). Referenced by Ogre::PointEmitter::_getEmissionCount(), and Ogre::AreaEmitter::_getEmissionCount(). |
|
Internal utility method for generating a colour for a particle.
Definition at line 256 of file OgreParticleEmitter.cpp. References Ogre::ColourValue::a, Ogre::ColourValue::b, Ogre::ColourValue::g, mColourRangeEnd, mColourRangeStart, and Ogre::ColourValue::r. Referenced by Ogre::RingEmitter::_initParticle(), Ogre::PointEmitter::_initParticle(), Ogre::HollowEllipsoidEmitter::_initParticle(), Ogre::EllipsoidEmitter::_initParticle(), Ogre::CylinderEmitter::_initParticle(), and Ogre::BoxEmitter::_initParticle(). |
|
Internal utility method for generating particle exit direction.
Definition at line 159 of file OgreParticleEmitter.cpp. References mAngle, mDirection, mUp, and Ogre::Vector3::randomDeviant(). Referenced by Ogre::RingEmitter::_initParticle(), Ogre::PointEmitter::_initParticle(), Ogre::HollowEllipsoidEmitter::_initParticle(), Ogre::EllipsoidEmitter::_initParticle(), Ogre::CylinderEmitter::_initParticle(), and Ogre::BoxEmitter::_initParticle(). |
|
Internal utility method for generating a time-to-live for a particle.
Definition at line 195 of file OgreParticleEmitter.cpp. References mMaxTTL, mMinTTL, and Ogre::Real. Referenced by Ogre::RingEmitter::_initParticle(), Ogre::PointEmitter::_initParticle(), Ogre::HollowEllipsoidEmitter::_initParticle(), Ogre::EllipsoidEmitter::_initParticle(), Ogre::CylinderEmitter::_initParticle(), and Ogre::BoxEmitter::_initParticle(). |
|
Internal utility method to apply velocity to a particle direction.
Definition at line 180 of file OgreParticleEmitter.cpp. References mMaxSpeed, mMinSpeed, and Ogre::Real. Referenced by Ogre::RingEmitter::_initParticle(), Ogre::PointEmitter::_initParticle(), Ogre::HollowEllipsoidEmitter::_initParticle(), Ogre::EllipsoidEmitter::_initParticle(), Ogre::CylinderEmitter::_initParticle(), and Ogre::BoxEmitter::_initParticle(). |
|
Returns the maximum angle which the initial particle direction can deviate from the emitters base direction.
Definition at line 111 of file OgreParticleEmitter.cpp. References mAngle. |
|
Gets the colour of particles to be emitted.
Definition at line 405 of file OgreParticleEmitter.cpp. References mColourRangeStart. |
|
Gets the maximum colour of particles to be emitted.
Definition at line 415 of file OgreParticleEmitter.cpp. References mColourRangeEnd. |
|
Gets the minimum colour of particles to be emitted.
Definition at line 410 of file OgreParticleEmitter.cpp. References mColourRangeStart. |
|
Returns the base direction of the emitter.
Definition at line 100 of file OgreParticleEmitter.cpp. References mDirection. |
|
Gets the duration of the emitter from when it is created or re-enabled.
Definition at line 458 of file OgreParticleEmitter.cpp. References mDurationMin, and Ogre::Real. |
|
Returns the emission rate set for this emitter.
Definition at line 132 of file OgreParticleEmitter.cpp. References mEmissionRate, and Ogre::Real. |
|
Gets the flag indicating if this emitter is enabled or not.
Definition at line 437 of file OgreParticleEmitter.cpp. References mEnabled. |
|
Gets the maximum duration of this emitter in seconds (see setDuration for more details).
Definition at line 544 of file OgreParticleEmitter.cpp. References mDurationMax, and Ogre::Real. |
|
Returns the maximum particle velocity.
Definition at line 365 of file OgreParticleEmitter.cpp. References mMaxSpeed, and Ogre::Real. |
|
Gets the maximum duration of this emitter in seconds (see setRepeatDelay for more details).
Definition at line 554 of file OgreParticleEmitter.cpp. References mRepeatDelayMax, and Ogre::Real. |
|
Gets the maximum time each particle will live for.
Definition at line 390 of file OgreParticleEmitter.cpp. References mMaxTTL, and Ogre::Real. |
|
Gets the minimum duration of this emitter in seconds (see setDuration for more details).
Definition at line 539 of file OgreParticleEmitter.cpp. References mDurationMin, and Ogre::Real. |
|
Returns the minimum particle velocity.
Definition at line 360 of file OgreParticleEmitter.cpp. References mMinSpeed, and Ogre::Real. |
|
Gets the minimum duration of this emitter in seconds (see setRepeatDelay for more details).
Definition at line 549 of file OgreParticleEmitter.cpp. References mRepeatDelayMin, and Ogre::Real. |
|
Gets the minimum time each particle will live for.
Definition at line 385 of file OgreParticleEmitter.cpp. References mMinTTL, and Ogre::Real. |
|
Definition at line 206 of file OgreStringInterface.h. |
|
Retrieves the parameter dictionary for this class.
Definition at line 193 of file OgreStringInterface.h. Referenced by Ogre::TTYGuiElement::addBaseParameters(), Ogre::TextBoxGuiElement::addBaseParameters(), Ogre::TextAreaGuiElement::addBaseParameters(), Ogre::ScrollBarGuiElement::addBaseParameters(), Ogre::PopupMenuGuiElement::addBaseParameters(), addBaseParameters(), Ogre::PanelGuiElement::addBaseParameters(), Ogre::ListGuiElement::addBaseParameters(), Ogre::GuiElement::addBaseParameters(), Ogre::CursorGuiElement::addBaseParameters(), Ogre::ButtonGuiElement::addBaseParameters(), Ogre::BorderPanelGuiElement::addBaseParameters(), Ogre::BorderButtonGuiElement::addBaseParameters(), Ogre::ExternalTextureSource::addBaseParams(), Ogre::CgProgram::CgProgram(), Ogre::ColourFaderAffector::ColourFaderAffector(), Ogre::ColourFaderAffector2::ColourFaderAffector2(), Ogre::ColourImageAffector::ColourImageAffector(), Ogre::ColourInterpolatorAffector::ColourInterpolatorAffector(), Ogre::D3D9HLSLProgram::D3D9HLSLProgram(), Ogre::GLSLProgram::GLSLProgram(), Ogre::HollowEllipsoidEmitter::HollowEllipsoidEmitter(), Ogre::AreaEmitter::initDefaults(), Ogre::ParticleSystem::initParameters(), Ogre::LinearForceAffector::LinearForceAffector(), Ogre::RingEmitter::RingEmitter(), Ogre::RotationAffector::RotationAffector(), Ogre::ScaleAffector::ScaleAffector(), and Ogre::StringInterface::setParameter(). |
|
Generic parameter retrieval method.
Definition at line 262 of file OgreStringInterface.h. References Ogre::ParamCommand::doGet(), Ogre::ParamDictionary::getParamCommand(), and Ogre::String. |
|
Retrieves a list of parameters valid for this object.
Definition at line 224 of file OgreStringInterface.h. References Ogre::ParamDictionary::getParameters(), and Ogre::ParameterList. |
|
Returns the initial velocity of particles emitted.
Definition at line 355 of file OgreParticleEmitter.cpp. References mMinSpeed, and Ogre::Real. |
|
Returns the position of this emitter relative to thte center of the particle system.
Definition at line 86 of file OgreParticleEmitter.cpp. References mPosition. |
|
Gets the duration of the emitter from when it is created or re-enabled.
Definition at line 515 of file OgreParticleEmitter.cpp. References mRepeatDelayMin, and Ogre::Real. |
|
Gets the start time of the emitter.
Definition at line 448 of file OgreParticleEmitter.cpp. References mStartTime, and Ogre::Real. |
|
Gets the time each particle will live for.
Definition at line 380 of file OgreParticleEmitter.cpp. References mMinTTL, and Ogre::Real. |
|
Returns the name of the type of emitter.
Definition at line 369 of file OgreParticleEmitter.h. References Ogre::String. Referenced by Ogre::ParticleSystemManager::_destroyEmitter(), Ogre::ParticleSystem::operator=(), and Ogre::ParticleSystemManager::parseEmitterAttrib(). |
|
Internal method for initialising the duration & repeat of an emitter.
Definition at line 482 of file OgreParticleEmitter.cpp. References mDurationMax, mDurationMin, mDurationRemain, mRepeatDelayMax, mRepeatDelayMin, and mRepeatDelayRemain. Referenced by setDuration(), setEnabled(), setMaxDuration(), setMaxRepeatDelay(), setMinDuration(), setMinRepeatDelay(), and setRepeatDelay(). |
|
Sets the maximum angle away from the emitter direction which particle will be emitted.
Definition at line 105 of file OgreParticleEmitter.cpp. References mAngle. |
|
Sets the range of colours for emitted particles.
Definition at line 153 of file OgreParticleEmitter.cpp. References mColourRangeEnd, and mColourRangeStart. |
|
Sets the initial colour of particles emitted.
Definition at line 148 of file OgreParticleEmitter.cpp. References mColourRangeEnd, and mColourRangeStart. |
|
Sets the maximum colour of particles to be emitted.
Definition at line 425 of file OgreParticleEmitter.cpp. References mColourRangeEnd. |
|
Sets the minimum colour of particles to be emitted.
Definition at line 420 of file OgreParticleEmitter.cpp. References mColourRangeStart. |
|
Sets the direction of the emitter.
Reimplemented in Ogre::AreaEmitter. Definition at line 91 of file OgreParticleEmitter.cpp. References mDirection, mUp, Ogre::Vector3::normalise(), and Ogre::Vector3::perpendicular(). Referenced by ParticleEmitter(). |
|
Sets the range of random duration for this emitter.
Definition at line 463 of file OgreParticleEmitter.cpp. References initDurationRepeat(), mDurationMax, mDurationMin, and Ogre::Real. |
|
Sets the duration of the emitter.
Definition at line 453 of file OgreParticleEmitter.cpp. References Ogre::Real. |
|
Sets the emission rate for this emitter.
Definition at line 127 of file OgreParticleEmitter.cpp. References mEmissionRate, and Ogre::Real. |
|
Sets whether or not the emitter is enabled.
Definition at line 430 of file OgreParticleEmitter.cpp. References initDurationRepeat(), and mEnabled. Referenced by genConstantEmissionCount(), and setStartTime(). |
|
Sets the maximum duration of this emitter in seconds (see setDuration for more details).
Definition at line 476 of file OgreParticleEmitter.cpp. References initDurationRepeat(), mDurationMax, and Ogre::Real. |
|
Returns the maximum particle velocity.
Definition at line 375 of file OgreParticleEmitter.cpp. References mMaxSpeed, and Ogre::Real. |
|
Sets the maximum duration of this emitter in seconds (see setRepeatDelay for more details).
Definition at line 533 of file OgreParticleEmitter.cpp. References initDurationRepeat(), mRepeatDelayMax, and Ogre::Real. |
|
Sets the maximum time each particle will live for.
Definition at line 400 of file OgreParticleEmitter.cpp. References mMaxTTL, and Ogre::Real. |
|
Sets the minimum duration of this emitter in seconds (see setDuration for more details).
Definition at line 470 of file OgreParticleEmitter.cpp. References initDurationRepeat(), mDurationMin, and Ogre::Real. |
|
Returns the minimum particle velocity.
Definition at line 370 of file OgreParticleEmitter.cpp. References mMinSpeed, and Ogre::Real. |
|
Sets the minimum duration of this emitter in seconds (see setRepeatDelay for more details).
Definition at line 527 of file OgreParticleEmitter.cpp. References initDurationRepeat(), mRepeatDelayMin, and Ogre::Real. |
|
Sets the minimum time each particle will live for.
Definition at line 395 of file OgreParticleEmitter.cpp. References mMinTTL, and Ogre::Real. |
|
Generic parameter setting method.
Definition at line 33 of file OgreStringInterface.cpp. References Ogre::ParamCommand::doSet(), Ogre::ParamDictionary::getParamCommand(), Ogre::StringInterface::getParamDictionary(), and Ogre::String. Referenced by Ogre::StringInterface::copyParametersTo(), Ogre::Profiler::createContainer(), Ogre::Profiler::createTextArea(), Ogre::MaterialSerializer::finishProgramDefinition(), Ogre::ParticleSystemManager::parseAffectorAttrib(), Ogre::ParticleSystemManager::parseAttrib(), Ogre::OverlayManager::parseElementAttrib(), and Ogre::ParticleSystemManager::parseEmitterAttrib(). |
|
Sets the initial velocity range of particles emitted.
Definition at line 121 of file OgreParticleEmitter.cpp. References mMaxSpeed, mMinSpeed, and Ogre::Real. |
|
Sets the initial velocity of particles emitted.
Definition at line 116 of file OgreParticleEmitter.cpp. References mMaxSpeed, mMinSpeed, and Ogre::Real. |
|
Sets the position of this emitter relative to the particle system center.
Definition at line 81 of file OgreParticleEmitter.cpp. References mPosition. |
|
Sets the range of random duration for this emitter.
Definition at line 520 of file OgreParticleEmitter.cpp. References initDurationRepeat(), mRepeatDelayMax, mRepeatDelayMin, and Ogre::Real. |
|
Sets the time between repeats of the emitter.
Definition at line 510 of file OgreParticleEmitter.cpp. References Ogre::Real. |
|
Sets the 'start time' of this emitter.
Definition at line 442 of file OgreParticleEmitter.cpp. References mStartTime, Ogre::Real, and setEnabled(). |
|
Sets the range of lifetime for particles emitted.
Definition at line 142 of file OgreParticleEmitter.cpp. References mMaxTTL, mMinTTL, and Ogre::Real. |
|
Sets the lifetime of all particles emitted.
Definition at line 137 of file OgreParticleEmitter.cpp. References mMaxTTL, mMinTTL, and Ogre::Real. |
|
Angle around direction which particles may be emitted, internally radians but angleunits for interface.
Definition at line 99 of file OgreParticleEmitter.h. Referenced by genEmissionDirection(), getAngle(), ParticleEmitter(), and setAngle(). |
|
Initial colour of particles (range end).
Definition at line 111 of file OgreParticleEmitter.h. Referenced by genEmissionColour(), getColourRangeEnd(), ParticleEmitter(), setColour(), and setColourRangeEnd(). |
|
Initial colour of particles (range start).
Definition at line 109 of file OgreParticleEmitter.h. Referenced by genEmissionColour(), getColour(), getColourRangeStart(), ParticleEmitter(), setColour(), and setColourRangeStart(). |
|
Base direction of the emitter, may not be used by some emitters.
Definition at line 95 of file OgreParticleEmitter.h. Referenced by Ogre::AreaEmitter::genAreaAxes(), genEmissionDirection(), getDirection(), Ogre::AreaEmitter::initDefaults(), and setDirection(). |
|
Maximum length of time the emitter will run for (0 = forever).
Definition at line 121 of file OgreParticleEmitter.h. Referenced by getMaxDuration(), initDurationRepeat(), setDuration(), and setMaxDuration(). |
|
Minimum length of time emitter will run for (0 = forever).
Definition at line 119 of file OgreParticleEmitter.h. Referenced by getDuration(), getMinDuration(), initDurationRepeat(), setDuration(), and setMinDuration(). |
|
Current duration remainder.
Definition at line 123 of file OgreParticleEmitter.h. Referenced by genConstantEmissionCount(), and initDurationRepeat(). |
|
Rate in particles per second at which this emitter wishes to emit particles.
Definition at line 91 of file OgreParticleEmitter.h. Referenced by genConstantEmissionCount(), getEmissionRate(), ParticleEmitter(), and setEmissionRate(). |
|
Whether this emitter is currently enabled (defaults to true).
Definition at line 114 of file OgreParticleEmitter.h. Referenced by getEnabled(), ParticleEmitter(), and setEnabled(). |
|
Max speed of particles.
Definition at line 103 of file OgreParticleEmitter.h. Referenced by genEmissionVelocity(), getMaxParticleVelocity(), ParticleEmitter(), setMaxParticleVelocity(), and setParticleVelocity(). |
|
Initial time-to-live of particles (max).
Definition at line 107 of file OgreParticleEmitter.h. Referenced by genEmissionTTL(), getMaxTimeToLive(), ParticleEmitter(), setMaxTimeToLive(), and setTimeToLive(). |
|
Min speed of particles.
Definition at line 101 of file OgreParticleEmitter.h. Referenced by genEmissionVelocity(), getMinParticleVelocity(), getParticleVelocity(), ParticleEmitter(), setMinParticleVelocity(), and setParticleVelocity(). |
|
Initial time-to-live of particles (min).
Definition at line 105 of file OgreParticleEmitter.h. Referenced by genEmissionTTL(), getMinTimeToLive(), getTimeToLive(), ParticleEmitter(), setMinTimeToLive(), and setTimeToLive(). |
|
Class name for this instance to be used as a lookup (must be initialised by subclasses).
Definition at line 157 of file OgreStringInterface.h. |
|
Position relative to the center of the ParticleSystem.
Definition at line 89 of file OgreParticleEmitter.h. Referenced by Ogre::RingEmitter::_initParticle(), Ogre::PointEmitter::_initParticle(), Ogre::HollowEllipsoidEmitter::_initParticle(), Ogre::EllipsoidEmitter::_initParticle(), Ogre::CylinderEmitter::_initParticle(), Ogre::BoxEmitter::_initParticle(), getPosition(), ParticleEmitter(), and setPosition(). |
|
Definition at line 132 of file OgreParticleEmitter.h. Referenced by genConstantEmissionCount(), and ParticleEmitter(). |
|
Definition at line 127 of file OgreParticleEmitter.h. Referenced by getMaxRepeatDelay(), initDurationRepeat(), setMaxRepeatDelay(), and setRepeatDelay(). |
|
Time between each repeat.
Definition at line 126 of file OgreParticleEmitter.h. Referenced by getMinRepeatDelay(), getRepeatDelay(), initDurationRepeat(), setMinRepeatDelay(), and setRepeatDelay(). |
|
Repeat delay left.
Definition at line 129 of file OgreParticleEmitter.h. Referenced by genConstantEmissionCount(), and initDurationRepeat(). |
|
Definition at line 32 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Definition at line 33 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Definition at line 35 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Definition at line 34 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Dictionary of parameters.
Definition at line 30 of file OgreStringInterface.cpp. Referenced by Ogre::StringInterface::cleanupDictionary(). |
|
Definition at line 36 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Definition at line 45 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Definition at line 37 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Definition at line 47 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Definition at line 50 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Definition at line 38 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Definition at line 39 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Definition at line 46 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Definition at line 49 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Definition at line 40 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Definition at line 41 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Definition at line 42 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Definition at line 48 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Start time (in seconds from start of first call to ParticleSystem to update).
Definition at line 117 of file OgreParticleEmitter.h. Referenced by genConstantEmissionCount(), getStartTime(), and setStartTime(). |
|
Definition at line 43 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Definition at line 44 of file OgreParticleEmitter.cpp. Referenced by addBaseParameters(). |
|
Name of the type of emitter, MUST be initialised by subclasses.
Definition at line 93 of file OgreParticleEmitter.h. Referenced by Ogre::AreaEmitter::initDefaults(), and Ogre::PointEmitter::PointEmitter(). |
|
Definition at line 97 of file OgreParticleEmitter.h. Referenced by Ogre::AreaEmitter::genAreaAxes(), genEmissionDirection(), Ogre::AreaEmitter::initDefaults(), and setDirection(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:51:21 2004