#include <OgreGuiManager.h>
Inheritance diagram for Ogre::GuiManager:
Public Methods | |
GuiManager () | |
virtual | ~GuiManager () |
GuiElement * | createGuiElement (const String &typeName, const String &instanceName, bool isTemplate=false) |
Creates a new GuiElement of the type requested. | |
GuiElement * | getGuiElement (const String &name, bool isTemplate=false) |
Gets a reference to an existing element. | |
void | destroyGuiElement (const String &instanceName, bool isTemplate=false) |
Destroys a GuiElement. | |
void | destroyGuiElement (GuiElement *pInstance, bool isTemplate=false) |
Destroys a GuiElement. | |
void | destroyAllGuiElements (bool isTemplate=false) |
Destroys all the GuiElement created so far. | |
void | addGuiElementFactory (GuiElementFactory *elemFactory) |
Registers a new GuiElementFactory with this manager. | |
GuiElement * | createGuiElementFromTemplate (const String &templateName, const String &typeName, const String &instanceName, bool isTemplate=false) |
GuiElement * | createGuiElementFromFactory (const String &typeName, const String &instanceName) |
Static Public Methods | |
GuiManager & | getSingleton (void) |
Override standard Singleton retrieval. | |
GuiManager * | getSingletonPtr (void) |
Protected Types | |
typedef std::map< String, GuiElementFactory * > | FactoryMap |
typedef std::map< String, GuiElement * > | ElementMap |
Protected Methods | |
ElementMap & | getElementMap (bool isTemplate) |
GuiElement * | createGuiElementImpl (const String &typeName, const String &instanceName, ElementMap &elementMap) |
GuiElement * | getGuiElementImpl (const String &name, ElementMap &elementMap) |
void | destroyGuiElementImpl (const String &instanceName, ElementMap &elementMap) |
void | destroyGuiElementImpl (GuiElement *pInstance, ElementMap &elementMap) |
void | destroyAllGuiElementsImpl (ElementMap &elementMap) |
Protected Attributes | |
FactoryMap | mFactories |
ElementMap | mInstances |
ElementMap | mTemplates |
Static Protected Attributes | |
GuiManager * | ms_Singleton = 0 |
Definition at line 39 of file OgreGuiManager.h.
|
Definition at line 107 of file OgreGuiManager.h. |
|
Definition at line 104 of file OgreGuiManager.h. |
|
Definition at line 39 of file OgreGuiManager.cpp. |
|
Definition at line 43 of file OgreGuiManager.cpp. References destroyAllGuiElements(). |
|
Registers a new GuiElementFactory with this manager.
Definition at line 210 of file OgreGuiManager.cpp. References Ogre::GuiElementFactory::getTypeName(), and mFactories. |
|
Creates a new GuiElement of the type requested.
Definition at line 89 of file OgreGuiManager.cpp. References createGuiElementImpl(), and getElementMap(). Referenced by createGuiElementFromTemplate(). |
|
Definition at line 116 of file OgreGuiManager.cpp. References Except, and mFactories. Referenced by createGuiElementImpl(). |
|
Definition at line 56 of file OgreGuiManager.cpp. References createGuiElement(), getGuiElement(), and Ogre::GuiElement::getTypeName(). |
|
Definition at line 95 of file OgreGuiManager.cpp. References createGuiElementFromFactory(), Except, and Ogre::GuiElement::initialise(). Referenced by createGuiElement(). |
|
Destroys all the GuiElement created so far.
Definition at line 183 of file OgreGuiManager.cpp. References destroyAllGuiElementsImpl(), and getElementMap(). Referenced by ~GuiManager(). |
|
Definition at line 188 of file OgreGuiManager.cpp. References Except, and mFactories. Referenced by destroyAllGuiElements(). |
|
Destroys a GuiElement.
Definition at line 155 of file OgreGuiManager.cpp. References destroyGuiElementImpl(), getElementMap(), and Ogre::GuiElement::getName(). |
|
Destroys a GuiElement.
Definition at line 149 of file OgreGuiManager.cpp. References destroyGuiElementImpl(), and getElementMap(). |
|
|
|
Definition at line 161 of file OgreGuiManager.cpp. References Except, and mFactories. Referenced by destroyGuiElement(). |
|
Definition at line 50 of file OgreGuiManager.cpp. References mInstances, and mTemplates. Referenced by createGuiElement(), destroyAllGuiElements(), destroyGuiElement(), and getGuiElement(). |
|
Gets a reference to an existing element.
Definition at line 131 of file OgreGuiManager.cpp. References getElementMap(), and getGuiElementImpl(). Referenced by createGuiElementFromTemplate(). |
|
Definition at line 136 of file OgreGuiManager.cpp. References Except. Referenced by getGuiElement(). |
|
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< GuiManager >. Definition at line 219 of file OgreGuiManager.cpp. |
|
Definition at line 71 of file OgreSingleton.h. |
|
Definition at line 105 of file OgreGuiManager.h. Referenced by addGuiElementFactory(), createGuiElementFromFactory(), destroyAllGuiElementsImpl(), and destroyGuiElementImpl(). |
|
Definition at line 108 of file OgreGuiManager.h. Referenced by getElementMap(). |
|
Definition at line 37 of file OgreGuiManager.cpp. |
|
Definition at line 109 of file OgreGuiManager.h. Referenced by getElementMap(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:17:43 2004