#include <OgreGuiManager.h>
Inheritance diagram for Ogre::GuiManager:
Public Types | |
typedef std::map< String, GuiElement * > | ElementMap |
typedef MapIterator< ElementMap > | TemplateIterator |
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 * | cloneGuiElementFromTemplate (const String &templateName, const String &instanceName) |
GuiElement * | createGuiElementFromFactory (const String &typeName, const String &instanceName) |
TemplateIterator | getTemplateIterator () |
Returns an iterator over all templates in this manager. | |
bool | isTemplate (String strName) const |
Static Public Methods | |
GuiManager & | getSingleton (void) |
Override standard Singleton retrieval. | |
GuiManager * | getSingletonPtr (void) |
Override standard Singleton retrieval. | |
Protected Types | |
typedef std::map< String, GuiElementFactory * > | FactoryMap |
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 40 of file OgreGuiManager.h.
|
Definition at line 98 of file OgreGuiManager.h. |
|
Definition at line 143 of file OgreGuiManager.h. |
|
Definition at line 99 of file OgreGuiManager.h. |
|
Definition at line 49 of file OgreGuiManager.cpp. |
|
Definition at line 53 of file OgreGuiManager.cpp. References destroyAllGuiElements(). |
|
Registers a new GuiElementFactory with this manager.
Definition at line 237 of file OgreGuiManager.cpp. References Ogre::GuiElementFactory::getTypeName(), and mFactories. |
|
Definition at line 100 of file OgreGuiManager.cpp. References Ogre::GuiElement::clone(), and getGuiElement(). |
|
Creates a new GuiElement of the type requested.
Definition at line 107 of file OgreGuiManager.cpp. References createGuiElementImpl(), getElementMap(), and isTemplate(). Referenced by createGuiElementFromTemplate(). |
|
Definition at line 134 of file OgreGuiManager.cpp. References Except, and mFactories. Referenced by createGuiElementImpl(). |
|
Definition at line 66 of file OgreGuiManager.cpp. References createGuiElement(), getGuiElement(), Ogre::GuiElement::getTypeName(), and isTemplate(). |
|
Definition at line 113 of file OgreGuiManager.cpp. References createGuiElementFromFactory(), Except, and Ogre::GuiElement::initialise(). Referenced by createGuiElement(). |
|
Destroys all the GuiElement created so far.
Definition at line 201 of file OgreGuiManager.cpp. References destroyAllGuiElementsImpl(), getElementMap(), and isTemplate(). Referenced by ~GuiManager(). |
|
Definition at line 206 of file OgreGuiManager.cpp. References Ogre::GuiContainer::_removeChild(), Except, Ogre::GuiElement::getName(), Ogre::GuiElement::getParent(), Ogre::GuiElement::getTypeName(), and mFactories. Referenced by destroyAllGuiElements(). |
|
Destroys a GuiElement.
Definition at line 173 of file OgreGuiManager.cpp. References destroyGuiElementImpl(), getElementMap(), Ogre::GuiElement::getName(), and isTemplate(). |
|
Destroys a GuiElement.
Definition at line 167 of file OgreGuiManager.cpp. References destroyGuiElementImpl(), getElementMap(), and isTemplate(). |
|
|
|
Definition at line 179 of file OgreGuiManager.cpp. References Except, and mFactories. Referenced by destroyGuiElement(). |
|
Definition at line 60 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 149 of file OgreGuiManager.cpp. References getElementMap(), getGuiElementImpl(), and isTemplate(). Referenced by cloneGuiElementFromTemplate(), and createGuiElementFromTemplate(). |
|
Definition at line 154 of file OgreGuiManager.cpp. References Except. Referenced by getGuiElement(). |
|
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< GuiManager >. Definition at line 44 of file OgreGuiManager.cpp. References Ogre::Singleton< GuiManager >::ms_Singleton. |
|
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< GuiManager >. Definition at line 40 of file OgreGuiManager.cpp. References Ogre::Singleton< GuiManager >::ms_Singleton. |
|
Returns an iterator over all templates in this manager.
Definition at line 101 of file OgreGuiManager.h. |
|
Definition at line 106 of file OgreGuiManager.h. Referenced by createGuiElement(), createGuiElementFromTemplate(), destroyAllGuiElements(), destroyGuiElement(), and getGuiElement(). |
|
Definition at line 144 of file OgreGuiManager.h. Referenced by addGuiElementFactory(), createGuiElementFromFactory(), destroyAllGuiElementsImpl(), and destroyGuiElementImpl(). |
|
Definition at line 146 of file OgreGuiManager.h. Referenced by getElementMap(). |
|
Definition at line 39 of file OgreGuiManager.cpp. Referenced by getSingleton(), and getSingletonPtr(). |
|
Definition at line 147 of file OgreGuiManager.h. Referenced by getElementMap(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Fri May 14 23:26:17 2004