Interface definition for a factory class which produces a certain kind of MovableObject, and can be registered with Root in order to allow all clients to produce new instances of this object, integrated with the standard Ogre processing. More...
#include <OgreMovableObject.h>
Public Member Functions | |
MovableObjectFactory () | |
virtual | ~MovableObjectFactory () |
void | _notifyTypeFlags (unsigned long flag) |
Notify this factory of the type mask to apply. More... | |
virtual MovableObject * | createInstance (const String &name, SceneManager *manager, const NameValuePairList *params=0) |
Create a new instance of the object. More... | |
virtual void | destroyInstance (MovableObject *obj)=0 |
Destroy an instance of the object. More... | |
virtual const String & | getType (void) const =0 |
Get the type of the object to be created. More... | |
uint32 | getTypeFlags (void) const |
Gets the type flag for this factory. 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) |
virtual bool | requestTypeFlags (void) const |
Does this factory require the allocation of a 'type flag', used to selectively include / exclude this type from scene queries? More... | |
Protected Member Functions | |
virtual MovableObject * | createInstanceImpl (const String &name, const NameValuePairList *params=0)=0 |
Internal implementation of create method - must be overridden. More... | |
Protected Attributes | |
unsigned long | mTypeFlag |
Type flag, allocated if requested. More... | |
Interface definition for a factory class which produces a certain kind of MovableObject, and can be registered with Root in order to allow all clients to produce new instances of this object, integrated with the standard Ogre processing.
Definition at line 559 of file OgreMovableObject.h.
|
inline |
Definition at line 569 of file OgreMovableObject.h.
|
inlinevirtual |
Definition at line 570 of file OgreMovableObject.h.
|
inline |
Notify this factory of the type mask to apply.
Definition at line 609 of file OgreMovableObject.h.
|
virtual |
Create a new instance of the object.
name | The name of the new object |
manager | The SceneManager instance that will be holding the instance once created. |
params | Name/value pair list of additional parameters required to construct the object (defined per subtype). Optional. |
|
protectedpure virtual |
Internal implementation of create method - must be overridden.
Implemented in Ogre::BillboardSetFactory, Ogre::EntityFactory, Ogre::LightFactory, Ogre::ManualObjectFactory, Ogre::ParticleSystemFactory, Ogre::BillboardChainFactory, Ogre::RibbonTrailFactory, Ogre::PCZLightFactory, Ogre::PortalFactory, and Ogre::AntiPortalFactory.
|
pure virtual |
Destroy an instance of the object.
Implemented in Ogre::BillboardSetFactory, Ogre::EntityFactory, Ogre::LightFactory, Ogre::ManualObjectFactory, Ogre::ParticleSystemFactory, Ogre::BillboardChainFactory, Ogre::RibbonTrailFactory, Ogre::PCZLightFactory, Ogre::PortalFactory, and Ogre::AntiPortalFactory.
|
pure virtual |
Get the type of the object to be created.
Implemented in Ogre::BillboardSetFactory, Ogre::EntityFactory, Ogre::LightFactory, Ogre::ManualObjectFactory, Ogre::ParticleSystemFactory, Ogre::BillboardChainFactory, Ogre::RibbonTrailFactory, Ogre::PCZLightFactory, Ogre::PortalFactory, and Ogre::AntiPortalFactory.
|
inline |
Gets the type flag for this factory.
Definition at line 616 of file OgreMovableObject.h.
|
inlineinherited |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 107 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 118 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
operator new, with debug line info
Definition at line 67 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 72 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
placement operator new
Definition at line 78 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
array operator new, with debug line info
Definition at line 85 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 90 of file OgreMemoryAllocatedObject.h.
|
inlinevirtual |
Does this factory require the allocation of a 'type flag', used to selectively include / exclude this type from scene queries?
Reimplemented in Ogre::PortalFactory, and Ogre::AntiPortalFactory.
Definition at line 600 of file OgreMovableObject.h.
|
protected |
Type flag, allocated if requested.
Definition at line 563 of file OgreMovableObject.h.