#include <OgreParticleSystemManager.h>
Inheritance diagram for Ogre::ParticleSystemManager:
Public Types | |||||
typedef std::map< String, ParticleSystem * > | ParticleTemplateMap | ||||
typedef std::map< String, ParticleAffectorFactory * > | ParticleAffectorFactoryMap | ||||
typedef std::map< String, ParticleEmitterFactory * > | ParticleEmitterFactoryMap | ||||
typedef std::map< String, ParticleSystemRendererFactory * > | ParticleSystemRendererFactoryMap | ||||
typedef MapIterator< ParticleAffectorFactoryMap > | ParticleAffectorFactoryIterator | ||||
typedef MapIterator< ParticleEmitterFactoryMap > | ParticleEmitterFactoryIterator | ||||
typedef MapIterator< ParticleSystemRendererFactoryMap > | ParticleRendererFactoryIterator | ||||
typedef MapIterator< ParticleTemplateMap > | ParticleSystemTemplateIterator | ||||
Public Member Functions | |||||
ParticleSystemManager () | |||||
virtual | ~ParticleSystemManager () | ||||
void | addEmitterFactory (ParticleEmitterFactory *factory) | ||||
Adds a new 'factory' object for emitters to the list of available emitter types. | |||||
void | addAffectorFactory (ParticleAffectorFactory *factory) | ||||
Adds a new 'factory' object for affectors to the list of available affector types. | |||||
void | addRendererFactory (ParticleSystemRendererFactory *factory) | ||||
Registers a factory class for creating ParticleSystemRenderer instances. | |||||
void | addTemplate (const String &name, ParticleSystem *sysTemplate) | ||||
Adds a new particle system template to the list of available templates. | |||||
ParticleSystem * | createTemplate (const String &name, const String &resourceGroup) | ||||
Create a new particle system template. | |||||
ParticleSystem * | getTemplate (const String &name) | ||||
Retrieves a particle system template for possible modification. | |||||
ParticleEmitter * | _createEmitter (const String &emitterType, ParticleSystem *psys) | ||||
Internal method for creating a new emitter from a factory. | |||||
void | _destroyEmitter (ParticleEmitter *emitter) | ||||
Internal method for destroying an emitter. | |||||
ParticleAffector * | _createAffector (const String &affectorType, ParticleSystem *psys) | ||||
Internal method for creating a new affector from a factory. | |||||
void | _destroyAffector (ParticleAffector *affector) | ||||
Internal method for destroying an affector. | |||||
ParticleSystemRenderer * | _createRenderer (const String &rendererType) | ||||
Internal method for creating a new renderer from a factory. | |||||
void | _destroyRenderer (ParticleSystemRenderer *renderer) | ||||
Internal method for destroying a renderer. | |||||
bool | frameStarted (const FrameEvent &evt) | ||||
Frame event. | |||||
bool | frameEnded (const FrameEvent &evt) | ||||
Frame event. | |||||
void | _initialise (void) | ||||
Init method to be called by OGRE system. | |||||
const StringVector & | getScriptPatterns (void) const | ||||
| |||||
void | parseScript (DataStreamPtr &stream, const String &groupName) | ||||
| |||||
Real | getLoadingOrder (void) const | ||||
| |||||
ParticleAffectorFactoryIterator | getAffectorFactoryIterator (void) | ||||
Return an iterator over the affector factories currently registered. | |||||
ParticleEmitterFactoryIterator | getEmitterFactoryIterator (void) | ||||
Return an iterator over the emitter factories currently registered. | |||||
ParticleRendererFactoryIterator | getRendererFactoryIterator (void) | ||||
Return an iterator over the renderer factories currently registered. | |||||
ParticleSystemTemplateIterator | getTemplateIterator (void) | ||||
Gets an iterator over the list of particle system templates. | |||||
ParticleSystemFactory * | _getFactory (void) | ||||
Get an instance of ParticleSystemFactory (internal use). | |||||
Static Public Member Functions | |||||
ParticleSystemManager & | getSingleton (void) | ||||
Override standard Singleton retrieval. | |||||
ParticleSystemManager * | getSingletonPtr (void) | ||||
Override standard Singleton retrieval. | |||||
Protected Member Functions | |||||
void | parseNewEmitter (const String &type, DataStreamPtr &chunk, ParticleSystem *sys) | ||||
Internal script parsing method. | |||||
void | parseNewAffector (const String &type, DataStreamPtr &chunk, ParticleSystem *sys) | ||||
Internal script parsing method. | |||||
void | parseAttrib (const String &line, ParticleSystem *sys) | ||||
Internal script parsing method. | |||||
void | parseEmitterAttrib (const String &line, ParticleEmitter *sys) | ||||
Internal script parsing method. | |||||
void | parseAffectorAttrib (const String &line, ParticleAffector *sys) | ||||
Internal script parsing method. | |||||
void | skipToNextCloseBrace (DataStreamPtr &chunk) | ||||
Internal script parsing method. | |||||
void | skipToNextOpenBrace (DataStreamPtr &chunk) | ||||
Internal script parsing method. | |||||
ParticleSystem * | createSystemImpl (const String &name, size_t quota, const String &resourceGroup) | ||||
Internal implementation of createSystem. | |||||
ParticleSystem * | createSystemImpl (const String &name, const String &templateName) | ||||
Internal implementation of createSystem. | |||||
void | destroySystemImpl (ParticleSystem *sys) | ||||
Internal implementation of destroySystem. | |||||
Protected Attributes | |||||
ParticleTemplateMap | mSystemTemplates | ||||
Templates based on scripts. | |||||
ParticleEmitterFactoryMap | mEmitterFactories | ||||
Factories for named emitter types (can be extended using plugins). | |||||
ParticleAffectorFactoryMap | mAffectorFactories | ||||
Factories for named affector types (can be extended using plugins). | |||||
ParticleSystemRendererFactoryMap | mRendererFactories | ||||
Map of renderer types to factories. | |||||
StringVector | mScriptPatterns | ||||
ParticleSystemFactory * | mFactory | ||||
Static Protected Attributes | |||||
ParticleSystemManager * | ms_Singleton | ||||
Friends | |||||
class | ParticleSystemFactory |
Definition at line 67 of file OgreParticleSystemManager.h.
|
Definition at line 294 of file OgreParticleSystemManager.h. |
|
Definition at line 73 of file OgreParticleSystemManager.h. |
|
Definition at line 295 of file OgreParticleSystemManager.h. |
|
Definition at line 74 of file OgreParticleSystemManager.h. |
|
Definition at line 296 of file OgreParticleSystemManager.h. |
|
Definition at line 75 of file OgreParticleSystemManager.h. |
|
Definition at line 305 of file OgreParticleSystemManager.h. Referenced by getTemplateIterator(). |
|
Definition at line 72 of file OgreParticleSystemManager.h. |
|
|
|
|
|
Internal method for creating a new affector from a factory.
|
|
Internal method for creating a new emitter from a factory.
|
|
Internal method for creating a new renderer from a factory.
|
|
Internal method for destroying an affector.
|
|
Internal method for destroying an emitter.
|
|
Internal method for destroying a renderer.
|
|
Get an instance of ParticleSystemFactory (internal use).
Definition at line 314 of file OgreParticleSystemManager.h. |
|
Init method to be called by OGRE system.
|
|
Adds a new 'factory' object for affectors to the list of available affector types.
|
|
Adds a new 'factory' object for emitters to the list of available emitter types.
|
|
Registers a factory class for creating ParticleSystemRenderer instances.
|
|
Adds a new particle system template to the list of available templates.
|
|
Internal implementation of createSystem.
|
|
Internal implementation of createSystem.
|
|
Create a new particle system template.
|
|
Internal implementation of destroySystem.
|
|
Frame event.
|
|
Frame event.
|
|
Return an iterator over the affector factories currently registered.
|
|
Return an iterator over the emitter factories currently registered.
|
|
Implements Ogre::ScriptLoader. |
|
Return an iterator over the renderer factories currently registered.
|
|
Implements Ogre::ScriptLoader. |
|
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< ParticleSystemManager >. |
|
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< ParticleSystemManager >. |
|
Retrieves a particle system template for possible modification.
|
|
Gets an iterator over the list of particle system templates.
Definition at line 307 of file OgreParticleSystemManager.h. References ParticleSystemTemplateIterator. |
|
Internal script parsing method.
|
|
Internal script parsing method.
|
|
Internal script parsing method.
|
|
Internal script parsing method.
|
|
Internal script parsing method.
|
|
Implements Ogre::ScriptLoader. |
|
Internal script parsing method.
|
|
Internal script parsing method.
|
|
Definition at line 70 of file OgreParticleSystemManager.h. |
|
Factories for named affector types (can be extended using plugins).
Definition at line 84 of file OgreParticleSystemManager.h. |
|
Factories for named emitter types (can be extended using plugins).
Definition at line 81 of file OgreParticleSystemManager.h. |
|
Definition at line 92 of file OgreParticleSystemManager.h. |
|
Map of renderer types to factories.
Definition at line 87 of file OgreParticleSystemManager.h. |
|
Definition at line 54 of file OgreSingleton.h. |
|
Definition at line 89 of file OgreParticleSystemManager.h. |
|
Templates based on scripts.
Definition at line 78 of file OgreParticleSystemManager.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:41:19 2006