SAGA API Version 9.14
Loading...
Searching...
No Matches
CSG_Map_Legend Class Reference

#include <map_legend.h>

Public Types

enum  { VERTICAL = 0 , HORIZONTAL }

Public Member Functions

 CSG_Map_Legend (class CSG_Map_Layer *pLayer)
wxSize Get_Size (double Zoom, double Zoom_Map)
void Draw (wxDC &dc, double Zoom, double Zoom_Map, wxPoint Position, wxSize *pSize=NULL)
int Get_Orientation (void) const
void Set_Orientation (int Orientation)

Public Attributes

wxString m_Title
wxString m_Subtitle

Protected Member Functions

void _Set_Size (int xSet, int yAdd)
void _Set_Font (wxDC &dc, int Style)
void _Draw_Title (wxDC &dc, int Style, wxString Text)
void _Draw_Label (wxDC &dc, int y, wxString Text, int yAlign)
void _Draw_Box (wxDC &dc, int y, int dy, int Style, int LineColor, int FillColor, wxString Text)
void _Draw_Box (wxDC &dc, int y, int dy, int Style, int iClass)
void _Draw_Boxes (wxDC &dc, int y, int Style, double zFactor=1.0)
void _Draw_Point (wxDC &dc, class CSG_Map_Shapes_Point *pLayer)
void _Draw_Line (wxDC &dc, class CSG_Map_Shapes_Line *pLayer)
void _Draw_Polygon (wxDC &dc, class CSG_Map_Shapes_Polygon *pLayer)
void _Draw_TIN (wxDC &dc, class CSG_Map_TIN *pLayer)
void _Draw_PointCloud (wxDC &dc, class CSG_Map_PointCloud *pLayer)
void _Draw_Grid (wxDC &dc, class CSG_Map_Grid *pLayer)
void _Draw_Grids (wxDC &dc, class CSG_Map_Grids *pLayer)
void _Draw_CompositeBand (wxDC &dc, int y, int dy, int Style, int Band, class CSG_Map_Grid *pLayer)
void _Draw_CompositeBand (wxDC &dc, int y, int dy, int Style, int Band, class CSG_Map_Grids *pLayer)
void _Draw_CompositeBand (wxDC &dc, int y, int dy, int Style, int Band, const wxString &Text)
void _Draw_Layer_Image (wxDC &dc, int y, class CSG_Map_Layer *pLayer)
void _Draw_Continuum (wxDC &dc, int y, double zFactor)
void _Draw_Continuum_V (wxDC &dc, int y, double zMin, double zMax, double zFactor, double dz, int dyFont)
void _Draw_Continuum_H (wxDC &dc, int y, double zMin, double zMax, double zFactor, double dz, int dyFont)

Protected Attributes

int m_Orientation = VERTICAL
int m_xBox = 0
int m_dxBox = 0
int m_xTick = 0
int m_dxTick = 0
int m_xText = 0
double m_Zoom = 1.
double m_Zoom_Map = 1.
wxPoint m_Position
wxSize m_Size
wxPen m_oldPen
wxBrush m_oldBrush
wxFont m_oldFont
class CSG_Map_Layer * m_pLayer = NULL
class CSG_Map_Symbology * m_pSymbology = NULL

Detailed Description

Definition at line 74 of file map_legend.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
VERTICAL 
HORIZONTAL 

Definition at line 79 of file map_legend.h.

Constructor & Destructor Documentation

◆ CSG_Map_Legend()

CSG_Map_Legend::CSG_Map_Legend ( class CSG_Map_Layer * pLayer)

Member Function Documentation

◆ _Draw_Box() [1/2]

void CSG_Map_Legend::_Draw_Box ( wxDC & dc,
int y,
int dy,
int Style,
int iClass )
inlineprotected

Definition at line 303 of file map_legend.cpp.

References _Draw_Box(), BOX_STYLE_FILL, BOX_STYLE_OUTL, m_pSymbology, and SG_Get_Color().

◆ _Draw_Box() [2/2]

void CSG_Map_Legend::_Draw_Box ( wxDC & dc,
int y,
int dy,
int Style,
int LineColor,
int FillColor,
wxString Text )
inlineprotected

◆ _Draw_Boxes()

void CSG_Map_Legend::_Draw_Boxes ( wxDC & dc,
int y,
int Style,
double zFactor = 1.0 )
protected

◆ _Draw_CompositeBand() [1/3]

void CSG_Map_Legend::_Draw_CompositeBand ( wxDC & dc,
int y,
int dy,
int Style,
int Band,
class CSG_Map_Grid * pLayer )
protected

◆ _Draw_CompositeBand() [2/3]

void CSG_Map_Legend::_Draw_CompositeBand ( wxDC & dc,
int y,
int dy,
int Style,
int Band,
class CSG_Map_Grids * pLayer )
protected

◆ _Draw_CompositeBand() [3/3]

void CSG_Map_Legend::_Draw_CompositeBand ( wxDC & dc,
int y,
int dy,
int Style,
int Band,
const wxString & Text )
protected

◆ _Draw_Continuum()

void CSG_Map_Legend::_Draw_Continuum ( wxDC & dc,
int y,
double zFactor )
protected

◆ _Draw_Continuum_H()

