OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::ParticleEmitterFactory Class Referenceabstract

Abstract class defining the interface to be implemented by creators of ParticleEmitter subclasses. More...

#include <OgreParticleEmitterFactory.h>

+ Inheritance diagram for Ogre::ParticleEmitterFactory:
+ Collaboration diagram for Ogre::ParticleEmitterFactory:

Public Member Functions

 ParticleEmitterFactory ()
 
virtual ~ParticleEmitterFactory ()
 
virtual ParticleEmittercreateEmitter (ParticleSystem *psys)=0
 Creates a new emitter instance. More...
 
virtual void destroyEmitter (ParticleEmitter *e)
 Destroys the emitter pointed to by the parameter (for early clean up if required). More...
 
virtual String getName () const =0
 Returns the name of the factory, the name which identifies the particle emitter type this factory creates. 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)
 

Protected Attributes

vector< ParticleEmitter * >::type mEmitters
 

Detailed Description

Abstract class defining the interface to be implemented by creators of ParticleEmitter subclasses.

Remarks
Plugins or 3rd party applications can add new types of particle emitters to Ogre by creating subclasses of the ParticleEmitter class. Because multiple instances of these emitters may be required, a factory class to manage the instances is also required.
ParticleEmitterFactory subclasses must allow the creation and destruction of ParticleEmitter subclasses. They must also be registered with the ParticleSystemManager. All factories have a name which identifies them, examples might be 'point', 'cone', or 'box', and these can be also be used from particle system scripts.

Definition at line 56 of file OgreParticleEmitterFactory.h.

Constructor & Destructor Documentation

Ogre::ParticleEmitterFactory::ParticleEmitterFactory ( )
inline

Definition at line 61 of file OgreParticleEmitterFactory.h.

virtual Ogre::ParticleEmitterFactory::~ParticleEmitterFactory ( )
virtual

Member Function Documentation

virtual ParticleEmitter* Ogre::ParticleEmitterFactory::createEmitter ( ParticleSystem psys)
pure virtual

Creates a new emitter instance.

Remarks
The subclass MUST add a pointer to the created instance to mEmitters.

Implemented in Ogre::CylinderEmitterFactory, Ogre::EllipsoidEmitterFactory, Ogre::HollowEllipsoidEmitterFactory, Ogre::RingEmitterFactory, Ogre::BoxEmitterFactory, and Ogre::PointEmitterFactory.

virtual void Ogre::ParticleEmitterFactory::destroyEmitter ( ParticleEmitter e)
virtual

Destroys the emitter pointed to by the parameter (for early clean up if required).

virtual String Ogre::ParticleEmitterFactory::getName ( ) const
pure virtual

Returns the name of the factory, the name which identifies the particle emitter type this factory creates.

Implemented in Ogre::CylinderEmitterFactory, Ogre::EllipsoidEmitterFactory, Ogre::HollowEllipsoidEmitterFactory, Ogre::RingEmitterFactory, Ogre::BoxEmitterFactory, and Ogre::PointEmitterFactory.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
)
inlineinherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr)
inlineinherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
)
inlineinherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

Member Data Documentation

vector<ParticleEmitter*>::type Ogre::ParticleEmitterFactory::mEmitters
protected

Definition at line 59 of file OgreParticleEmitterFactory.h.


The documentation for this class was generated from the following file: