MyGUI 3.4.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
MyGUI::LayerNode Class Reference

#include <MyGUI_LayerNode.h>

Inheritance diagram for MyGUI::LayerNode:
Inheritance graph
[legend]

Public Types

typedef RTTIBase Base
 
typedef LayerNode RTTIBase
 
- Public Types inherited from MyGUI::ILayerNode
typedef RTTIBase Base
 
typedef ILayerNode RTTIBase
 
- Public Types inherited from MyGUI::IObject
typedef IObject RTTIBase
 

Public Member Functions

virtual const std::string & getTypeName () const override
 
virtual bool isType (const std::type_info &_type) const override
 
template<typename Type >
bool isType () const
 
 LayerNode (ILayer *_layer, ILayerNode *_parent=nullptr)
 
 ~LayerNode () override
 
ILayergetLayer () const override
 
ILayerNodegetParent () const override
 
ILayerNodecreateChildItemNode () override
 
void destroyChildItemNode (ILayerNode *_node) override
 
void upChildItemNode (ILayerNode *_node) override
 
EnumeratorILayerNode getEnumerator () const override
 
size_t getLayerNodeCount () const override
 
ILayerNodegetLayerNodeAt (size_t _index) const override
 
void attachLayerItem (ILayerItem *_item) override
 
void detachLayerItem (ILayerItem *_item) override
 
RenderItemaddToRenderItem (ITexture *_texture, bool _firstQueue, bool _manualRender) override
 
void outOfDate (RenderItem *_item) override
 
ILayerItemgetLayerItemByPoint (int _left, int _top) const override
 
void renderToTarget (IRenderTarget *_target, bool _update) override
 
void resizeView (const IntSize &_viewSize) override
 
float getNodeDepth () const override
 
bool isOutOfDate () const
 
- Public Member Functions inherited from MyGUI::ILayerNode
virtual const std::string & getTypeName () const override
 
virtual bool isType (const std::type_info &_type) const override
 
template<typename Type >
bool isType () const
 
virtual ILayergetLayer () const =0
 
virtual ILayerNodegetParent () const =0
 
virtual ILayerNodecreateChildItemNode ()=0
 
virtual void destroyChildItemNode (ILayerNode *_node)=0
 
virtual void upChildItemNode (ILayerNode *_node)=0
 
virtual EnumeratorILayerNode getEnumerator () const =0
 
virtual size_t getLayerNodeCount () const =0
 
virtual ILayerNodegetLayerNodeAt (size_t _index) const =0
 
virtual void attachLayerItem (ILayerItem *_item)=0
 
virtual void detachLayerItem (ILayerItem *_root)=0
 
virtual RenderItemaddToRenderItem (ITexture *_texture, bool _firstQueue, bool _separate)=0
 
virtual void outOfDate (RenderItem *_item)=0
 
virtual ILayerItemgetLayerItemByPoint (int _left, int _top) const =0
 
virtual void renderToTarget (IRenderTarget *_target, bool _update)=0
 
virtual void resizeView (const IntSize &_viewSize)=0
 
virtual float getNodeDepth () const =0
 
- Public Member Functions inherited from MyGUI::IObject
virtual const std::string & getTypeName () const
 
virtual bool isType (const std::type_info &_type) const
 
template<typename Type >
bool isType () const
 
template<typename Type >
Type * castType (bool _throw=true)
 
template<typename Type >
const Type * castType (bool _throw=true) const
 
 IObject ()=default
 
virtual ~IObject ()=default
 

Static Public Member Functions

static const std::string & getClassTypeName ()
 
- Static Public Member Functions inherited from MyGUI::ILayerNode
static const std::string & getClassTypeName ()
 
- Static Public Member Functions inherited from MyGUI::IObject
static const std::string & getClassTypeName ()
 

Protected Member Functions

void updateCompression ()
 
RenderItemaddToRenderItemFirstQueue (ITexture *_texture, bool _manualRender)
 
RenderItemaddToRenderItemSecondQueue (ITexture *_texture, bool _manualRender)
 

Protected Attributes

VectorRenderItem mFirstRenderItems
 
VectorRenderItem mSecondRenderItems
 
size_t mLastNotEmptyItem
 