void CSG_Map_Legend::_Draw_Continuum_H ( wxDC & dc,
int y,
double zMin,
double zMax,
double zFactor,
double dz,
int dyFont )
protected

◆ _Draw_Continuum_V()

void CSG_Map_Legend::_Draw_Continuum_V ( wxDC & dc,
int y,
double zMin,
double zMax,
double zFactor,
double dz,
int dyFont )
protected

◆ _Draw_Grid()

◆ _Draw_Grids()

◆ _Draw_Label()

void CSG_Map_Legend::_Draw_Label ( wxDC & dc,
int y,
wxString Text,
int yAlign )
inlineprotected

◆ _Draw_Layer_Image()

void CSG_Map_Legend::_Draw_Layer_Image ( wxDC & dc,
int y,
class CSG_Map_Layer * pLayer )
protected

◆ _Draw_Line()

◆ _Draw_Point()

◆ _Draw_PointCloud()

void CSG_Map_Legend::_Draw_PointCloud ( wxDC & dc,
class CSG_Map_PointCloud * pLayer )
protected

◆ _Draw_Polygon()

void CSG_Map_Legend::_Draw_Polygon ( wxDC & dc,
class CSG_Map_Shapes_Polygon * pLayer )
protected

◆ _Draw_TIN()

void CSG_Map_Legend::_Draw_TIN ( wxDC & dc,
class CSG_Map_TIN * pLayer )
protected

◆ _Draw_Title()

void CSG_Map_Legend::_Draw_Title ( wxDC & dc,
int Style,
wxString Text )
inlineprotected

◆ _Set_Font()

void CSG_Map_Legend::_Set_Font ( wxDC & dc,
int Style )
inlineprotected

◆ _Set_Size()

void CSG_Map_Legend::_Set_Size ( int xSet,
int yAdd )
inlineprotected

◆ Draw()

◆ Get_Orientation()

int CSG_Map_Legend::Get_Orientation ( void ) const
inline

Definition at line 85 of file map_legend.h.

References m_Orientation.

◆ Get_Size()

wxSize CSG_Map_Legend::Get_Size ( double Zoom,
double Zoom_Map )

Definition at line 128 of file map_legend.cpp.

References Draw(), and m_Size.

◆ Set_Orientation()

void CSG_Map_Legend::Set_Orientation ( int Orientation)

Definition at line 122 of file map_legend.cpp.

References HORIZONTAL, m_Orientation, and VERTICAL.

Member Data Documentation

◆ m_dxBox

int CSG_Map_Legend::m_dxBox = 0
protected

◆ m_dxTick

int CSG_Map_Legend::m_dxTick = 0
protected

Definition at line 93 of file map_legend.h.

Referenced by _Draw_Continuum_H(), and Draw().

◆ m_oldBrush

wxBrush CSG_Map_Legend::m_oldBrush
protected

Definition at line 103 of file map_legend.h.

Referenced by Draw().

◆ m_oldFont

wxFont CSG_Map_Legend::m_oldFont
protected

Definition at line 105 of file map_legend.h.

Referenced by Draw().

◆ m_oldPen

wxPen CSG_Map_Legend::m_oldPen
protected

Definition at line 101 of file map_legend.h.

Referenced by Draw().

◆ m_Orientation

int CSG_Map_Legend::m_Orientation = VERTICAL
protected

Definition at line 93 of file map_legend.h.

Referenced by _Draw_Continuum(), CSG_Map_Legend(), Get_Orientation(), and Set_Orientation().

◆ m_pLayer

class CSG_Map_Layer* CSG_Map_Legend::m_pLayer = NULL
protected

Definition at line 107 of file map_legend.h.

Referenced by _Draw_Box(), _Draw_Continuum(), CSG_Map_Legend(), and Draw().

◆ m_Position

wxPoint CSG_Map_Legend::m_Position
protected

◆ m_pSymbology

class CSG_Map_Symbology* CSG_Map_Legend::m_pSymbology = NULL
protected

◆ m_Size

wxSize CSG_Map_Legend::m_Size
protected

Definition at line 99 of file map_legend.h.

Referenced by _Set_Size(), Draw(), and Get_Size().

◆ m_Subtitle

wxString CSG_Map_Legend::m_Subtitle

Definition at line 88 of file map_legend.h.

Referenced by _Draw_Line(), _Draw_Point(), _Draw_PointCloud(), _Draw_Polygon(), and _Draw_TIN().

◆ m_Title

wxString CSG_Map_Legend::m_Title

Definition at line 88 of file map_legend.h.

Referenced by Draw().

◆ m_xBox

int CSG_Map_Legend::m_xBox = 0
protected

◆ m_xText

int CSG_Map_Legend::m_xText = 0
protected

Definition at line 93 of file map_legend.h.

Referenced by _Draw_Continuum_V(), _Draw_Label(), and Draw().

◆ m_xTick

int CSG_Map_Legend::m_xTick = 0
protected

Definition at line 93 of file map_legend.h.

Referenced by _Draw_Continuum_V(), and Draw().

◆ m_Zoom

double CSG_Map_Legend::m_Zoom = 1.
protected

Definition at line 95 of file map_legend.h.

Referenced by Draw().

◆ m_Zoom_Map

double CSG_Map_Legend::m_Zoom_Map = 1.
protected

Definition at line 95 of file map_legend.h.

Referenced by _Draw_Point(), and Draw().


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