Class defining particle system based special effects. More...
#include <OgreParticleSystem.h>
Classes | |
class | CmdCull |
Command object for cull_each (see ParamCommand). More... | |
class | CmdEmittedEmitterQuota |
Command object for emittedEmitterQuota (see ParamCommand). More... | |
class | CmdHeight |
Command object for particle_height (see ParamCommand). More... | |
class | CmdIterationInterval |
Command object for iteration interval(see ParamCommand). More... | |
class | CmdLocalSpace |
Command object for local space (see ParamCommand). More... | |
class | CmdMaterial |
Command object for material (see ParamCommand). More... | |
class | CmdNonvisibleTimeout |
Command object for nonvisible timeout (see ParamCommand). More... | |
class | CmdQuota |
Command object for quota (see ParamCommand). More... | |
class | CmdRenderer |
Command object for renderer (see ParamCommand). More... | |
class | CmdSorted |
Command object for sorting (see ParamCommand). More... | |
class | CmdWidth |
Command object for particle_width (see ParamCommand). More... | |
struct | SortByDirectionFunctor |
Sort by direction functor. More... | |
struct | SortByDistanceFunctor |
Sort by distance functor. More... | |
Public Types | |
typedef vector < ShadowRenderable * >::type | ShadowRenderableList |
typedef VectorIterator < ShadowRenderableList > | ShadowRenderableListIterator |
Public Member Functions | |
ParticleSystem () | |
Default constructor required for STL creation in manager. More... | |
ParticleSystem (const String &name, const String &resourceGroupName) | |
Creates a particle system with no emitters or affectors. More... | |
virtual | ~ParticleSystem () |
virtual MovableObjectFactory * | _getCreator (void) const |
Get the creator of this object, if any (internal use only) More... | |
ParticleIterator | _getIterator (void) |
Returns an iterator for stepping through all particles in this system. More... | |
virtual LightList * | _getLightList () |
Returns a pointer to the current list of lights for this object. More... | |
virtual SceneManager * | _getManager (void) const |
Get the manager of this object, if any (internal use only) More... | |
virtual const Matrix4 & | _getParentNodeFullTransform (void) const |
return the full transformation of the parent sceneNode or the attachingPoint node More... | |
void | _notifyAttached (Node *parent, bool isTagPoint=false) |
Overridden from MovableObject. More... | |
virtual void | _notifyCreator (MovableObjectFactory *fact) |
Notify the object of it's creator (internal use only) More... | |
virtual void | _notifyCurrentCamera (Camera *cam) |
Overridden from MovableObject. More... | |
virtual void | _notifyManager (SceneManager *man) |
Notify the object of it's manager (internal use only) More... | |
virtual void | _notifyMoved (void) |
Internal method called to notify the object that it has been moved. More... | |
void | _notifyOrigin (const String &origin) |
Notify this particle system of it's origin. More... | |
virtual void | _notifyParticleResized (void) |
Internal callback used by Particles to notify their parent that they have been resized. More... | |
virtual void | _notifyParticleRotated (void) |
Internal callback used by Particles to notify their parent that they have been rotated. More... | |
void | _update (Real timeElapsed) |
Updates the particles in the system based on time elapsed. More... | |
void | _updateBounds (void) |
Internal method for updating the bounds of the particle system. More... | |
virtual void | _updateRenderQueue (RenderQueue *queue) |
Overridden from MovableObject. More... | |
ParticleAffector * | addAffector (const String &affectorType) |
Adds an affector to this particle system. More... | |
ParticleEmitter * | addEmitter (const String &emitterType) |
Adds an emitter to this particle system. More... | |
virtual void | addQueryFlags (uint32 flags) |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object. More... | |
virtual void | addVisibilityFlags (uint32 flags) |
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object. More... | |
void | clear () |
Empties this set of all particles. More... | |
virtual void | copyParametersTo (StringInterface *dest) const |
Method for copying this object's parameters to another object. More... | |
virtual AnimableValuePtr | createAnimableValue (const String &valueName) |
Create a reference-counted AnimableValuePtr for the named value. More... | |
Particle * | createEmitterParticle (const String &emitterName) |
Manually add an emitter particle to the system. More... | |
Particle * | createParticle (void) |
Manually add a particle to the system. More... | |
virtual void | detachFromParent (void) |
Detaches an object from a parent SceneNode or TagPoint, if attached. More... | |
void | fastForward (Real time, Real interval=0.1) |
Fast-forwards this system by the required number of seconds. More... | |
ParticleAffector * | getAffector (unsigned short index) const |
Retrieves an affector by it's index (zero-based). More... | |
const StringVector & | getAnimableValueNames (void) const |
Gets a list of animable value names for this object. More... | |
virtual const AxisAlignedBox & | getBoundingBox (void) const |
Overridden from MovableObject. More... | |
virtual Real | getBoundingRadius (void) const |
Overridden from MovableObject. More... | |
bool | getCastShadows (void) const |
Returns whether shadow casting is enabled for this object. More... | |
virtual bool | getCullIndividually (void) const |
Returns whether or not particles in this are tested individually for culling. More... | |
const AxisAlignedBox & | getDarkCapBounds (const Light &light, Real dirLightExtrusionDist) const |
Overridden member from ShadowCaster. More... | |
virtual Real | getDefaultHeight (void) const |
See setDefaultDimensions - this gets 1 component individually. More... | |
virtual Real | getDefaultWidth (void) const |
See setDefaultDimensions - this gets 1 component individually. More... | |
EdgeData * | getEdgeList (void) |
Define a default implementation of method from ShadowCaster which implements no shadows. More... | |
size_t | getEmittedEmitterQuota (void) const |
Returns the maximum number of emitted emitters this system is allowed to have active at once. More... | |
ParticleEmitter * | getEmitter (unsigned short index) const |
Retrieves an emitter by it's index (zero-based). More... | |
bool | getEmitting () const |
Returns true if the particle system emitting flag is turned on. More... | |
Real | getIterationInterval (void) const |
Gets a 'iteration interval' on this particle system. More... | |
bool | getKeepParticlesInLocalSpace (void) const |
Gets whether particles (and any affector effects) remain relative to the node the particle system is attached to. More... | |
const AxisAlignedBox & | getLightCapBounds (void) const |
Overridden member from ShadowCaster. More... | |
virtual uint32 | getLightMask () const |
Get a bitwise mask which will filter the lights affecting this object. More... | |
virtual Listener * | getListener (void) const |
Gets the current listener for this object. More... | |
virtual const String & | getMaterialName (void) const |
Sets the name of the material to be used for this billboard set. More... | |
const String & | getMovableType (void) const |
Overridden from MovableObject. More... | |
virtual const String & | getName (void) const |
Returns the name of this object. More... | |
Real | getNonVisibleUpdateTimeout (void) const |
Gets when the particle system should stop updating after it hasn't been visible for a while. More... | |
unsigned short | getNumAffectors (void) const |
Returns the number of affectors for this particle system. More... | |
unsigned short | getNumEmitters (void) const |
Returns the number of emitters for this particle system. More... | |
size_t | getNumParticles (void) const |
Gets the number of individual particles in the system right now. More... | |
const String & | getOrigin (void) const |
Get the origin of this particle system, e.g. More... | |
ParamDictionary * | getParamDictionary (void) |
Retrieves the parameter dictionary for this class. More... | |
const ParamDictionary * | getParamDictionary (void) const |
virtual String | getParameter (const String &name) const |
Generic parameter retrieval method. More... | |
const ParameterList & | getParameters (void) const |
Retrieves a list of parameters valid for this object. More... | |
virtual Node * | getParentNode (void) const |
Returns the node to which this object is attached. More... | |
virtual SceneNode * | getParentSceneNode (void) const |
Returns the scene node to which this object is attached. More... | |
Particle * | getParticle (size_t index) |
Retrieve a particle from the system for manual tweaking. More... | |
size_t | getParticleQuota (void) const |
Returns the maximum number of particles this system is allowed to have active at once. More... | |
Real | getPointExtrusionDistance (const Light *l) const |
Get the distance to extrude for a point/spot light. More... | |
virtual uint32 | getQueryFlags (void) const |
Returns the query flags relevant for this object. More... | |
bool | getReceivesShadows () |
Returns whether the Material of any Renderable that this MovableObject will add to the render queue will receive shadows. More... | |
ParticleSystemRenderer * | getRenderer (void) const |
Gets the ParticleRenderer to be used to render this particle system. More... | |
const String & | getRendererName (void) const |
Gets the name of the ParticleRenderer to be used to render this particle system. More... | |
virtual Real | getRenderingDistance (void) const |
Gets the distance at which batches are no longer rendered. More... | |
virtual Real | getRenderingMinPixelSize () const |
Returns the minimum pixel size an object needs to be in both screen axes in order to be rendered. More... | |
virtual uint8 | getRenderQueueGroup (void) const |
Gets the queue group for this entity, see setRenderQueueGroup for full details. More... | |
virtual const String & | getResourceGroupName (void) const |
Return the resource group to be used to load dependent resources. More... | |
ShadowRenderableListIterator | getShadowVolumeRenderableIterator (ShadowTechnique shadowTechnique, const Light *light, HardwareIndexBufferSharedPtr *indexBuffer, size_t *indexBufferUsedSize, bool extrudeVertices, Real extrusionDist, unsigned long flags=0) |
Define a default implementation of method from ShadowCaster which implements no shadows. More... | |
bool | getSortingEnabled (void) const |
Gets whether particles are sorted relative to the camera. More... | |
Real | getSpeedFactor (void) const |
Gets the 'speed factor' on this particle system. More... | |
uint32 | getTypeFlags (void) const |
Override to return specific type flag. More... | |
virtual OGRE_DEPRECATED const Any & | getUserAny (void) const |
UserObjectBindings & | getUserObjectBindings () |
Return an instance of user objects binding associated with this class. More... | |
const UserObjectBindings & | getUserObjectBindings () const |
Return an instance of user objects binding associated with this class. More... | |
virtual uint32 | getVisibilityFlags (void) const |
Returns the visibility flags relevant for this object. More... | |
virtual bool | getVisible (void) const |
Gets this object whether to be visible or not, if it has a renderable component. More... | |
virtual const AxisAlignedBox & | getWorldBoundingBox (bool derive=false) const |
Retrieves the axis-aligned bounding box for this object in world coordinates. More... | |
virtual const Sphere & | getWorldBoundingSphere (bool derive=false) const |
Retrieves the worldspace bounding sphere for this object. More... | |
bool | hasEdgeList (void) |
Define a default implementation of method from ShadowCaster which implements no shadows. More... | |
virtual bool | isAttached (void) const |
Returns true if this object is attached to a SceneNode or TagPoint. More... | |
virtual bool | isDebugDisplayEnabled (void) const |
Gets whether debug display of this object is enabled. More... | |
virtual bool | isInScene (void) const |
Returns true if this object is attached to a SceneNode or TagPoint, and this SceneNode / TagPoint is currently in an active part of the scene graph. More... | |
virtual bool | isParentTagPoint () const |
Gets whether the parent node is a TagPoint (or a SceneNode) More... | |
virtual bool | isVisible (void) const |
Returns whether or not this object is supposed to be visible or not. More... | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
void * | operator new[] (size_t sz) |
ParticleSystem & | operator= (const ParticleSystem &rhs) |
Assignment operator for copying. More... | |
virtual const LightList & | queryLights (void) const |
Gets a list of lights, ordered relative to how close they are to this movable object. More... | |
void | removeAffector (unsigned short index) |
Removes an affector from the system. More... | |
void | removeAllAffectors (void) |
Removes all the affectors from this system. More... | |
void | removeAllEmitters (void) |
Removes all the emitters from this system. More... | |
void | removeEmitter (unsigned short index) |
Removes an emitter from the system. More... | |
virtual void | removeQueryFlags (uint32 flags) |
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object. More... | |
virtual void | removeVisibilityFlags (uint32 flags) |
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object. More... | |
void | setBounds (const AxisAlignedBox &aabb) |
Set the (initial) bounds of the particle system manually. More... | |
void | setBoundsAutoUpdated (bool autoUpdate, Real stopIn=0.0f) |
Sets whether the bounds will be automatically updated for the life of the particle system. More... | |
void | setCastShadows (bool enabled) |
Sets whether or not this object will cast shadows. More... | |
virtual void | setCullIndividually (bool cullIndividual) |
Sets whether culling tests particles in this individually as well as in a group. More... | |
virtual void | setDebugDisplayEnabled (bool enabled) |
Sets whether or not the debug display of this object is enabled. More... | |
virtual void | setDefaultDimensions (Real width, Real height) |
Sets the default dimensions of the particles in this set. More... | |
virtual void | setDefaultHeight (Real height) |
See setDefaultDimensions - this sets 1 component individually. More... | |
virtual void | setDefaultWidth (Real width) |
See setDefaultDimensions - this sets 1 component individually. More... | |
void | setEmittedEmitterQuota (size_t quota) |
Sets the maximum number of emitted emitters this system is allowed to have active at once. More... | |
void | setEmitting (bool v) |
This is used to turn on or off particle emission for this system. More... | |
void | setIterationInterval (Real iterationInterval) |
Sets a 'iteration interval' on this particle system. More... | |
void | setKeepParticlesInLocalSpace (bool keepLocal) |
Sets whether particles (and any affector effects) remain relative to the node the particle system is attached to. More... | |
virtual void | setLightMask (uint32 lightMask) |
Set a bitwise mask which will filter the lights affecting this object. More... | |
virtual void | setListener (Listener *listener) |
Sets a listener for this object. More... | |
virtual void | setMaterialName (const String &name, const String &groupName=ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME) |
Sets the name of the material to be used for this billboard set. More... | |
void | setNonVisibleUpdateTimeout (Real timeout) |
Sets when the particle system should stop updating after it hasn't been visible for a while. 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... | |
void | setParticleQuota (size_t quota) |
Sets the maximum number of particles this system is allowed to have active at once. More... | |
virtual void | setQueryFlags (uint32 flags) |
Sets the query flags for this object. More... | |
void | setRenderer (const String &typeName) |
Sets the ParticleRenderer to be used to render this particle system. More... | |
virtual void | setRenderingDistance (Real dist) |
Sets the distance at which the object is no longer rendered. More... | |
virtual void | setRenderingMinPixelSize (Real pixelSize) |
Sets the minimum pixel size an object needs to be in both screen axes in order to be rendered. More... | |
void | setRenderQueueGroup (uint8 queueID) |
Sets the render queue group this entity will be rendered through. More... | |
void | setRenderQueueGroupAndPriority (uint8 queueID, ushort priority) |
Sets the render queue group and group priority this entity will be rendered through. More... | |
void | setSortingEnabled (bool enabled) |
Set whether or not particles are sorted according to the camera. More... | |
void | setSpeedFactor (Real speedFactor) |
Sets a 'speed factor' on this particle system, which means it scales the elapsed real time which has passed by this factor before passing it to the emitters, affectors, and the particle life calculation. More... | |
virtual OGRE_DEPRECATED void | setUserAny (const Any &anything) |
virtual void | setVisibilityFlags (uint32 flags) |
Sets the visibility flags for this object. More... | |
virtual void | setVisible (bool visible) |
Tells this object whether to be visible or not, if it has a renderable component. More... | |
void | visitRenderables (Renderable::Visitor *visitor, bool debugRenderables=false) |
Method to allow a caller to abstractly iterate over the Renderable instances that this MovableObject will add to the render queue when asked, if any. More... | |
Static Public Member Functions | |
static 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. More... | |
static void | extrudeVertices (const HardwareVertexBufferSharedPtr &vertexBuffer, size_t originalVertexCount, const Vector4 &lightPos, Real extrudeDist) |
Utility method for extruding vertices based on a light. More... | |
static Real | getDefaultIterationInterval (void) |
Get the default iteration interval for all ParticleSystem instances. More... | |
static Real | getDefaultNonVisibleUpdateTimeout (void) |
Get the default nonvisible timeout for all ParticleSystem instances. More... | |
static uint32 | getDefaultQueryFlags () |
Get the default query flags for all future MovableObject instances. More... | |
static uint32 | getDefaultVisibilityFlags () |
Get the default visibility flags for all future MovableObject instances. More... | |
static void | setDefaultIterationInterval (Real iterationInterval) |
Set the default iteration interval for all ParticleSystem instances. More... | |
static void | setDefaultNonVisibleUpdateTimeout (Real timeout) |
Set the default nonvisible timeout for all ParticleSystem instances. More... | |
static void | setDefaultQueryFlags (uint32 flags) |
Set the default query flags for all future MovableObject instances. More... | |
static void | setDefaultVisibilityFlags (uint32 flags) |
Set the default visibility flags for all future MovableObject instances. More... | |
Protected Types | |
typedef list< ParticleEmitter * > ::type | ActiveEmittedEmitterList |
typedef list< Particle * >::type | ActiveParticleList |
typedef map< String, StringVector >::type | AnimableDictionaryMap |
typedef vector < ParticleEmitter * >::type | EmittedEmitterList |
typedef map< String, EmittedEmitterList >::type | EmittedEmitterPool |
typedef list< ParticleEmitter * > ::type | FreeEmittedEmitterList |
typedef map< String, FreeEmittedEmitterList >::type | FreeEmittedEmitterMap |
typedef list< Particle * >::type | FreeParticleList |
typedef vector < ParticleAffector * >::type | ParticleAffectorList |
typedef vector < ParticleEmitter * >::type | ParticleEmitterList |
typedef vector< Particle * >::type | ParticlePool |
Protected Member Functions | |
void | _applyMotion (Real timeElapsed) |
Updates existing particle based on their momentum. More... | |
void | _executeTriggerEmitters (ParticleEmitter *emitter, unsigned requested, Real timeElapsed) |
Helper function that actually performs the emission of particles. More... | |
void | _expire (Real timeElapsed) |
Internal method used to expire dead particles. More... | |
StringVector & | _getAnimableValueNames (void) |
Get an updateable reference to animable value list. More... | |
void | _notifyReorganiseEmittedEmitterData (void) |
This function clears all data structures that are used in combination with emitted emitters and sets the flag to indicate that the emitted emitter pool must be initialised again. More... | |
void | _sortParticles (Camera *cam) |
Sort the particles in the system. More... | |
void | _triggerAffectors (Real timeElapsed) |
Applies the effects of affectors. More... | |
void | _triggerEmitters (Real timeElapsed) |
Spawn new particles based on free quota and emitter requirements. More... | |
void | addActiveEmittedEmittersToFreeList (void) |
Moves all emitted emitters from the active list to the free list. More... | |
void | addFreeEmittedEmitters (void) |
Add emitters from the pool to the free emitted emitter queue. More... | |
void | configureRenderer (void) |
Internal method to configure the renderer. More... | |
void | createAnimableDictionary (void) const |
Internal method for creating a dictionary of animable value names for the class, if it does not already exist. More... | |
bool | createParamDictionary (const String &className) |
Internal method for creating a parameter dictionary for the class, if it does not already exist. More... | |
void | createVisualParticles (size_t poolstart, size_t poolend) |
Internal method for creating ParticleVisualData instances for the pool. More... | |
void | destroyVisualParticles (size_t poolstart, size_t poolend) |
Internal method for destroying ParticleVisualData instances for the pool. More... | |
virtual void | extrudeBounds (AxisAlignedBox &box, const Vector4 &lightPos, Real extrudeDist) const |
Utility method for extruding a bounding box. More... | |
FreeEmittedEmitterList * | findFreeEmittedEmitter (const String &name) |
Find the list with free emitted emitters. More... | |
virtual void | generateShadowVolume (EdgeData *edgeData, const HardwareIndexBufferSharedPtr &indexBuffer, size_t &indexBufferUsedSize, const Light *light, ShadowRenderableList &shadowRenderables, unsigned long flags) |
Generates the indexes required to render a shadow volume into the index buffer which is passed in, and updates shadow renderables to use it. More... | |
virtual const String & | getAnimableDictionaryName (void) const |
Get the name of the animable dictionary for this class. More... | |
Real | getExtrusionDistance (const Vector3 &objectPos, const Light *light) const |
Helper method for calculating extrusion distance. More... | |
void | increaseEmittedEmitterPool (size_t size) |
Resize the internal pool of emitted emitters. More... | |
void | increasePool (size_t size) |
Resize the internal pool of particles. More... | |
virtual void | initialiseAnimableDictionary (StringVector &) const |
Internal method for initialising dictionary; should be implemented by subclasses wanting to expose animable parameters. More... | |
void | initialiseEmittedEmitterPool (void) |
Determine which emitters in the Particle Systems main emitter become a template for creating an pool of emitters that can be emitted. More... | |
void | initialiseEmittedEmitters (void) |
Create a pool of emitted emitters and assign them to the free emitter list. More... | |
void | initParameters (void) |
Internal method for initialising string interface. More... | |
void | removeAllEmittedEmitters (void) |
Removes all emitted emitters from this system. More... | |
void | removeFromActiveEmittedEmitters (ParticleEmitter *emitter) |
Removes an emitter from the active emitted emitter list. More... | |
virtual void | updateEdgeListLightFacing (EdgeData *edgeData, const Vector4 &lightPos) |
Tells the caster to perform the tasks necessary to update the edge data's light listing. More... | |
Protected Attributes | |
AxisAlignedBox | mAABB |
ActiveEmittedEmitterList | mActiveEmittedEmitters |
Active emitted emitter list. More... | |
ActiveParticleList | mActiveParticles |
Active particle list. More... | |
ParticleAffectorList | mAffectors |
List of particle affectors, ie modifiers of particles. More... | |
bool | mBeyondFarDistance |
Hidden because of distance? More... | |
Real | mBoundingRadius |
bool | mBoundsAutoUpdate |
Real | mBoundsUpdateTime |
bool | mCastShadows |
Does this object cast shadows? More... | |
MovableObjectFactory * | mCreator |
Creator of this object (if created by a factory) More... | |
bool | mCullIndividual |
Do we cull each particle individually? More... | |
bool | mDebugDisplay |
Is debug display enabled? More... | |
Real | mDefaultHeight |
Default height of each particle. More... | |
Real | mDefaultWidth |
Default width of each particle. More... | |
EmittedEmitterPool | mEmittedEmitterPool |
Pool of emitted emitters for use and reuse in the active emitted emitter list. More... | |
bool | mEmittedEmitterPoolInitialised |
Indication whether the emitted emitter pool (= pool with particle emitters that are emitted) is initialised. More... | |
size_t | mEmittedEmitterPoolSize |
The number of emitted emitters in the pool. More... | |
ParticleEmitterList | mEmitters |
List of particle emitters, ie sources of particles. More... | |
FreeEmittedEmitterMap | mFreeEmittedEmitters |
Free emitted emitter list. More... | |
FreeParticleList | mFreeParticles |
Free particle queue. More... | |
bool | mIsEmitting |
Used to control if the particle system should emit particles or not. More... | |
bool | mIsRendererConfigured |
Have we set the material etc on the renderer? More... | |
Real | mIterationInterval |
Iteration interval. More... | |
bool | mIterationIntervalSet |
Iteration interval set? Otherwise track default. More... | |
unsigned long | mLastVisibleFrame |
Last frame in which known to be visible. More... | |
LightList | mLightList |
List of lights for this object. More... | |
ulong | mLightListUpdated |
The last frame that this light list was updated in. More... | |
uint32 | mLightMask |
the light mask defined for this movable. This will be taken into consideration when deciding which light should affect this movable More... | |
Listener * | mListener |
MovableObject listener - only one allowed (no list) for size & performance reasons. */. More... | |
bool | mLocalSpace |
Particles in local space? More... | |
SceneManager * | mManager |
SceneManager holding this object (if applicable) More... | |
MaterialPtr | mMaterial |
Pointer to the material to use. More... | |
String | mMaterialName |
Name of the material to use. More... | |
Real | mMinPixelSize |
String | mName |
Name of this object. More... | |
Real | mNonvisibleTimeout |
Update timeout when nonvisible (0 for no timeout) More... | |
bool | mNonvisibleTimeoutSet |
Update timeout when nonvisible set? Otherwise track default. More... | |
String | mOrigin |
Optional origin of this particle system (eg script name) More... | |
bool | mParentIsTagPoint |
Node * | mParentNode |
node to which this object is attached More... | |
ParticlePool | mParticlePool |
Pool of particle instances for use and reuse in the active particle list. More... | |
size_t | mPoolSize |
The number of particles in the pool. More... | |
uint32 | mQueryFlags |
Flags determining whether this object is included / excluded from scene queries. More... | |
ParticleSystemRenderer * | mRenderer |
The renderer used to render this particle system. More... | |
String | mRendererType |
The name of the type of renderer used to render this system. More... | |
bool | mRenderingDisabled |
Does rendering this object disabled by listener? More... | |
uint8 | mRenderQueueID |
The render queue to use when rendering this object. More... | |
bool | mRenderQueueIDSet |
Flags whether the RenderQueue's default should be used. More... | |
ushort | mRenderQueuePriority |
The render queue group to use when rendering this object. More... | |
bool | mRenderQueuePrioritySet |
Flags whether the RenderQueue's default should be used. More... | |
String | mResourceGroupName |
Name of the resource group to use to load materials. More... | |
bool | mSorted |
Particles sorted according to camera? More... | |
Real | mSpeedFactor |
Speed factor. More... | |
Real | mSquaredUpperDistance |
Controller< Real > * | mTimeController |
Controller for time update. More... | |
Real | mTimeSinceLastVisible |
Amount of time non-visible so far. More... | |
Real | mUpdateRemainTime |
Real | mUpperDistance |
Upper distance to still render. More... | |
UserObjectBindings | mUserObjectBindings |
User objects binding. More... | |
uint32 | mVisibilityFlags |
Flags determining whether this object is visible (compared to SceneManager mask) More... | |
bool | mVisible |
Is this object visible? More... | |
AxisAlignedBox | mWorldAABB |
World AABB, only used to compare world-space positions to calc bounds. More... | |
Sphere | mWorldBoundingSphere |
AxisAlignedBox | mWorldDarkCapBounds |
World space AABB of this object's dark cap. More... | |
Static Protected Attributes | |
static RadixSort < ActiveParticleList, Particle *, float > | mRadixSorter |
static AnimableDictionaryMap | msAnimableDictionary |
Static map of class name to list of animable value names. More... | |
static CmdCull | msCullCmd |
Command objects. More... | |
static Real | msDefaultIterationInterval |
Default iteration interval. More... | |
static Real | msDefaultNonvisibleTimeout |
Default nonvisible update timeout. More... | |
static uint32 | msDefaultQueryFlags |
Default query flags. More... | |
static uint32 | msDefaultVisibilityFlags |
Default visibility flags. More... | |
static CmdEmittedEmitterQuota | msEmittedEmitterQuotaCmd |
static CmdHeight | msHeightCmd |
static CmdIterationInterval | msIterationIntervalCmd |
static CmdLocalSpace | msLocalSpaceCmd |
static CmdMaterial | msMaterialCmd |
static CmdNonvisibleTimeout | msNonvisibleTimeoutCmd |
static CmdQuota | msQuotaCmd |
static CmdRenderer | msRendererCmd |
static CmdSorted | msSortedCmd |
static CmdWidth | msWidthCmd |
Class defining particle system based special effects.
Definition at line 67 of file OgreParticleSystem.h.
|
protected |
Definition at line 762 of file OgreParticleSystem.h.
|
protected |
Definition at line 707 of file OgreParticleSystem.h.
|
protectedinherited |
Definition at line 241 of file OgreAnimable.h.
|
protected |
Definition at line 763 of file OgreParticleSystem.h.
|
protected |
Definition at line 765 of file OgreParticleSystem.h.
|
protected |
Definition at line 761 of file OgreParticleSystem.h.
|
protected |
Definition at line 764 of file OgreParticleSystem.h.
|
protected |
Definition at line 708 of file OgreParticleSystem.h.
|
protected |
Definition at line 791 of file OgreParticleSystem.h.
|
protected |
Definition at line 790 of file OgreParticleSystem.h.
|
protected |
Definition at line 709 of file OgreParticleSystem.h.
|
inherited |
Definition at line 136 of file OgreShadowCaster.h.
|
inherited |
Definition at line 137 of file OgreShadowCaster.h.
Ogre::ParticleSystem::ParticleSystem | ( | ) |
Default constructor required for STL creation in manager.
Creates a particle system with no emitters or affectors.
|
virtual |
|
protected |
Updates existing particle based on their momentum.
|
protected |
Helper function that actually performs the emission of particles.
|
protected |
Internal method used to expire dead particles.
|
inlineprotectedinherited |
Get an updateable reference to animable value list.
Definition at line 267 of file OgreAnimable.h.
References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.
|
inlinevirtualinherited |
Get the creator of this object, if any (internal use only)
Definition at line 186 of file OgreMovableObject.h.
ParticleIterator Ogre::ParticleSystem::_getIterator | ( | void | ) |
Returns an iterator for stepping through all particles in this system.
|
inlinevirtualinherited |
Returns a pointer to the current list of lights for this object.
Definition at line 491 of file OgreMovableObject.h.
|
inlinevirtualinherited |
Get the manager of this object, if any (internal use only)
Definition at line 190 of file OgreMovableObject.h.
|
virtualinherited |
return the full transformation of the parent sceneNode or the attachingPoint node
Reimplemented in Ogre::InstancedEntity.
|
virtual |
|
inlinevirtualinherited |
Notify the object of it's creator (internal use only)
Definition at line 184 of file OgreMovableObject.h.
|
virtual |
|
inlinevirtualinherited |
Notify the object of it's manager (internal use only)
Definition at line 188 of file OgreMovableObject.h.
|
virtualinherited |
Internal method called to notify the object that it has been moved.
Reimplemented in Ogre::Light, Ogre::PortalBase, Ogre::InstancedEntity, and Ogre::PCZLight.
|
inline |
Notify this particle system of it's origin.
Definition at line 548 of file OgreParticleSystem.h.
|
virtual |
Internal callback used by Particles to notify their parent that they have been resized.
|
virtual |
Internal callback used by Particles to notify their parent that they have been rotated.
|
protected |
This function clears all data structures that are used in combination with emitted emitters and sets the flag to indicate that the emitted emitter pool must be initialised again.
|
protected |
Sort the particles in the system.
|
protected |
Applies the effects of affectors.
|
protected |
Spawn new particles based on free quota and emitter requirements.
void Ogre::ParticleSystem::_update | ( | Real | timeElapsed | ) |
Updates the particles in the system based on time elapsed.
timeElapsed | The amount of time, in seconds, since the last frame. |
void Ogre::ParticleSystem::_updateBounds | ( | void | ) |
Internal method for updating the bounds of the particle system.
|
virtual |
|
protected |
Moves all emitted emitters from the active list to the free list.
ParticleAffector* Ogre::ParticleSystem::addAffector | ( | const String & | affectorType | ) |
Adds an affector to this particle system.
affectorType | String identifying the affector type to create. Affector types are defined by registering new factories with the manager - see ParticleAffectorFactory for more details. Affector types can be extended by OGRE, plugin authors or application developers. |
ParticleEmitter* Ogre::ParticleSystem::addEmitter | ( | const String & | emitterType | ) |
Adds an emitter to this particle system.
emitterType | String identifying the emitter type to create. Emitter types are defined by registering new factories with the manager - see ParticleEmitterFactory for more details. Emitter types can be extended by OGRE, plugin authors or application developers. |
|
protected |
Add emitters from the pool to the free emitted emitter queue.
|
inlinevirtualinherited |
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.
Definition at line 396 of file OgreMovableObject.h.
|
inlinevirtualinherited |
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.
Definition at line 424 of file OgreMovableObject.h.
|
staticinherited |
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.
void Ogre::ParticleSystem::clear | ( | ) |
Empties this set of all particles.
|
protected |
Internal method to configure the renderer.
|
inlinevirtualinherited |
Method for copying this object's parameters to another object.
dest | Pointer to object to have it's parameters set the same as this object. |
Definition at line 303 of file OgreStringInterface.h.
References Ogre::ParamDictionary::mParamDefs, and Ogre::StringInterface::setParameter().
|
inlineprotectedinherited |
Internal method for creating a dictionary of animable value names for the class, if it does not already exist.
Definition at line 254 of file OgreAnimable.h.
|
inlinevirtualinherited |
Create a reference-counted AnimableValuePtr for the named value.
Reimplemented in Ogre::Light.
Definition at line 320 of file OgreAnimable.h.
References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.
Manually add an emitter particle to the system.
emitterName | The name of a particle emitter that must be emitted. |
|
inlineprotectedinherited |
Internal method for creating a parameter dictionary for the class, if it does not already exist.
className | the name of the class using the dictionary |
Definition at line 186 of file OgreStringInterface.h.
References OGRE_LOCK_MUTEX.
Particle* Ogre::ParticleSystem::createParticle | ( | void | ) |
Manually add a particle to the system.
|
protected |
Internal method for creating ParticleVisualData instances for the pool.
|
protected |
Internal method for destroying ParticleVisualData instances for the pool.
|
virtualinherited |
|
protectedvirtualinherited |
Utility method for extruding a bounding box.
box | Original bounding box, will be updated in-place. |
lightPos | 4D light position in object space, when w=0.0f this represents a directional light. |
extrudeDist | The distance to extrude. |
|
staticinherited |
Utility method for extruding vertices based on a light.
vertexBuffer | The vertex buffer containing ONLY xyz position values, which must be originalVertexCount * 2 * 3 floats long. |
originalVertexCount | The count of the original number of vertices, i.e. the number in the mesh, not counting the doubling which has already been done (by VertexData::prepareForShadowVolume) to provide the extruded area of the buffer. |
lightPos | 4D light position in object space, when w=0.0f this represents a directional light. |
extrudeDist | The distance to extrude. |
Fast-forwards this system by the required number of seconds.
time | The number of seconds to fast-forward by. |
interval | The sampling interval used to generate particles, apply affectors etc. The lower this is the more realistic the fast-forward, but it takes more iterations to do it. |
|
protected |
Find the list with free emitted emitters.
name | The name that identifies the list with free emitted emitters. |
|
protectedvirtualinherited |
Generates the indexes required to render a shadow volume into the index buffer which is passed in, and updates shadow renderables to use it.
edgeData | The edge information to use. |
indexBuffer | The buffer into which to write data into; current contents are assumed to be discardable. |
indexBufferUsedSize | If the rest of buffer is enough than it would be locked with HBL_NO_OVERWRITE semantic and indexBufferUsedSize would be increased, otherwise HBL_DISCARD would be used and indexBufferUsedSize would be reset. |
light | The light, mainly for type info as silhouette calculations should already have been done in updateEdgeListLightFacing |
shadowRenderables | A list of shadow renderables which has already been constructed but will need populating with details of the index ranges to be used. |
flags | Additional controller flags, see ShadowRenderableFlags. |
ParticleAffector* Ogre::ParticleSystem::getAffector | ( | unsigned short | index | ) | const |
Retrieves an affector by it's index (zero-based).
index | Zero-based index of the affector to retrieve. |
|
inlineprotectedvirtualinherited |
Get the name of the animable dictionary for this class.
Reimplemented in Ogre::Light.
Definition at line 249 of file OgreAnimable.h.
References Ogre::StringUtil::BLANK.
|
inlineinherited |
Gets a list of animable value names for this object.
Definition at line 295 of file OgreAnimable.h.
References Ogre::Exception::ERR_ITEM_NOT_FOUND, and OGRE_EXCEPT.
|
inlinevirtual |
Overridden from MovableObject.
Implements Ogre::MovableObject.
Definition at line 380 of file OgreParticleSystem.h.
|
inlinevirtual |
Overridden from MovableObject.
Implements Ogre::MovableObject.
Definition at line 386 of file OgreParticleSystem.h.
|
inlinevirtualinherited |
Returns whether shadow casting is enabled for this object.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::TerrainQuadTreeNode::Movable.
Definition at line 521 of file OgreMovableObject.h.
|
virtual |
Returns whether or not particles in this are tested individually for culling.
|
virtualinherited |
Overridden member from ShadowCaster.
Implements Ogre::ShadowCaster.
|
virtual |
See setDefaultDimensions - this gets 1 component individually.
|
inlinestatic |
Get the default iteration interval for all ParticleSystem instances.
Definition at line 453 of file OgreParticleSystem.h.
|
inlinestatic |
Get the default nonvisible timeout for all ParticleSystem instances.
Definition at line 482 of file OgreParticleSystem.h.
|
inlinestaticinherited |
Get the default query flags for all future MovableObject instances.
Definition at line 411 of file OgreMovableObject.h.
|
inlinestaticinherited |
Get the default visibility flags for all future MovableObject instances.
Definition at line 439 of file OgreMovableObject.h.
|
virtual |
See setDefaultDimensions - this gets 1 component individually.
|
inlinevirtualinherited |
Define a default implementation of method from ShadowCaster which implements no shadows.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::StaticGeometry::Region.
Definition at line 494 of file OgreMovableObject.h.
size_t Ogre::ParticleSystem::getEmittedEmitterQuota | ( | void | ) | const |
Returns the maximum number of emitted emitters this system is allowed to have active at once.
ParticleEmitter* Ogre::ParticleSystem::getEmitter | ( | unsigned short | index | ) | const |
Retrieves an emitter by it's index (zero-based).
index | Zero-based index of the emitter to retrieve. |
bool Ogre::ParticleSystem::getEmitting | ( | ) | const |
Returns true if the particle system emitting flag is turned on.
|
protectedinherited |
Helper method for calculating extrusion distance.
|
inline |
Gets a 'iteration interval' on this particle system.
Definition at line 445 of file OgreParticleSystem.h.
|
inline |
Gets whether particles (and any affector effects) remain relative to the node the particle system is attached to.
Definition at line 608 of file OgreParticleSystem.h.
|
virtualinherited |
Overridden member from ShadowCaster.
Implements Ogre::ShadowCaster.
|
inlinevirtualinherited |
Get a bitwise mask which will filter the lights affecting this object.
Definition at line 476 of file OgreMovableObject.h.
|
inlinevirtualinherited |
Gets the current listener for this object.
Definition at line 450 of file OgreMovableObject.h.
|
virtual |
Sets the name of the material to be used for this billboard set.
|
virtual |
Overridden from MovableObject.
Implements Ogre::MovableObject.
|
inlinevirtualinherited |
Returns the name of this object.
Definition at line 193 of file OgreMovableObject.h.
|
inline |
Gets when the particle system should stop updating after it hasn't been visible for a while.
Definition at line 473 of file OgreParticleSystem.h.
unsigned short Ogre::ParticleSystem::getNumAffectors | ( | void | ) | const |
Returns the number of affectors for this particle system.
unsigned short Ogre::ParticleSystem::getNumEmitters | ( | void | ) | const |
Returns the number of emitters for this particle system.
size_t Ogre::ParticleSystem::getNumParticles | ( | void | ) | const |
Gets the number of individual particles in the system right now.
|
inline |
Get the origin of this particle system, e.g.
a script file name.
Definition at line 546 of file OgreParticleSystem.h.
|
inlineinherited |
Retrieves the parameter dictionary for this class.
Definition at line 219 of file OgreStringInterface.h.
|
inlineinherited |
Definition at line 224 of file OgreStringInterface.h.
|
inlinevirtualinherited |
Generic parameter retrieval method.
name | The name of the parameter to get |
Definition at line 272 of file OgreStringInterface.h.
References Ogre::ParamCommand::doGet(), and Ogre::ParamDictionary::getParamCommand().
|
inherited |
Retrieves a list of parameters valid for this object.
|
virtualinherited |
Returns the node to which this object is attached.
|
virtualinherited |
Returns the scene node to which this object is attached.
Particle* Ogre::ParticleSystem::getParticle | ( | size_t | index | ) |
Retrieve a particle from the system for manual tweaking.
size_t Ogre::ParticleSystem::getParticleQuota | ( | void | ) | const |
Returns the maximum number of particles this system is allowed to have active at once.
Get the distance to extrude for a point/spot light.
Implements Ogre::ShadowCaster.
|
inlinevirtualinherited |
Returns the query flags relevant for this object.
Reimplemented in Ogre::TerrainQuadTreeNode::Movable.
Definition at line 403 of file OgreMovableObject.h.
|
inherited |
Returns whether the Material of any Renderable that this MovableObject will add to the render queue will receive shadows.
ParticleSystemRenderer* Ogre::ParticleSystem::getRenderer | ( | void | ) | const |
Gets the ParticleRenderer to be used to render this particle system.
const String& Ogre::ParticleSystem::getRendererName | ( | void | ) | const |
Gets the name of the ParticleRenderer to be used to render this particle system.
|
inlinevirtualinherited |
Gets the distance at which batches are no longer rendered.
Definition at line 305 of file OgreMovableObject.h.
|
inlinevirtualinherited |
Returns the minimum pixel size an object needs to be in both screen axes in order to be rendered.
Definition at line 318 of file OgreMovableObject.h.
|
virtualinherited |
Gets the queue group for this entity, see setRenderQueueGroup for full details.
|
inlinevirtual |
Return the resource group to be used to load dependent resources.
Definition at line 539 of file OgreParticleSystem.h.
|
virtualinherited |
Define a default implementation of method from ShadowCaster which implements no shadows.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::StaticGeometry::Region.
|
inline |
Gets whether particles are sorted relative to the camera.
Definition at line 563 of file OgreParticleSystem.h.
|
inline |
Gets the 'speed factor' on this particle system.
Definition at line 424 of file OgreParticleSystem.h.
|
virtual |
Override to return specific type flag.
Reimplemented from Ogre::MovableObject.
|
inlinevirtualinherited |
Definition at line 334 of file OgreMovableObject.h.
|
inlineinherited |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
Definition at line 340 of file OgreMovableObject.h.
|
inlineinherited |
Return an instance of user objects binding associated with this class.
You can use it to associate one or more custom objects with this class instance.
Definition at line 346 of file OgreMovableObject.h.
|
inlinevirtualinherited |
Returns the visibility flags relevant for this object.
Reimplemented in Ogre::TerrainQuadTreeNode::Movable.
Definition at line 431 of file OgreMovableObject.h.
|
virtualinherited |
Gets this object whether to be visible or not, if it has a renderable component.
|
virtualinherited |
Retrieves the axis-aligned bounding box for this object in world coordinates.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::Entity, and Ogre::PortalBase.
|
virtualinherited |
Retrieves the worldspace bounding sphere for this object.
Reimplemented in Ogre::Entity, and Ogre::PortalBase.
|
inlinevirtualinherited |
Define a default implementation of method from ShadowCaster which implements no shadows.
Implements Ogre::ShadowCaster.
Reimplemented in Ogre::StaticGeometry::Region.
Definition at line 496 of file OgreMovableObject.h.
|
protected |
Resize the internal pool of emitted emitters.
|
protected |
Resize the internal pool of particles.
|
inlineprotectedvirtualinherited |
Internal method for initialising dictionary; should be implemented by subclasses wanting to expose animable parameters.
Reimplemented in Ogre::Light.
Definition at line 287 of file OgreAnimable.h.
|
protected |
Determine which emitters in the Particle Systems main emitter become a template for creating an pool of emitters that can be emitted.
|
protected |
Create a pool of emitted emitters and assign them to the free emitter list.
|
protected |
Internal method for initialising string interface.
|
virtualinherited |
|
inlinevirtualinherited |
Gets whether debug display of this object is enabled.
Definition at line 565 of file OgreMovableObject.h.
|
virtualinherited |
Returns true if this object is attached to a SceneNode or TagPoint, and this SceneNode / TagPoint is currently in an active part of the scene graph.
Reimplemented in Ogre::InstancedEntity.
|
inlinevirtualinherited |
Gets whether the parent node is a TagPoint (or a SceneNode)
Definition at line 216 of file OgreMovableObject.h.
|
virtualinherited |
Returns whether or not this object is supposed to be visible or not.
Reimplemented in Ogre::InstancedGeometry::BatchInstance, Ogre::StaticGeometry::Region, and Ogre::TerrainQuadTreeNode::Movable.
|
inlineinherited |
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 91 of file OgreMemoryAllocatedObject.h.
ParticleSystem& Ogre::ParticleSystem::operator= | ( | const ParticleSystem & | rhs | ) |
Assignment operator for copying.
|
virtualinherited |
Gets a list of lights, ordered relative to how close they are to this movable object.
void Ogre::ParticleSystem::removeAffector | ( | unsigned short | index | ) |
Removes an affector from the system.
index | Zero-based index of the affector to retrieve. |
void Ogre::ParticleSystem::removeAllAffectors | ( | void | ) |
Removes all the affectors from this system.
|
protected |
Removes all emitted emitters from this system.
void Ogre::ParticleSystem::removeAllEmitters | ( | void | ) |
Removes all the emitters from this system.
void Ogre::ParticleSystem::removeEmitter | ( | unsigned short | index | ) |
Removes an emitter from the system.
index | Zero-based index of the emitter to retrieve. |
|
protected |
Removes an emitter from the active emitted emitter list.
emitter | Pointer to a particle emitter. |
|
inlinevirtualinherited |
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.
Definition at line 400 of file OgreMovableObject.h.
|
inlinevirtualinherited |
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object.
Definition at line 428 of file OgreMovableObject.h.
void Ogre::ParticleSystem::setBounds | ( | const AxisAlignedBox & | aabb | ) |
Set the (initial) bounds of the particle system manually.
aabb | Bounds in local space. |
void Ogre::ParticleSystem::setBoundsAutoUpdated | ( | bool | autoUpdate, |
Real | stopIn = 0.0f |
||
) |
Sets whether the bounds will be automatically updated for the life of the particle system.
autoUpdate | If true (the default), the particle system will update it's bounds every frame. If false, the bounds update will cease after the 'stopIn' number of seconds have passed. |
stopIn | Only applicable if the first parameter is true, this is the number of seconds after which the automatic update will cease. |
|
inlineinherited |
Sets whether or not this object will cast shadows.
Definition at line 519 of file OgreMovableObject.h.
|
virtual |
Sets whether culling tests particles in this individually as well as in a group.
cullIndividual | If true, each particle is tested before being sent to the pipeline as well as the whole set having to pass the coarse group bounding test. |
|
inlinevirtualinherited |
Sets whether or not the debug display of this object is enabled.
Definition at line 563 of file OgreMovableObject.h.
Sets the default dimensions of the particles in this set.
width | The new default width for the particles in this set. |
height | The new default height for the particles in this set. |
|
virtual |
See setDefaultDimensions - this sets 1 component individually.
|
inlinestatic |
Set the default iteration interval for all ParticleSystem instances.
Definition at line 449 of file OgreParticleSystem.h.
|
inlinestatic |
Set the default nonvisible timeout for all ParticleSystem instances.
Definition at line 477 of file OgreParticleSystem.h.
|
inlinestaticinherited |
Set the default query flags for all future MovableObject instances.
Definition at line 407 of file OgreMovableObject.h.
|
inlinestaticinherited |
Set the default visibility flags for all future MovableObject instances.
Definition at line 435 of file OgreMovableObject.h.
|
virtual |
See setDefaultDimensions - this sets 1 component individually.
void Ogre::ParticleSystem::setEmittedEmitterQuota | ( | size_t | quota | ) |
Sets the maximum number of emitted emitters this system is allowed to have active at once.
quota | The maximum number of emitted emitters this system is allowed to have. |
void Ogre::ParticleSystem::setEmitting | ( | bool | v | ) |
This is used to turn on or off particle emission for this system.
Note that this does not detach the particle system from the scene node, it will still use some CPU.
void Ogre::ParticleSystem::setIterationInterval | ( | Real | iterationInterval | ) |
Sets a 'iteration interval' on this particle system.
iterationInterval | The iteration interval, default to zero. |
void Ogre::ParticleSystem::setKeepParticlesInLocalSpace | ( | bool | keepLocal | ) |
Sets whether particles (and any affector effects) remain relative to the node the particle system is attached to.
|
virtualinherited |
Set a bitwise mask which will filter the lights affecting this object.
|
inlinevirtualinherited |
Sets a listener for this object.
Definition at line 446 of file OgreMovableObject.h.
|
virtual |
Sets the name of the material to be used for this billboard set.
name | The new name of the material to use for this set. |
void Ogre::ParticleSystem::setNonVisibleUpdateTimeout | ( | Real | timeout | ) |
Sets when the particle system should stop updating after it hasn't been visible for a while.
timeout | The time after which the particle system will be disabled if it is no longer visible. 0 to disable the timeout and always update. |
|
virtualinherited |
Generic parameter setting method.
name | The name of the parameter to set |
value | String value. Must be in the right format for the type specified in the parameter definition. See the StringConverter class for more information. |
Referenced by Ogre::StringInterface::copyParametersTo().
|
virtualinherited |
Generic multiple parameter setting method.
paramList | Name/value pair list |
void Ogre::ParticleSystem::setParticleQuota | ( | size_t | quota | ) |
Sets the maximum number of particles this system is allowed to have active at once.
quota | The maximum number of particles this system is allowed to have. |
|
inlinevirtualinherited |
Sets the query flags for this object.
Definition at line 392 of file OgreMovableObject.h.
void Ogre::ParticleSystem::setRenderer | ( | const String & | typeName | ) |
Sets the ParticleRenderer to be used to render this particle system.
typeName | String identifying the type of renderer to use; a new instance of this type will be created; a factory must have been registered with ParticleSystemManager. |
|
inlinevirtualinherited |
Sets the distance at which the object is no longer rendered.
dist | Distance beyond which the object will not be rendered (the default is 0, which means objects are always rendered). |
Definition at line 299 of file OgreMovableObject.h.
|
inlinevirtualinherited |
Sets the minimum pixel size an object needs to be in both screen axes in order to be rendered.
pixelSize | Number of minimum pixels (the default is 0, which means objects are always rendered). |
Definition at line 312 of file OgreMovableObject.h.
|
virtual |
Sets the render queue group this entity will be rendered through.
queueID | Enumerated value of the queue group to use. See the enum RenderQueueGroupID for what kind of values can be used here. |
Reimplemented from Ogre::MovableObject.
|
virtual |
Sets the render queue group and group priority this entity will be rendered through.
queueID | Enumerated value of the queue group to use. See the enum RenderQueueGroupID for what kind of values can be used here. |
priority | The priority within a group to use. |
Reimplemented from Ogre::MovableObject.
|
inline |
Set whether or not particles are sorted according to the camera.
Definition at line 561 of file OgreParticleSystem.h.
|
inline |
Sets a 'speed factor' on this particle system, which means it scales the elapsed real time which has passed by this factor before passing it to the emitters, affectors, and the particle life calculation.
Definition at line 420 of file OgreParticleSystem.h.
|
inlinevirtualinherited |
Sets any kind of user value on this object.
Definition at line 329 of file OgreMovableObject.h.
|
inlinevirtualinherited |
Sets the visibility flags for this object.
Definition at line 420 of file OgreMovableObject.h.
|
virtualinherited |
Tells this object whether to be visible or not, if it has a renderable component.
Reimplemented in Ogre::Light.
|
protectedvirtualinherited |
Tells the caster to perform the tasks necessary to update the edge data's light listing.
Can be overridden if the subclass needs to do additional things.
edgeData | The edge information to update. |
lightPos | 4D vector representing the light, a directional light has w=0.0. |
|
virtual |
Method to allow a caller to abstractly iterate over the Renderable instances that this MovableObject will add to the render queue when asked, if any.
visitor | Pointer to a class implementing the Renderable::Visitor interface which will be called back for each Renderable which will be queued. Bear in mind that the state of the Renderable instances may not be finalised depending on when you call this. |
debugRenderables | If false, only regular renderables will be visited (those for normal display). If true, debug renderables will be included too. |
Implements Ogre::MovableObject.
|
protected |
Definition at line 661 of file OgreParticleSystem.h.
|
protected |
Active emitted emitter list.
Definition at line 788 of file OgreParticleSystem.h.
|
protected |
Active particle list.
Definition at line 742 of file OgreParticleSystem.h.
|
protected |
List of particle affectors, ie modifiers of particles.
Definition at line 796 of file OgreParticleSystem.h.
|
protectedinherited |
Hidden because of distance?
Definition at line 128 of file OgreMovableObject.h.
|
protected |
Definition at line 662 of file OgreParticleSystem.h.
|
protected |
Definition at line 663 of file OgreParticleSystem.h.
|
protected |
Definition at line 664 of file OgreParticleSystem.h.
|
protectedinherited |
Does this object cast shadows?
Definition at line 150 of file OgreMovableObject.h.
|
protectedinherited |
Creator of this object (if created by a factory)
Definition at line 112 of file OgreMovableObject.h.
|
protected |
Do we cull each particle individually?
Definition at line 802 of file OgreParticleSystem.h.
|
protectedinherited |
Is debug display enabled?
Definition at line 121 of file OgreMovableObject.h.
|
protected |
Default height of each particle.
Definition at line 681 of file OgreParticleSystem.h.
|
protected |
Default width of each particle.
Definition at line 679 of file OgreParticleSystem.h.
|
protected |
Pool of emitted emitters for use and reuse in the active emitted emitter list.
Definition at line 775 of file OgreParticleSystem.h.
|
protected |
Indication whether the emitted emitter pool (= pool with particle emitters that are emitted) is initialised.
Definition at line 703 of file OgreParticleSystem.h.
|
protected |
The number of emitted emitters in the pool.
Definition at line 811 of file OgreParticleSystem.h.
|
protected |
List of particle emitters, ie sources of particles.
Definition at line 794 of file OgreParticleSystem.h.
|
protected |
Free emitted emitter list.
Definition at line 781 of file OgreParticleSystem.h.
|
protected |
Free particle queue.
Definition at line 753 of file OgreParticleSystem.h.
|
protected |
Used to control if the particle system should emit particles or not.
Definition at line 705 of file OgreParticleSystem.h.
|
protected |
Have we set the material etc on the renderer?
Definition at line 675 of file OgreParticleSystem.h.
|
protected |
Iteration interval.
Definition at line 685 of file OgreParticleSystem.h.
|
protected |
Iteration interval set? Otherwise track default.
Definition at line 687 of file OgreParticleSystem.h.
|
protected |
Last frame in which known to be visible.
Definition at line 699 of file OgreParticleSystem.h.
|
mutableprotectedinherited |
List of lights for this object.
Definition at line 158 of file OgreMovableObject.h.
|
mutableprotectedinherited |
The last frame that this light list was updated in.
Definition at line 160 of file OgreMovableObject.h.
|
protectedinherited |
the light mask defined for this movable. This will be taken into consideration when deciding which light should affect this movable
Definition at line 163 of file OgreMovableObject.h.
|
protectedinherited |
MovableObject listener - only one allowed (no list) for size & performance reasons. */.
Definition at line 155 of file OgreMovableObject.h.
|
protected |
Particles in local space?
Definition at line 691 of file OgreParticleSystem.h.
|
protectedinherited |
SceneManager holding this object (if applicable)
Definition at line 114 of file OgreMovableObject.h.
|
protected |
Pointer to the material to use.
Definition at line 677 of file OgreParticleSystem.h.
|
protected |
Name of the material to use.
Definition at line 673 of file OgreParticleSystem.h.
|
protectedinherited |
Definition at line 126 of file OgreMovableObject.h.
|
protectedinherited |
Name of this object.
Definition at line 110 of file OgreMovableObject.h.
|
protected |
Update timeout when nonvisible (0 for no timeout)
Definition at line 693 of file OgreParticleSystem.h.
|
protected |
Update timeout when nonvisible set? Otherwise track default.
Definition at line 695 of file OgreParticleSystem.h.
|
protected |
Optional origin of this particle system (eg script name)
Definition at line 814 of file OgreParticleSystem.h.
|
protectedinherited |
Definition at line 117 of file OgreMovableObject.h.
|
protectedinherited |
node to which this object is attached
Definition at line 116 of file OgreMovableObject.h.
|
protected |
Pool of particle instances for use and reuse in the active particle list.
Definition at line 759 of file OgreParticleSystem.h.
|
protected |
The number of particles in the pool.
Definition at line 808 of file OgreParticleSystem.h.
|
protectedinherited |
Flags determining whether this object is included / excluded from scene queries.
Definition at line 140 of file OgreMovableObject.h.
|
staticprotected |
Definition at line 731 of file OgreParticleSystem.h.
|
protected |
The renderer used to render this particle system.
Definition at line 799 of file OgreParticleSystem.h.
|
protected |
The name of the type of renderer used to render this system.
Definition at line 805 of file OgreParticleSystem.h.
|
protectedinherited |
Does rendering this object disabled by listener?
Definition at line 153 of file OgreMovableObject.h.
|
protectedinherited |
The render queue to use when rendering this object.
Definition at line 132 of file OgreMovableObject.h.
|
protectedinherited |
Flags whether the RenderQueue's default should be used.
Definition at line 134 of file OgreMovableObject.h.
|
protectedinherited |
The render queue group to use when rendering this object.
Definition at line 136 of file OgreMovableObject.h.
|
protectedinherited |
Flags whether the RenderQueue's default should be used.
Definition at line 138 of file OgreMovableObject.h.
|
protected |
Name of the resource group to use to load materials.
Definition at line 671 of file OgreParticleSystem.h.
|
staticprotectedinherited |
Static map of class name to list of animable value names.
Definition at line 243 of file OgreAnimable.h.
|
staticprotected |
Command objects.
Definition at line 648 of file OgreParticleSystem.h.
|
staticprotected |
Default iteration interval.
Definition at line 817 of file OgreParticleSystem.h.
|
staticprotected |
Default nonvisible update timeout.
Definition at line 819 of file OgreParticleSystem.h.
|
staticprotectedinherited |
Default query flags.
Definition at line 167 of file OgreMovableObject.h.
|
staticprotectedinherited |
Default visibility flags.
Definition at line 169 of file OgreMovableObject.h.
|
staticprotected |
Definition at line 652 of file OgreParticleSystem.h.
|
staticprotected |
Definition at line 649 of file OgreParticleSystem.h.
|
staticprotected |
Definition at line 657 of file OgreParticleSystem.h.
|
staticprotected |
Definition at line 656 of file OgreParticleSystem.h.
|
staticprotected |
Definition at line 650 of file OgreParticleSystem.h.
|
staticprotected |
Definition at line 658 of file OgreParticleSystem.h.
|
protected |
Particles sorted according to camera?
Definition at line 689 of file OgreParticleSystem.h.
|
protected |
Speed factor.
Definition at line 683 of file OgreParticleSystem.h.
|
protectedinherited |
Definition at line 124 of file OgreMovableObject.h.
|
staticprotected |
Definition at line 651 of file OgreParticleSystem.h.
|
staticprotected |
Definition at line 654 of file OgreParticleSystem.h.
|
staticprotected |
Definition at line 655 of file OgreParticleSystem.h.
|
staticprotected |
Definition at line 653 of file OgreParticleSystem.h.
|
protected |
Controller for time update.
Definition at line 701 of file OgreParticleSystem.h.
|
protected |
Amount of time non-visible so far.
Definition at line 697 of file OgreParticleSystem.h.
|
protected |
Definition at line 665 of file OgreParticleSystem.h.
|
protectedinherited |
Upper distance to still render.
Definition at line 123 of file OgreMovableObject.h.
|
protectedinherited |
User objects binding.
Definition at line 130 of file OgreMovableObject.h.
|
protectedinherited |
Flags determining whether this object is visible (compared to SceneManager mask)
Definition at line 142 of file OgreMovableObject.h.
|
protectedinherited |
Is this object visible?
Definition at line 119 of file OgreMovableObject.h.
|
protected |
World AABB, only used to compare world-space positions to calc bounds.
Definition at line 668 of file OgreParticleSystem.h.
|
mutableprotectedinherited |
Definition at line 146 of file OgreMovableObject.h.
|
mutableprotectedinherited |
World space AABB of this object's dark cap.
Definition at line 148 of file OgreMovableObject.h.