VectorLayerItem mLayerItems
 
VectorILayerNode mChildItems
 
ILayerNodemParent
 
ILayermLayer
 
bool mOutOfDate
 
bool mOutOfDateCompression
 
float mDepth
 

Detailed Description

Definition at line 22 of file MyGUI_LayerNode.h.

Member Typedef Documentation

◆ Base

Definition at line 25 of file MyGUI_LayerNode.h.

◆ RTTIBase

Definition at line 25 of file MyGUI_LayerNode.h.

Constructor & Destructor Documentation

◆ LayerNode()

MyGUI::LayerNode::LayerNode ( ILayer _layer,
ILayerNode _parent = nullptr 
)
explicit

Definition at line 17 of file MyGUI_LayerNode.cpp.

◆ ~LayerNode()

MyGUI::LayerNode::~LayerNode ( )
override

Definition at line 27 of file MyGUI_LayerNode.cpp.

Member Function Documentation

◆ addToRenderItem()

RenderItem * MyGUI::LayerNode::addToRenderItem ( ITexture _texture,
bool  _firstQueue,
bool  _manualRender 
)
overridevirtual

Implements MyGUI::ILayerNode.

Definition at line 138 of file MyGUI_LayerNode.cpp.

◆ addToRenderItemFirstQueue()

RenderItem * MyGUI::LayerNode::addToRenderItemFirstQueue ( ITexture _texture,
bool  _manualRender 
)
protected

Definition at line 150 of file MyGUI_LayerNode.cpp.

◆ addToRenderItemSecondQueue()

RenderItem * MyGUI::LayerNode::addToRenderItemSecondQueue ( ITexture _texture,
bool  _manualRender 
)
protected

Definition at line 196 of file MyGUI_LayerNode.cpp.

◆ attachLayerItem()

void MyGUI::LayerNode::attachLayerItem ( ILayerItem _item)
overridevirtual

Implements MyGUI::ILayerNode.

Definition at line 223 of file MyGUI_LayerNode.cpp.

◆ createChildItemNode()

ILayerNode * MyGUI::LayerNode::createChildItemNode ( )
overridevirtual

Implements MyGUI::ILayerNode.

Definition at line 42 of file MyGUI_LayerNode.cpp.

◆ destroyChildItemNode()

void MyGUI::LayerNode::destroyChildItemNode ( ILayerNode _node)
overridevirtual

Implements MyGUI::ILayerNode.

Definition at line 52 of file MyGUI_LayerNode.cpp.

◆ detachLayerItem()

void MyGUI::LayerNode::detachLayerItem ( ILayerItem _item)
overridevirtual

Implements MyGUI::ILayerNode.

Definition at line 231 of file MyGUI_LayerNode.cpp.

◆ getClassTypeName()

static const std::string & MyGUI::LayerNode::getClassTypeName ( )
inlinestatic

Definition at line 25 of file MyGUI_LayerNode.h.

◆ getEnumerator()

EnumeratorILayerNode MyGUI::LayerNode::getEnumerator ( ) const
overridevirtual

Implements MyGUI::ILayerNode.

Definition at line 254 of file MyGUI_LayerNode.cpp.

◆ getLayer()

ILayer * MyGUI::LayerNode::getLayer ( ) const
overridevirtual

Implements MyGUI::ILayerNode.

Definition at line 312 of file MyGUI_LayerNode.cpp.

◆ getLayerItemByPoint()

ILayerItem * MyGUI::LayerNode::getLayerItemByPoint ( int  _left,
int  _top 
) const
overridevirtual

Implements MyGUI::ILayerNode.

Definition at line 118 of file MyGUI_LayerNode.cpp.

◆ getLayerNodeAt()

ILayerNode * MyGUI::LayerNode::getLayerNodeAt ( size_t  _index) const
overridevirtual

Implements MyGUI::ILayerNode.

Definition at line 264 of file MyGUI_LayerNode.cpp.

◆ getLayerNodeCount()

size_t MyGUI::LayerNode::getLayerNodeCount ( ) const
overridevirtual

Implements MyGUI::ILayerNode.

Definition at line 259 of file MyGUI_LayerNode.cpp.

◆ getNodeDepth()

