OGRE-Next: Ogre::MovableObjectFactory Class Reference

| OGRE-Next 3.0.0 Object-Oriented Graphics Rendering Engine

Loading...
Searching...
No Matches
Public Member Functions | List of all members
Ogre::MovableObjectFactory Class Referenceabstract
Core | Component » Scene

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>`

Inheritance diagram for Ogre::MovableObjectFactory:
[legend]

## Public Member Functions
| MovableObjectFactory ()
virtual | ~MovableObjectFactory ()
virtual MovableObject * | createInstance (IdType id, ObjectMemoryManager *objectMemoryManager, SceneManager *manager, const NameValuePairList *params=0)
| Create a new instance of the object.
virtual void | destroyInstance (MovableObject *obj)=0
| Destroy an instance of the object.
virtual const String & | getType () const =0
| Get the type of the object to be created.

## Detailed Description

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.

## Constructor & Destructor Documentation

## ◆ MovableObjectFactory()

Ogre::MovableObjectFactory::MovableObjectFactory | ( |  | ) |
| inline

## ◆ ~MovableObjectFactory()

virtual Ogre::MovableObjectFactory::~MovableObjectFactory | ( |  | ) |
| inlinevirtual

## Member Function Documentation

## ◆ createInstance()

virtual MovableObject * Ogre::MovableObjectFactory::createInstance | ( | IdType | id,
|  | ObjectMemoryManager * | objectMemoryManager,
|  | SceneManager * | manager,
|  | const NameValuePairList * | params = 0 )
| virtual

Create a new instance of the object.

Parameters

  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.

## ◆ destroyInstance()

virtual void Ogre::MovableObjectFactory::destroyInstance | ( | MovableObject * | obj | ) |
| pure virtual

Destroy an instance of the object.

Implemented in Ogre::DecalFactory, Ogre::InternalCubemapProbeFactory, Ogre::ItemFactory, Ogre::LightFactory, Ogre::ManualObjectFactory, Ogre::ParticleSystemFactory, Ogre::Rectangle2DFactory, Ogre::v1::BillboardChainFactory, Ogre::v1::BillboardSetFactory, Ogre::v1::EntityFactory, Ogre::v1::ManualObjectFactory, Ogre::v1::Rectangle2DFactory, Ogre::v1::RibbonTrailFactory, and Ogre::WireAabbFactory.

## ◆ getType()

virtual const String & Ogre::MovableObjectFactory::getType | ( |  | ) | const
| pure virtual

Get the type of the object to be created.

Implemented in Ogre::DecalFactory, Ogre::InternalCubemapProbeFactory, Ogre::ItemFactory, Ogre::LightFactory, Ogre::ManualObjectFactory, Ogre::ParticleSystemFactory, Ogre::Rectangle2DFactory, Ogre::v1::BillboardChainFactory, Ogre::v1::BillboardSetFactory, Ogre::v1::EntityFactory, Ogre::v1::ManualObjectFactory, Ogre::v1::Rectangle2DFactory, Ogre::v1::RibbonTrailFactory, and Ogre::WireAabbFactory.

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

- OgreMovableObject.h