OgreParticleSystem.h
Go to the documentation of this file.
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------------------------------------------------------------------------
*/
#ifndef __ParticleSystem_H__
#define __ParticleSystem_H__
#include "OgrePrerequisites.h"
#include "OgreVector3.h"
#include "OgreString.h"
#include "OgreParticleIterator.h"
#include "OgreStringInterface.h"
#include "OgreMovableObject.h"
#include "OgreRadixSort.h"
#include "OgreController.h"
#include "OgreResourceGroupManager.h"
#include "OgreHeaderPrefix.h"
namespace Ogre {
class _OgreExport ParticleSystem : public StringInterface, public MovableObject
{
public:
class _OgrePrivate CmdQuota : public ParamCommand
{
public:
String doGet(const void* target) const;
void doSet(void* target, const String& val);
};
class _OgrePrivate CmdEmittedEmitterQuota : public ParamCommand
{
public:
String doGet(const void* target) const;
void doSet(void* target, const String& val);
};
class _OgrePrivate CmdMaterial : public ParamCommand
{
public:
String doGet(const void* target) const;
void doSet(void* target, const String& val);
};
class _OgrePrivate CmdCull : public ParamCommand
{
public:
String doGet(const void* target) const;
void doSet(void* target, const String& val);
};
class _OgrePrivate CmdWidth : public ParamCommand
{
public:
String doGet(const void* target) const;
void doSet(void* target, const String& val);
};
class _OgrePrivate CmdHeight : public ParamCommand
{
public:
String doGet(const void* target) const;
void doSet(void* target, const String& val);
};
class _OgrePrivate CmdRenderer : public ParamCommand
{
public:
String doGet(const void* target) const;
void doSet(void* target, const String& val);
};
class CmdSorted : public ParamCommand
{
public:
String doGet(const void* target) const;
void doSet(void* target, const String& val);
};
class CmdLocalSpace : public ParamCommand
{
public:
String doGet(const void* target) const;
void doSet(void* target, const String& val);
};
class CmdIterationInterval : public ParamCommand
{
public:
String doGet(const void* target) const;
void doSet(void* target, const String& val);
};
class CmdNonvisibleTimeout : public ParamCommand
{
public:
String doGet(const void* target) const;
void doSet(void* target, const String& val);
};
ParticleSystem();
ParticleSystem(const String& name, const String& resourceGroupName);
virtual ~ParticleSystem();
void setRenderer(const String& typeName);
ParticleSystemRenderer* getRenderer(void) const;
const String& getRendererName(void) const;
ParticleEmitter* addEmitter(const String& emitterType);
ParticleEmitter* getEmitter(unsigned short index) const;
unsigned short getNumEmitters(void) const;
void removeEmitter(unsigned short index);
void removeAllEmitters(void);
ParticleAffector* addAffector(const String& affectorType);
ParticleAffector* getAffector(unsigned short index) const;
unsigned short getNumAffectors(void) const;
void removeAffector(unsigned short index);
void removeAllAffectors(void);
void clear();
size_t getNumParticles(void) const;
Particle* createParticle(void);
Particle* createEmitterParticle(const String& emitterName);
Particle* getParticle(size_t index);
size_t getParticleQuota(void) const;
void setParticleQuota(size_t quota);
size_t getEmittedEmitterQuota(void) const;
void setEmittedEmitterQuota(size_t quota);
ParticleSystem& operator=(const ParticleSystem& rhs);
void _update(Real timeElapsed);
ParticleIterator _getIterator(void);
virtual void setMaterialName( const String& name, const String& groupName = ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME );
virtual const String& getMaterialName(void) const;
virtual void _notifyCurrentCamera(Camera* cam);
void _notifyAttached(Node* parent, bool isTagPoint = false);
virtual const AxisAlignedBox& getBoundingBox(void) const { return mAABB; }
virtual Real getBoundingRadius(void) const { return mBoundingRadius; }
virtual void _updateRenderQueue(RenderQueue* queue);
void visitRenderables(Renderable::Visitor* visitor,
bool debugRenderables = false);
void fastForward(Real time, Real interval = 0.1);
void setSpeedFactor(Real speedFactor) { mSpeedFactor = speedFactor; }
Real getSpeedFactor(void) const { return mSpeedFactor; }
void setIterationInterval(Real iterationInterval);
Real getIterationInterval(void) const { return mIterationInterval; }
static void setDefaultIterationInterval(Real iterationInterval) { msDefaultIterationInterval = iterationInterval; }
static Real getDefaultIterationInterval(void) { return msDefaultIterationInterval; }
void setNonVisibleUpdateTimeout(Real timeout);
Real getNonVisibleUpdateTimeout(void) const { return mNonvisibleTimeout; }
static void setDefaultNonVisibleUpdateTimeout(Real timeout)
{ msDefaultNonvisibleTimeout = timeout; }
static Real getDefaultNonVisibleUpdateTimeout(void) { return msDefaultNonvisibleTimeout; }
const String& getMovableType(void) const;
virtual void _notifyParticleResized(void);
virtual void _notifyParticleRotated(void);
virtual void setDefaultDimensions(Real width, Real height);
virtual void setDefaultWidth(Real width);
virtual Real getDefaultWidth(void) const;
virtual void setDefaultHeight(Real height);
virtual Real getDefaultHeight(void) const;
virtual bool getCullIndividually(void) const;
virtual void setCullIndividually(bool cullIndividual);
virtual const String& getResourceGroupName(void) const { return mResourceGroupName; }
const String& getOrigin(void) const { return mOrigin; }
void _notifyOrigin(const String& origin) { mOrigin = origin; }
void setRenderQueueGroup(uint8 queueID);
void setRenderQueueGroupAndPriority(uint8 queueID, ushort priority);
void setSortingEnabled(bool enabled) { mSorted = enabled; }
bool getSortingEnabled(void) const { return mSorted; }
void setBounds(const AxisAlignedBox& aabb);
void setBoundsAutoUpdated(bool autoUpdate, Real stopIn = 0.0f);
void setKeepParticlesInLocalSpace(bool keepLocal);
bool getKeepParticlesInLocalSpace(void) const { return mLocalSpace; }
void _updateBounds(void);
void setEmitting(bool v);
bool getEmitting() const;
uint32 getTypeFlags(void) const;
protected:
static CmdCull msCullCmd;
static CmdHeight msHeightCmd;
static CmdMaterial msMaterialCmd;
static CmdQuota msQuotaCmd;
static CmdEmittedEmitterQuota msEmittedEmitterQuotaCmd;
static CmdWidth msWidthCmd;
static CmdRenderer msRendererCmd;
static CmdSorted msSortedCmd;
static CmdLocalSpace msLocalSpaceCmd;
static CmdIterationInterval msIterationIntervalCmd;
static CmdNonvisibleTimeout msNonvisibleTimeoutCmd;
AxisAlignedBox mAABB;
Real mBoundingRadius;
bool mBoundsAutoUpdate;
Real mBoundsUpdateTime;
Real mUpdateRemainTime;
AxisAlignedBox mWorldAABB;
String mResourceGroupName;
String mMaterialName;
bool mIsRendererConfigured;
MaterialPtr mMaterial;
Real mDefaultWidth;
Real mDefaultHeight;
Real mSpeedFactor;
Real mIterationInterval;
bool mIterationIntervalSet;
bool mSorted;
bool mLocalSpace;
Real mNonvisibleTimeout;
bool mNonvisibleTimeoutSet;
Real mTimeSinceLastVisible;
unsigned long mLastVisibleFrame;
Controller<Real>* mTimeController;
bool mEmittedEmitterPoolInitialised;
bool mIsEmitting;
typedef list<Particle*>::type ActiveParticleList;
typedef list<Particle*>::type FreeParticleList;
typedef vector<Particle*>::type ParticlePool;
struct SortByDirectionFunctor
{
Vector3 sortDir;
SortByDirectionFunctor(const Vector3& dir);
float operator()(Particle* p) const;
};
struct SortByDistanceFunctor
{
Vector3 sortPos;
SortByDistanceFunctor(const Vector3& pos);
float operator()(Particle* p) const;
};
static RadixSort<ActiveParticleList, Particle*, float> mRadixSorter;
ActiveParticleList mActiveParticles;
FreeParticleList mFreeParticles;
ParticlePool mParticlePool;
typedef list<ParticleEmitter*>::type FreeEmittedEmitterList;
typedef list<ParticleEmitter*>::type ActiveEmittedEmitterList;
typedef vector<ParticleEmitter*>::type EmittedEmitterList;
typedef map<String, FreeEmittedEmitterList>::type FreeEmittedEmitterMap;
typedef map<String, EmittedEmitterList>::type EmittedEmitterPool;
EmittedEmitterPool mEmittedEmitterPool;
FreeEmittedEmitterMap mFreeEmittedEmitters;
ActiveEmittedEmitterList mActiveEmittedEmitters;
typedef vector<ParticleEmitter*>::type ParticleEmitterList;
typedef vector<ParticleAffector*>::type ParticleAffectorList;
ParticleEmitterList mEmitters;
ParticleAffectorList mAffectors;
ParticleSystemRenderer* mRenderer;
bool mCullIndividual;
String mRendererType;
size_t mPoolSize;
size_t mEmittedEmitterPoolSize;
String mOrigin;
static Real msDefaultIterationInterval;
static Real msDefaultNonvisibleTimeout;
void _expire(Real timeElapsed);
void _triggerEmitters(Real timeElapsed);
void _executeTriggerEmitters(ParticleEmitter* emitter, unsigned requested, Real timeElapsed);
void _applyMotion(Real timeElapsed);
void _triggerAffectors(Real timeElapsed);
void _sortParticles(Camera* cam);
void increasePool(size_t size);
void increaseEmittedEmitterPool(size_t size);
void initParameters(void);
void configureRenderer(void);
void createVisualParticles(size_t poolstart, size_t poolend);
void destroyVisualParticles(size_t poolstart, size_t poolend);
void initialiseEmittedEmitters(void);
void initialiseEmittedEmitterPool(void);
void addFreeEmittedEmitters(void);
void removeAllEmittedEmitters(void);
FreeEmittedEmitterList* findFreeEmittedEmitter (const String& name);
void removeFromActiveEmittedEmitters (ParticleEmitter* emitter);
void addActiveEmittedEmittersToFreeList (void);
void _notifyReorganiseEmittedEmitterData (void);
};
}
#include "OgreHeaderSuffix.h"
#endif
Ogre::ParticleSystem::_notifyOrigin
void _notifyOrigin(const String &origin)
Notify this particle system of it&#39;s origin.
Definition: OgreParticleSystem.h:548
OgreRadixSort.h
Ogre::ParticleSystem::mSorted
bool mSorted
Particles sorted according to camera?
Definition: OgreParticleSystem.h:689
Ogre::ParticleSystem::mNonvisibleTimeout
Real mNonvisibleTimeout
Update timeout when nonvisible (0 for no timeout)
Definition: OgreParticleSystem.h:693
Ogre::ParticleSystem::mTimeSinceLastVisible
Real mTimeSinceLastVisible
Amount of time non-visible so far.
Definition: OgreParticleSystem.h:697
Ogre::ParticleSystem::SortByDistanceFunctor
Sort by distance functor.
Definition: OgreParticleSystem.h:722
Ogre::ParticleSystem::mDefaultHeight
Real mDefaultHeight
Default height of each particle.
Definition: OgreParticleSystem.h:681
Ogre::ParticleSystem::CmdHeight
Command object for particle_height (see ParamCommand).
Definition: OgreParticleSystem.h:107
Ogre::ParticleSystem::getBoundingBox
virtual const AxisAlignedBox & getBoundingBox(void) const
Overridden from MovableObject.
Definition: OgreParticleSystem.h:380
Ogre::ParticleSystem::EmittedEmitterPool
map< String, EmittedEmitterList >::type EmittedEmitterPool
Definition: OgreParticleSystem.h:765
Ogre::ParticleSystem::mEmittedEmitterPoolInitialised
bool mEmittedEmitterPoolInitialised
Indication whether the emitted emitter pool (= pool with particle emitters that are emitted) is initi...
Definition: OgreParticleSystem.h:703
Ogre::ParticleSystem::mMaterial
MaterialPtr mMaterial
Pointer to the material to use.
Definition: OgreParticleSystem.h:677
Ogre::ParticleSystem::getSpeedFactor
Real getSpeedFactor(void) const
Gets the &#39;speed factor&#39; on this particle system.
Definition: OgreParticleSystem.h:424
OgreVector3.h
Ogre::ParticleSystem::msRendererCmd
static CmdRenderer msRendererCmd
Definition: OgreParticleSystem.h:654
_OgreExport
#define _OgreExport
Definition: OgrePlatform.h:257
Ogre::ParticleSystem::msCullCmd
static CmdCull msCullCmd
Command objects.
Definition: OgreParticleSystem.h:648
Ogre::list
Definition: OgrePrerequisites.h:505
Ogre::ParticleSystem::mLocalSpace
bool mLocalSpace
Particles in local space?
Definition: OgreParticleSystem.h:691
Ogre::MovableObject
Abstract class defining a movable object in a scene.
Definition: OgreMovableObject.h:60
Ogre::ParticleSystem::mSpeedFactor
Real mSpeedFactor
Speed factor.
Definition: OgreParticleSystem.h:683
Ogre::ParticleSystem::msIterationIntervalCmd
static CmdIterationInterval msIterationIntervalCmd
Definition: OgreParticleSystem.h:657
Ogre::ParticleSystem::mBoundingRadius
Real mBoundingRadius
Definition: OgreParticleSystem.h:662
OgreMovableObject.h
Ogre::ParticleSystem::mIsEmitting
bool mIsEmitting
Used to control if the particle system should emit particles or not.
Definition: OgreParticleSystem.h:705
Ogre::ParticleSystem::mEmittedEmitterPoolSize
size_t mEmittedEmitterPoolSize
The number of emitted emitters in the pool.
Definition: OgreParticleSystem.h:811
Ogre::ParticleSystem::SortByDirectionFunctor
Sort by direction functor.
Definition: OgreParticleSystem.h:712
Ogre::ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME
static String AUTODETECT_RESOURCE_GROUP_NAME
Special resource group name which causes resource group to be automatically determined based on searc...
Definition: OgreResourceGroupManager.h:270
Ogre::ParticleSystem::setSpeedFactor
void setSpeedFactor(Real speedFactor)
Sets a &#39;speed factor&#39; on this particle system, which means it scales the elapsed real time which has ...
Definition: OgreParticleSystem.h:420
Ogre::Real
float Real
Software floating point type.
Definition: OgrePrerequisites.h:70
Ogre::ParticleSystem::msWidthCmd
static CmdWidth msWidthCmd
Definition: OgreParticleSystem.h:653
Ogre::ParticleSystem::getSortingEnabled
bool getSortingEnabled(void) const
Gets whether particles are sorted relative to the camera.
Definition: OgreParticleSystem.h:563
Ogre::RenderQueue
Class to manage the scene object rendering queue.
Definition: OgreRenderQueue.h:92
OgreString.h
Ogre::ParticleSystem::ParticleEmitterList
vector< ParticleEmitter * >::type ParticleEmitterList
Definition: OgreParticleSystem.h:790
Ogre::ParticleSystem::mIterationInterval
Real mIterationInterval
Iteration interval.
Definition: OgreParticleSystem.h:685
Ogre::ParticleAffector
Abstract class defining the interface to be implemented by particle affectors.
Definition: OgreParticleAffector.h:64
Ogre::ParticleSystem::getDefaultNonVisibleUpdateTimeout
static Real getDefaultNonVisibleUpdateTimeout(void)
Get the default nonvisible timeout for all ParticleSystem instances.
Definition: OgreParticleSystem.h:482
Ogre::ParticleSystem::SortByDistanceFunctor::sortPos
Vector3 sortPos
Position to sort in.
Definition: OgreParticleSystem.h:725
Ogre::ParticleSystem::mBoundsAutoUpdate
bool mBoundsAutoUpdate
Definition: OgreParticleSystem.h:663
Ogre::ParticleSystem::getResourceGroupName
virtual const String & getResourceGroupName(void) const
Return the resource group to be used to load dependent resources.
Definition: OgreParticleSystem.h:539
Ogre::ParticleSystem::setSortingEnabled
void setSortingEnabled(bool enabled)
Set whether or not particles are sorted according to the camera.
Definition: OgreParticleSystem.h:561
Ogre::ParticleSystem::mRenderer
ParticleSystemRenderer * mRenderer
The renderer used to render this particle system.
Definition: OgreParticleSystem.h:799
Ogre::ParticleSystem::CmdLocalSpace
Command object for local space (see ParamCommand).
Definition: OgreParticleSystem.h:128
Ogre::ParticleSystem::getBoundingRadius
virtual Real getBoundingRadius(void) const
Overridden from MovableObject.
Definition: OgreParticleSystem.h:386
Ogre::ParticleSystem::mBoundsUpdateTime
Real mBoundsUpdateTime
Definition: OgreParticleSystem.h:664
Ogre::ParticleSystem::CmdCull
Command object for cull_each (see ParamCommand).
Definition: OgreParticleSystem.h:93
Ogre::ParticleSystem::mPoolSize
size_t mPoolSize
The number of particles in the pool.
Definition: OgreParticleSystem.h:808
OgreController.h
Ogre::ParticleSystem::msNonvisibleTimeoutCmd
static CmdNonvisibleTimeout msNonvisibleTimeoutCmd
Definition: OgreParticleSystem.h:658
Ogre::ParticleSystem::setDefaultNonVisibleUpdateTimeout
static void setDefaultNonVisibleUpdateTimeout(Real timeout)
Set the default nonvisible timeout for all ParticleSystem instances.
Definition: OgreParticleSystem.h:477
Ogre::Controller< Real >
Ogre::ParticleSystem::SortByDirectionFunctor::sortDir
Vector3 sortDir
Direction to sort in.
Definition: OgreParticleSystem.h:715
Ogre::Vector3
Standard 3-dimensional vector.
Definition: OgreVector3.h:51
Ogre::ParticleSystem::EmittedEmitterList
vector< ParticleEmitter * >::type EmittedEmitterList
Definition: OgreParticleSystem.h:763
Ogre::ParticleSystem::mAABB
AxisAlignedBox mAABB
Definition: OgreParticleSystem.h:661
Ogre::ParticleSystem::msEmittedEmitterQuotaCmd
static CmdEmittedEmitterQuota msEmittedEmitterQuotaCmd
Definition: OgreParticleSystem.h:652
Ogre::ParticleSystem::getDefaultIterationInterval
static Real getDefaultIterationInterval(void)
Get the default iteration interval for all ParticleSystem instances.
Definition: OgreParticleSystem.h:453
Ogre::ParticleSystem::mDefaultWidth
Real mDefaultWidth
Default width of each particle.
Definition: OgreParticleSystem.h:679
OgrePrerequisites.h
Ogre::ParticleSystem::mWorldAABB
AxisAlignedBox mWorldAABB
World AABB, only used to compare world-space positions to calc bounds.
Definition: OgreParticleSystem.h:668
Ogre::ParticleSystem::mUpdateRemainTime
Real mUpdateRemainTime
Definition: OgreParticleSystem.h:665
_OgrePrivate
#define _OgrePrivate
Definition: OgrePlatform.h:258
Ogre::ParticleSystemRenderer
Abstract class defining the interface required to be implemented by classes which provide rendering c...
Definition: OgreParticleSystemRenderer.h:49
Ogre::ParticleSystem::mParticlePool
ParticlePool mParticlePool
Pool of particle instances for use and reuse in the active particle list.
Definition: OgreParticleSystem.h:759
Ogre::Renderable::Visitor
Visitor object that can be used to iterate over a collection of Renderable instances abstractly...
Definition: OgreRenderable.h:377
Ogre::Node
Class representing a general-purpose node an articulated scene graph.
Definition: OgreNode.h:64
Ogre::ParticleSystem::ParticleAffectorList
vector< ParticleAffector * >::type ParticleAffectorList
Definition: OgreParticleSystem.h:791
Ogre::ParticleSystem::msLocalSpaceCmd
static CmdLocalSpace msLocalSpaceCmd
Definition: OgreParticleSystem.h:656
Ogre::ParticleSystem::mRadixSorter
static RadixSort< ActiveParticleList, Particle *, float > mRadixSorter
Definition: OgreParticleSystem.h:731
Ogre::ParticleSystem::msDefaultNonvisibleTimeout
static Real msDefaultNonvisibleTimeout
Default nonvisible update timeout.
Definition: OgreParticleSystem.h:819
Ogre::ParticleSystem::CmdQuota
Command object for quota (see ParamCommand).
Definition: OgreParticleSystem.h:72
Ogre::uint8
unsigned char uint8
Definition: OgrePlatform.h:361
Ogre::ParticleSystem::mTimeController
Controller< Real > * mTimeController
Controller for time update.
Definition: OgreParticleSystem.h:701
Ogre::ParticleSystem::mFreeParticles
FreeParticleList mFreeParticles
Free particle queue.
Definition: OgreParticleSystem.h:753
Ogre::ParticleSystem::mFreeEmittedEmitters
FreeEmittedEmitterMap mFreeEmittedEmitters
Free emitted emitter list.
Definition: OgreParticleSystem.h:781
Ogre::StringInterface
Class defining the common interface which classes can use to present a reflection-style, self-defining parameter set to callers.
Definition: OgreStringInterface.h:163
Ogre::ParticleSystem::mActiveEmittedEmitters
ActiveEmittedEmitterList mActiveEmittedEmitters
Active emitted emitter list.
Definition: OgreParticleSystem.h:788
Ogre::ParticleSystem::CmdMaterial
Command object for material (see ParamCommand).
Definition: OgreParticleSystem.h:86
Ogre::ParticleSystem::mRendererType
String mRendererType
The name of the type of renderer used to render this system.
Definition: OgreParticleSystem.h:805
Ogre::ParticleSystem::mLastVisibleFrame
unsigned long mLastVisibleFrame
Last frame in which known to be visible.
Definition: OgreParticleSystem.h:699
Ogre::String
_StringBase String
Definition: OgrePrerequisites.h:439
Ogre::ParticleSystem::mAffectors
ParticleAffectorList mAffectors
List of particle affectors, ie modifiers of particles.
Definition: OgreParticleSystem.h:796
Ogre::ParticleSystem::msHeightCmd
static CmdHeight msHeightCmd
Definition: OgreParticleSystem.h:649
Ogre::ParticleIterator
Convenience class to make it easy to step through all particles in a ParticleSystem.
Definition: OgreParticleIterator.h:45
Ogre::Camera
A viewpoint from which the scene will be rendered.
Definition: OgreCamera.h:86
OgreHeaderSuffix.h
Ogre::ParticleSystem::ParticlePool
vector< Particle * >::type ParticlePool
Definition: OgreParticleSystem.h:709
Ogre::RadixSort
Class for performing a radix sort (fast comparison-less sort based on byte value) on various standard...
Definition: OgreRadixSort.h:88
Ogre::Particle
Class representing a single particle instance.
Definition: OgreParticle.h:61
Ogre::uint32
unsigned int uint32
Definition: OgrePlatform.h:359
Ogre::ParticleSystem::CmdRenderer
Command object for renderer (see ParamCommand).
Definition: OgreParticleSystem.h:114
OgreParticleIterator.h
Ogre
Definition: OgreAndroidLogListener.h:34
Ogre::ParticleSystem::getIterationInterval
Real getIterationInterval(void) const
Gets a &#39;iteration interval&#39; on this particle system.
Definition: OgreParticleSystem.h:445
Ogre::ParticleSystem::CmdSorted
Command object for sorting (see ParamCommand).
Definition: OgreParticleSystem.h:121
Ogre::ParticleEmitter
Abstract class defining the interface to be implemented by particle emitters.
Definition: OgreParticleEmitter.h:72
Ogre::ParticleSystem::getNonVisibleUpdateTimeout
Real getNonVisibleUpdateTimeout(void) const
Gets when the particle system should stop updating after it hasn&#39;t been visible for a while...
Definition: OgreParticleSystem.h:473
Ogre::ParticleSystem::msDefaultIterationInterval
static Real msDefaultIterationInterval
Default iteration interval.
Definition: OgreParticleSystem.h:817
Ogre::ParticleSystem::msSortedCmd
static CmdSorted msSortedCmd
Definition: OgreParticleSystem.h:655
Ogre::ParticleSystem::getOrigin
const String & getOrigin(void) const
Get the origin of this particle system, e.g.
Definition: OgreParticleSystem.h:546
Ogre::SharedPtr< Material >
Ogre::ParticleSystem::mIterationIntervalSet
bool mIterationIntervalSet
Iteration interval set? Otherwise track default.
Definition: OgreParticleSystem.h:687
Ogre::ParticleSystem::FreeParticleList
list< Particle * >::type FreeParticleList
Definition: OgreParticleSystem.h:708
Ogre::vector
Definition: OgrePrerequisites.h:491
Ogre::ParticleSystem::CmdWidth
Command object for particle_width (see ParamCommand).
Definition: OgreParticleSystem.h:100
Ogre::ParticleSystem::mActiveParticles
ActiveParticleList mActiveParticles
Active particle list.
Definition: OgreParticleSystem.h:742
OgreHeaderPrefix.h
Ogre::ParticleSystem::getKeepParticlesInLocalSpace
bool getKeepParticlesInLocalSpace(void) const
Gets whether particles (and any affector effects) remain relative to the node the particle system is ...
Definition: OgreParticleSystem.h:608
Ogre::ParticleSystem::setDefaultIterationInterval
static void setDefaultIterationInterval(Real iterationInterval)
Set the default iteration interval for all ParticleSystem instances.
Definition: OgreParticleSystem.h:449
Ogre::ParticleSystem::msMaterialCmd
static CmdMaterial msMaterialCmd
Definition: OgreParticleSystem.h:650
Ogre::ParticleSystem::mOrigin
String mOrigin
Optional origin of this particle system (eg script name)
Definition: OgreParticleSystem.h:814
Ogre::ParticleSystem::FreeEmittedEmitterMap
map< String, FreeEmittedEmitterList >::type FreeEmittedEmitterMap
Definition: OgreParticleSystem.h:764
Ogre::ParticleSystem::mMaterialName
String mMaterialName
Name of the material to use.
Definition: OgreParticleSystem.h:673
OgreResourceGroupManager.h
Ogre::ParticleSystem::mNonvisibleTimeoutSet
bool mNonvisibleTimeoutSet
Update timeout when nonvisible set? Otherwise track default.
Definition: OgreParticleSystem.h:695
Ogre::ParticleSystem::mResourceGroupName
String mResourceGroupName
Name of the resource group to use to load materials.
Definition: OgreParticleSystem.h:671
Ogre::map
Definition: OgrePrerequisites.h:533
Ogre::ParticleSystem
Class defining particle system based special effects.
Definition: OgreParticleSystem.h:67
Ogre::ushort
unsigned short ushort
Definition: OgrePrerequisites.h:113
Ogre::ParamCommand
Abstract class which is command object which gets/sets parameters.
Definition: OgreStringInterface.h:79
Ogre::ParticleSystem::ActiveParticleList
list< Particle * >::type ActiveParticleList
Definition: OgreParticleSystem.h:707
Ogre::AxisAlignedBox
A 3D box aligned with the x/y/z axes.
Definition: OgreAxisAlignedBox.h:54
Ogre::ParticleSystem::CmdIterationInterval
Command object for iteration interval(see ParamCommand).
Definition: OgreParticleSystem.h:135
Ogre::ParticleSystem::ActiveEmittedEmitterList
list< ParticleEmitter * >::type ActiveEmittedEmitterList
Definition: OgreParticleSystem.h:762
Ogre::ParticleSystem::mCullIndividual
bool mCullIndividual
Do we cull each particle individually?
Definition: OgreParticleSystem.h:802
OgreStringInterface.h
Ogre::ParticleSystem::mEmitters
ParticleEmitterList mEmitters
List of particle emitters, ie sources of particles.
Definition: OgreParticleSystem.h:794
Ogre::ParticleSystem::msQuotaCmd
static CmdQuota msQuotaCmd
Definition: OgreParticleSystem.h:651
Ogre::ParticleSystem::FreeEmittedEmitterList
list< ParticleEmitter * >::type FreeEmittedEmitterList
Definition: OgreParticleSystem.h:761
Ogre::ParticleSystem::mEmittedEmitterPool
EmittedEmitterPool mEmittedEmitterPool
Pool of emitted emitters for use and reuse in the active emitted emitter list.
Definition: OgreParticleSystem.h:775
Ogre::ParticleSystem::CmdEmittedEmitterQuota
Command object for emittedEmitterQuota (see ParamCommand).
Definition: OgreParticleSystem.h:79
Ogre::ParticleSystem::CmdNonvisibleTimeout
Command object for nonvisible timeout (see ParamCommand).
Definition: OgreParticleSystem.h:142
Ogre::ParticleSystem::mIsRendererConfigured
bool mIsRendererConfigured
Have we set the material etc on the renderer?
Definition: OgreParticleSystem.h:675

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.