DDraceNetwork Docs
CLayer Class Referenceabstract

#include <layer.h>

Inheritance diagram for CLayer:
[legend]
Collaboration diagram for CLayer:
[legend]

Public Member Functions

class IGraphicsGraphics ()
 
class ITextRenderTextRender ()
 
 CLayer (CEditor *pEditor)
 
 CLayer (const CLayer &Other)
 
virtual ~CLayer ()
 
virtual void BrushSelecting (CUIRect Rect)
 
virtual int BrushGrab (std::shared_ptr< CLayerGroup > pBrush, CUIRect Rect)
 
virtual void FillSelection (bool Empty, std::shared_ptr< CLayer > pBrush, CUIRect Rect)
 
virtual void BrushDraw (std::shared_ptr< CLayer > pBrush, vec2 WorldPos)
 
virtual void BrushPlace (std::shared_ptr< CLayer > pBrush, vec2 WorldPos)
 
virtual void BrushFlipX ()
 
virtual void BrushFlipY ()
 
virtual void BrushRotate (float Amount)
 
virtual bool IsEntitiesLayer () const
 
virtual void Render (bool Tileset=false)
 
virtual CUi::EPopupMenuFunctionResult RenderProperties (CUIRect *pToolbox)
 
virtual void ModifyImageIndex (FIndexModifyFunction pfnFunc)
 
virtual void ModifyEnvelopeIndex (FIndexModifyFunction pfnFunc)
 
virtual void ModifySoundIndex (FIndexModifyFunction pfnFunc)
 
virtual std::shared_ptr< CLayerDuplicate () const =0
 
virtual const char * TypeName () const =0
 
virtual void GetSize (float *pWidth, float *pHeight)
 

Public Attributes

class CEditorm_pEditor
 
char m_aName [12]
 
int m_Type
 
int m_Flags
 
bool m_Readonly
 
bool m_Visible
 

Constructor & Destructor Documentation

◆ CLayer() [1/2]

CLayer::CLayer ( CEditor pEditor)
inlineexplicit

◆ CLayer() [2/2]

CLayer::CLayer ( const CLayer Other)
inline

◆ ~CLayer()

virtual CLayer::~CLayer ( )
inlinevirtual

Member Function Documentation

◆ BrushDraw()

virtual void CLayer::BrushDraw ( std::shared_ptr< CLayer pBrush,
vec2  WorldPos 
)
inlinevirtual

◆ BrushFlipX()

virtual void CLayer::BrushFlipX ( )
inlinevirtual

◆ BrushFlipY()

virtual void CLayer::BrushFlipY ( )
inlinevirtual

◆ BrushGrab()

virtual int CLayer::BrushGrab ( std::shared_ptr< CLayerGroup pBrush,
CUIRect  Rect 
)
inlinevirtual

Reimplemented in CLayerQuads, CLayerSounds, and CLayerTiles.

◆ BrushPlace()

virtual void CLayer::BrushPlace ( std::shared_ptr< CLayer pBrush,
vec2  WorldPos 
)
inlinevirtual

Reimplemented in CLayerQuads, and CLayerSounds.

◆ BrushRotate()

virtual void CLayer::BrushRotate ( float  Amount)
inlinevirtual

◆ BrushSelecting()

virtual void CLayer::BrushSelecting ( CUIRect  Rect)
inlinevirtual

Reimplemented in CLayerQuads, CLayerSounds, and CLayerTiles.

◆ Duplicate()

virtual std::shared_ptr< CLayer > CLayer::Duplicate ( ) const
pure virtual

◆ FillSelection()

virtual void CLayer::FillSelection ( bool  Empty,
std::shared_ptr< CLayer pBrush,
CUIRect  Rect 
)
inlinevirtual

◆ GetSize()

virtual void CLayer::GetSize ( float *  pWidth,
float *  pHeight 
)
inlinevirtual

Reimplemented in CLayerQuads, and CLayerTiles.

◆ Graphics()

class IGraphics * CLayer::Graphics ( )
inline

◆ IsEntitiesLayer()

virtual bool CLayer::IsEntitiesLayer ( ) const
inlinevirtual

Reimplemented in CLayerTiles.

◆ ModifyEnvelopeIndex()

virtual void CLayer::ModifyEnvelopeIndex ( FIndexModifyFunction  pfnFunc)
inlinevirtual

Reimplemented in CLayerQuads, CLayerSounds, and CLayerTiles.

◆ ModifyImageIndex()

virtual void CLayer::ModifyImageIndex ( FIndexModifyFunction  pfnFunc)
inlinevirtual

Reimplemented in CLayerQuads, and CLayerTiles.

◆ ModifySoundIndex()

virtual void CLayer::ModifySoundIndex ( FIndexModifyFunction  pfnFunc)
inlinevirtual

Reimplemented in CLayerSounds.

◆ Render()

virtual void CLayer::Render ( bool  Tileset = false)
inlinevirtual

Reimplemented in CLayerQuads, CLayerSounds, and CLayerTiles.

◆ RenderProperties()

virtual CUi::EPopupMenuFunctionResult CLayer::RenderProperties ( CUIRect pToolbox)
inlinevirtual

Reimplemented in CLayerGame, CLayerQuads, CLayerSounds, and CLayerTiles.

◆ TextRender()

class ITextRender * CLayer::TextRender ( )
inline

◆ TypeName()

virtual const char * CLayer::TypeName ( ) const
pure virtual

Member Data Documentation

◆ m_aName

char CLayer::m_aName[12]

◆ m_Flags

int CLayer::m_Flags

◆ m_pEditor

class CEditor* CLayer::m_pEditor

◆ m_Readonly

bool CLayer::m_Readonly

◆ m_Type

int CLayer::m_Type

◆ m_Visible

bool CLayer::m_Visible

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