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 (uint32 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 | |
uint32 | 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 578 of file OgreMovableObject.h.
|
inline |
Definition at line 588 of file OgreMovableObject.h.
|
inlinevirtual |
Definition at line 589 of file OgreMovableObject.h.
|
inline |
Notify this factory of the type mask to apply.
Definition at line 628 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 635 of file OgreMovableObject.h.
|
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.
|
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 619 of file OgreMovableObject.h.
|
protected |
Type flag, allocated if requested.
Definition at line 582 of file OgreMovableObject.h.