28 #ifndef __OverlayManager_H__
29 #define __OverlayManager_H__
86 ElementMap& getElementMap(
bool isTemplate);
92 bool hasOverlayElementImpl(
const String& name, ElementMap& elementMap);
94 void destroyOverlayElementImpl(
const String& instanceName, ElementMap& elementMap);
96 void destroyOverlayElementImpl(
OverlayElement* pInstance, ElementMap& elementMap);
98 void destroyAllOverlayElementsImpl(ElementMap& elementMap);
109 Real getLoadingOrder(
void)
const;
118 void destroy(
const String& name);
120 void destroy(
Overlay* overlay);
122 void destroyAll(
void);
124 OverlayMapIterator getOverlayIterator(
void);
133 bool hasViewportChanged(
void)
const;
136 int getViewportHeight(
void)
const;
139 int getViewportWidth(
void)
const;
140 Real getViewportAspectRatio(
void)
const;
158 bool hasOverlayElement(
const String& name,
bool isTemplate =
false);
165 void destroyOverlayElement(
const String& instanceName,
bool isTemplate =
false);
172 void destroyOverlayElement(
OverlayElement* pInstance,
bool isTemplate =
false);
179 void destroyAllOverlayElements(
bool isTemplate =
false);
207 return TemplateIterator (mTemplates.begin (), mTemplates.end ()) ;
211 return (mTemplates.find (strName) != mTemplates.end()) ;
TemplateIterator getTemplateIterator()
Returns an iterator over all templates in this manager.
LoadedScripts mLoadedScripts
Abstract class defining the interface used by classes which wish to perform script loading to define ...
Concrete IteratorWrapper for nonconst access to the underlying key-value container.
float Real
Software floating point type.
StringVector mScriptPatterns
Class to manage the scene object rendering queue.
vector< String >::type StringVector
#define _OgreOverlayExport
Manages Overlay objects, parsing them from .overlay files and storing a lookup library of them...
bool isTemplate(String strName) const
An abstraction of a viewport, i.e.
map< String, OverlayElementFactory * >::type FactoryMap
OrientationMode
Specifies orientation mode.
MapIterator< OverlayMap > OverlayMapIterator
Defines the interface which all components wishing to supply OverlayElement subclasses must implement...
A viewpoint from which the scene will be rendered.
OrientationMode mLastViewportOrientationMode
set< String >::type LoadedScripts
Abstract definition of a 2D element to be displayed in an Overlay.
Template class for creating single-instance global classes.
const FactoryMap & getOverlayElementFactoryMap() const
Get const access to the list of registered OverlayElement factories.
A 2D element which contains other OverlayElement instances.
bool mViewportDimensionsChanged
map< String, OverlayElement * >::type ElementMap
MapIterator< ElementMap > TemplateIterator
Represents a layer which is rendered on top of the 'normal' scene contents.
map< String, Overlay * >::type OverlayMap
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...