DDraceNetwork Docs
CLayerQuads Class Reference

#include <layer_quads.h>

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

Public Member Functions

 CLayerQuads (CEditor *pEditor)
 
 CLayerQuads (const CLayerQuads &Other)
 
 ~CLayerQuads ()
 
void Render (bool QuadPicker=false) override
 
CQuadNewQuad (int x, int y, int Width, int Height)
 
int SwapQuads (int Index0, int Index1)
 
void BrushSelecting (CUIRect Rect) override
 
int BrushGrab (std::shared_ptr< CLayerGroup > pBrush, CUIRect Rect) override
 
void BrushPlace (std::shared_ptr< CLayer > pBrush, vec2 WorldPos) override
 
void BrushFlipX () override
 
void BrushFlipY () override
 
void BrushRotate (float Amount) override
 
CUi::EPopupMenuFunctionResult RenderProperties (CUIRect *pToolbox) override
 
void ModifyImageIndex (FIndexModifyFunction pfnFunc) override
 
void ModifyEnvelopeIndex (FIndexModifyFunction pfnFunc) override
 
void GetSize (float *pWidth, float *pHeight) override
 
std::shared_ptr< CLayerDuplicate () const override
 
const char * TypeName () const override
 
- Public Member Functions inherited from CLayer
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

int m_Image
 
std::vector< CQuadm_vQuads
 
- Public Attributes inherited from CLayer
class CEditorm_pEditor
 
char m_aName [12]
 
int m_Type
 
int m_Flags
 
bool m_Readonly
 
bool m_Visible
 

Constructor & Destructor Documentation

◆ CLayerQuads() [1/2]

CLayerQuads::CLayerQuads ( CEditor pEditor)
explicit

◆ CLayerQuads() [2/2]

CLayerQuads::CLayerQuads ( const CLayerQuads Other)

◆ ~CLayerQuads()

CLayerQuads::~CLayerQuads ( )
default

Member Function Documentation

◆ BrushFlipX()

void CLayerQuads::BrushFlipX ( )
overridevirtual

Reimplemented from CLayer.

◆ BrushFlipY()

void CLayerQuads::BrushFlipY ( )
overridevirtual

Reimplemented from CLayer.

◆ BrushGrab()

int CLayerQuads::BrushGrab ( std::shared_ptr< CLayerGroup pBrush,
CUIRect  Rect 
)
overridevirtual

Reimplemented from CLayer.

◆ BrushPlace()

void CLayerQuads::BrushPlace ( std::shared_ptr< CLayer pBrush,
vec2  WorldPos 
)
overridevirtual

Reimplemented from CLayer.

◆ BrushRotate()

void CLayerQuads::BrushRotate ( float  Amount)
overridevirtual

Reimplemented from CLayer.

◆ BrushSelecting()

void CLayerQuads::BrushSelecting ( CUIRect  Rect)
overridevirtual

Reimplemented from CLayer.

◆ Duplicate()

std::shared_ptr< CLayer > CLayerQuads::Duplicate ( ) const
overridevirtual

Implements CLayer.

◆ GetSize()

void CLayerQuads::GetSize ( float *  pWidth,
float *  pHeight 
)
overridevirtual

Reimplemented from CLayer.

◆ ModifyEnvelopeIndex()

void CLayerQuads::ModifyEnvelopeIndex ( FIndexModifyFunction  pfnFunc)
overridevirtual

Reimplemented from CLayer.

◆ ModifyImageIndex()

void CLayerQuads::ModifyImageIndex ( FIndexModifyFunction  pfnFunc)
overridevirtual

Reimplemented from CLayer.

◆ NewQuad()

CQuad * CLayerQuads::NewQuad ( int  x,
int  y,
int  Width,
int  Height 
)

◆ Render()

void CLayerQuads::Render ( bool  QuadPicker = false)
overridevirtual

Reimplemented from CLayer.

◆ RenderProperties()

CUi::EPopupMenuFunctionResult CLayerQuads::RenderProperties ( CUIRect pToolbox)
overridevirtual

Reimplemented from CLayer.

◆ SwapQuads()

int CLayerQuads::SwapQuads ( int  Index0,
int  Index1 
)

◆ TypeName()

const char * CLayerQuads::TypeName ( ) const
overridevirtual

Implements CLayer.

Member Data Documentation

◆ m_Image

int CLayerQuads::m_Image

◆ m_vQuads

std::vector<CQuad> CLayerQuads::m_vQuads

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