40 #ifndef _uirenderlayergroup_cpp
41 #define _uirenderlayergroup_cpp
43 #include "UI/renderlayergroup.h"
44 #include "UI/renderlayer.h"
45 #include "UI/quadrenderable.h"
68 { (*It).second->NotifyActive(); }
74 { (*It).second->NotifyInactive(); }
84 if( (*It).first > ZOrder ) {
108 if( (*RendIt).first == ZOrder )
109 return (*RendIt).second;
131 if( (*It).second == RL ) {
163 {
return "RenderLayerGroup"; }
void NotifyActive()
Notifies this RenderLayerGroup that it has become the active group.
RenderLayerContainer::const_iterator ConstRenderLayerIterator
Const Iterator type for RenderLayerPair instances stored by this class.
std::pair< UInt16, RenderLayer * > RenderLayerPair
An std::pair type for storing ZOrders in relation to RenderLayer instances.
void SwapLayers(RenderLayerGroup *OtherGroup)
Swaps the layers contained by this group and another group.
void RemoveLayer(RenderLayer *RL)
Removes a layer from this group.
~RenderLayerGroup()
Class destructor.
static String GetSerializableName()
Get the name of the the XML tag the Renderable class will leave behind as its instances are serialize...
UInt16 GetGroupID() const
Gets the ID of this RenderLayerGroup.
RenderLayer * GetLayerByZOrder(const UInt16 ZOrder) const
Gets a RenderLayer in this group by it's ZOrder.
void RemoveAllLayers()
Removes every layer in this group, from this group.
uint16_t UInt16
An 16-bit unsigned integer.
void NotifyInactive()
Notifies this RenderLayerGroup that it is no longer the active group.
uint32_t UInt32
An 32-bit unsigned integer.
RenderLayerContainer::iterator RenderLayerIterator
Iterator type for RenderLayerPair instances stored by this class.
RenderLayerIterator RenderLayerEnd()
Gets an iterator to one passed the last RenderLayer.
RenderLayerIterator RenderLayerBegin()
Gets an iterator to the first RenderLayer.
RenderLayer * GetLayer(const Whole Index) const
Gets a RenderLayer in this group by it's index.
RenderLayerGroup * GetActiveGroup() const
Gets the current RenderLayerGroup used for rendering.
RenderLayerContainer RenderLayers
Container storing all the layers that belong to this group and their ZOrders.
This class stores a group of render layers that can be set to be rendered.
QuadRenderable * ParentQuad
A pointer to the host QuadRenderable.
The bulk of the engine components go in this namspace.
unsigned long Whole
Whole is an unsigned integer, it will be at least 32bits in size.
RenderLayerGroup(const UInt16 ID, QuadRenderable *Creator)
Class constructor.
UInt16 GroupID
The ID of this group.
This represents a nestable quad for an object in a GUI layout.
virtual void _MarkDirty()
Marks this renderable as dirty, and informs other renderables if needed.
UInt32 GetNumRenderLayers() const
Gets the number of RenderLayers assigned to this group.
void AddLayer(RenderLayer *RL, const UInt16 ZOrder)
Adds a layer to this group by it's ZOrder.
std::string String
A datatype used to a series of characters.
This is the base class for the types of layers that can be added to a renderable. ...