float MyGUI::LayerNode::getNodeDepth ( ) const
overridevirtual

Implements MyGUI::ILayerNode.

Definition at line 345 of file MyGUI_LayerNode.cpp.

◆ getParent()

ILayerNode * MyGUI::LayerNode::getParent ( ) const
overridevirtual

Implements MyGUI::ILayerNode.

Definition at line 317 of file MyGUI_LayerNode.cpp.

◆ getTypeName()

virtual const std::string & MyGUI::LayerNode::getTypeName ( ) const
inlineoverridevirtual

Get type name as string

Reimplemented from MyGUI::ILayerNode.

Reimplemented in MyGUI::SharedLayerNode.

Definition at line 25 of file MyGUI_LayerNode.h.

◆ isOutOfDate()

bool MyGUI::LayerNode::isOutOfDate ( ) const

Definition at line 322 of file MyGUI_LayerNode.cpp.

◆ isType() [1/2]

template<typename Type >
bool MyGUI::LayerNode::isType ( ) const
inline

Compare with selected type

Definition at line 25 of file MyGUI_LayerNode.h.

◆ isType() [2/2]

virtual bool MyGUI::LayerNode::isType ( const std::type_info &  _type) const
inlineoverridevirtual

Compare with selected type

Reimplemented from MyGUI::ILayerNode.

Reimplemented in MyGUI::SharedLayerNode.

Definition at line 25 of file MyGUI_LayerNode.h.

◆ outOfDate()

void MyGUI::LayerNode::outOfDate ( RenderItem _item)
overridevirtual

Implements MyGUI::ILayerNode.

Definition at line 247 of file MyGUI_LayerNode.cpp.

◆ renderToTarget()

void MyGUI::LayerNode::renderToTarget ( IRenderTarget _target,
bool  _update 
)
overridevirtual

Implements MyGUI::ILayerNode.

Definition at line 86 of file MyGUI_LayerNode.cpp.

◆ resizeView()

void MyGUI::LayerNode::resizeView ( const IntSize _viewSize)
overridevirtual

Implements MyGUI::ILayerNode.

Definition at line 110 of file MyGUI_LayerNode.cpp.

◆ upChildItemNode()

void MyGUI::LayerNode::upChildItemNode ( ILayerNode _node)
overridevirtual

Implements MyGUI::ILayerNode.

Definition at line 69 of file MyGUI_LayerNode.cpp.

◆ updateCompression()

void MyGUI::LayerNode::updateCompression ( )
protected

Definition at line 271 of file MyGUI_LayerNode.cpp.

Field Documentation

◆ mChildItems

VectorILayerNode MyGUI::LayerNode::mChildItems
protected

Definition at line 92 of file MyGUI_LayerNode.h.

◆ mDepth

float MyGUI::LayerNode::mDepth
protected

Definition at line 98 of file MyGUI_LayerNode.h.

◆ mFirstRenderItems

VectorRenderItem MyGUI::LayerNode::mFirstRenderItems
protected

Definition at line 83 of file MyGUI_LayerNode.h.

◆ mLastNotEmptyItem

size_t MyGUI::LayerNode::mLastNotEmptyItem
protected

Definition at line 86 of file MyGUI_LayerNode.h.

◆ mLayer

ILayer* MyGUI::LayerNode::mLayer
protected

Definition at line 95 of file MyGUI_LayerNode.h.

◆ mLayerItems

VectorLayerItem MyGUI::LayerNode::mLayerItems
protected

Definition at line 90 of file MyGUI_LayerNode.h.

◆ mOutOfDate

bool MyGUI::LayerNode::mOutOfDate
protected

Definition at line 96 of file MyGUI_LayerNode.h.

◆ mOutOfDateCompression

bool MyGUI::LayerNode::mOutOfDateCompression
protected

Definition at line 97 of file MyGUI_LayerNode.h.

◆ mParent

ILayerNode* MyGUI::LayerNode::mParent
protected

Definition at line 94 of file MyGUI_LayerNode.h.

◆ mSecondRenderItems

VectorRenderItem MyGUI::LayerNode::mSecondRenderItems
protected

Definition at line 84 of file MyGUI_LayerNode.h.


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