DDraceNetwork Docs
CMapView Class Reference

#include <map_view.h>

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

Public Member Functions

void OnInit (CEditor *pEditor) override
 
void OnReset () override
 
void OnMapLoad () override
 
void ZoomMouseTarget (float ZoomFactor)
 
void UpdateZoom ()
 
void RenderGroupBorder ()
 
void RenderMap ()
 
bool IsFocused ()
 
void Focus ()
 
void ResetZoom ()
 
float ScaleLength (float Value) const
 
float GetWorldZoom () const
 
void OffsetWorld (vec2 Offset)
 
void OffsetEditor (vec2 Offset)
 
void SetWorldOffset (vec2 WorldOffset)
 
void SetEditorOffset (vec2 EditorOffset)
 
vec2 GetWorldOffset () const
 
vec2 GetEditorOffset () const
 
CSmoothValueZoom ()
 
const CSmoothValueZoom () const
 
CProofModeProofMode ()
 
const CProofModeProofMode () const
 
CMapGridMapGrid ()
 
const CMapGridMapGrid () const
 
- Public Member Functions inherited from CEditorComponent
virtual bool OnInput (const IInput::CEvent &Event) override
 
void InitSubComponents ()
 
void RegisterSubComponent (CEditorComponent &Component)
 
- Public Member Functions inherited from CEditorObject
virtual ~CEditorObject ()=default
 
virtual void OnInit (CEditor *pEditor)
 
virtual void OnUpdate ()
 
virtual bool OnInput (const IInput::CEvent &Event)
 
virtual void OnRender (CUIRect View)
 
virtual void OnHot ()
 
virtual void OnActive ()
 
virtual void OnReset ()
 
virtual void OnMapLoad ()
 
bool IsHot ()
 
void SetHot ()
 
void UnsetHot ()
 
bool IsActive ()
 
void SetActive ()
 
void SetInactive ()
 
CEditorEditor ()
 
const CEditorEditor () const
 
IInputInput ()
 
IClientClient ()
 
CConfigConfig ()
 
IConsoleConsole ()
 
IEngineEngine ()
 
IGraphicsGraphics ()
 
ISoundSound ()
 
ITextRenderTextRender ()
 
IStorageStorage ()
 
CUiUi ()
 
CRenderToolsRenderTools ()
 

Public Attributes

bool m_ShowPicker
 

Private Attributes

CSmoothValue m_Zoom = CSmoothValue(200.0f, 10.0f, 2000.0f)
 
float m_WorldZoom
 
CProofMode m_ProofMode
 
CMapGrid m_MapGrid
 
vec2 m_WorldOffset
 
vec2 m_EditorOffset
 

Member Function Documentation

◆ Focus()

void CMapView::Focus ( )

◆ GetEditorOffset()

vec2 CMapView::GetEditorOffset ( ) const

◆ GetWorldOffset()

vec2 CMapView::GetWorldOffset ( ) const

◆ GetWorldZoom()

float CMapView::GetWorldZoom ( ) const

◆ IsFocused()

bool CMapView::IsFocused ( )

◆ MapGrid() [1/2]

CMapGrid * CMapView::MapGrid ( )

◆ MapGrid() [2/2]

const CMapGrid * CMapView::MapGrid ( ) const

◆ OffsetEditor()

void CMapView::OffsetEditor ( vec2  Offset)

◆ OffsetWorld()

void CMapView::OffsetWorld ( vec2  Offset)

◆ OnInit()

void CMapView::OnInit ( CEditor pEditor)
overridevirtual

Initialise the component and interface pointers. Needs to be the first function that is called. The default implentation also resets the component.

Reimplemented from CEditorObject.

◆ OnMapLoad()

void CMapView::OnMapLoad ( )
overridevirtual

Reimplemented from CEditorObject.

◆ OnReset()

void CMapView::OnReset ( )
overridevirtual

Reimplemented from CEditorObject.

◆ ProofMode() [1/2]

CProofMode * CMapView::ProofMode ( )

◆ ProofMode() [2/2]

const CProofMode * CMapView::ProofMode ( ) const

◆ RenderGroupBorder()

void CMapView::RenderGroupBorder ( )

◆ RenderMap()

void CMapView::RenderMap ( )

◆ ResetZoom()

void CMapView::ResetZoom ( )

Reset zoom and editor offset.

◆ ScaleLength()

float CMapView::ScaleLength ( float  Value) const

Scale length according to zoom value.

◆ SetEditorOffset()

void CMapView::SetEditorOffset ( vec2  EditorOffset)

◆ SetWorldOffset()

void CMapView::SetWorldOffset ( vec2  WorldOffset)

◆ UpdateZoom()

void CMapView::UpdateZoom ( )

◆ Zoom() [1/2]

CSmoothValue * CMapView::Zoom ( )

◆ Zoom() [2/2]

const CSmoothValue * CMapView::Zoom ( ) const

◆ ZoomMouseTarget()

void CMapView::ZoomMouseTarget ( float  ZoomFactor)

Member Data Documentation

◆ m_EditorOffset

vec2 CMapView::m_EditorOffset
private

◆ m_MapGrid

CMapGrid CMapView::m_MapGrid
private

◆ m_ProofMode

CProofMode CMapView::m_ProofMode
private

◆ m_ShowPicker

bool CMapView::m_ShowPicker

◆ m_WorldOffset

vec2 CMapView::m_WorldOffset
private

◆ m_WorldZoom

float CMapView::m_WorldZoom
private

◆ m_Zoom

CSmoothValue CMapView::m_Zoom = CSmoothValue(200.0f, 10.0f, 2000.0f)
private

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