SAGA API Version 9.14
Loading...
Searching...
No Matches
map_legend.cpp File Reference
#include "../dc_helper.h"
#include "map_symbology.h"
#include "map_legend.h"
#include "map_layer.h"

Go to the source code of this file.

Macros

#define ZOOMED(x)
#define SPACE_VERTICAL   ZOOMED(5)
#define BOX_WIDTH   ZOOMED(30)
#define BOX_HEIGHT   ZOOMED(12)
#define BOX_SPACE   ZOOMED(2)
#define TICK_WIDTH   ZOOMED(5)
#define SIZE_HEIGHT   ZOOMED(100)
#define FONT_SIZE_TITLE   ZOOMED(10)
#define FONT_SIZE_SUBTITLE   ZOOMED(8)
#define FONT_SIZE_LABEL   ZOOMED(8)
#define BOX_STYLE_RECT   0x01
#define BOX_STYLE_LINE   0x02
#define BOX_STYLE_SYMB   0x04
#define BOX_STYLE_OUTL   0x08
#define BOX_STYLE_FILL   0x10
#define METRIC_HEIGHT   ZOOMED(200)
#define METRIC_GET_STRING(z, dz)
#define METRIC_POS_V(Value)
#define METRIC_POS_H(Value)

Enumerations

enum  { FONT_TITLE = 0 , FONT_SUBTITLE , FONT_LABEL }

Macro Definition Documentation

◆ BOX_HEIGHT

◆ BOX_SPACE

◆ BOX_STYLE_FILL

◆ BOX_STYLE_LINE

#define BOX_STYLE_LINE   0x02

Definition at line 80 of file map_legend.cpp.

Referenced by CSG_Map_Legend::_Draw_Box(), and CSG_Map_Legend::_Draw_Line().

◆ BOX_STYLE_OUTL

◆ BOX_STYLE_RECT

◆ BOX_STYLE_SYMB

#define BOX_STYLE_SYMB   0x04

Definition at line 81 of file map_legend.cpp.

Referenced by CSG_Map_Legend::_Draw_Box().

◆ BOX_WIDTH

#define BOX_WIDTH   ZOOMED(30)

Definition at line 67 of file map_legend.cpp.

Referenced by CSG_Map_Legend::Draw().

◆ FONT_SIZE_LABEL

#define FONT_SIZE_LABEL   ZOOMED(8)

Definition at line 76 of file map_legend.cpp.

Referenced by CSG_Map_Legend::_Set_Font().

◆ FONT_SIZE_SUBTITLE

#define FONT_SIZE_SUBTITLE   ZOOMED(8)

Definition at line 75 of file map_legend.cpp.

Referenced by CSG_Map_Legend::_Set_Font().

◆ FONT_SIZE_TITLE

#define FONT_SIZE_TITLE   ZOOMED(10)

Definition at line 74 of file map_legend.cpp.

Referenced by CSG_Map_Legend::_Set_Font().

◆ METRIC_GET_STRING

#define METRIC_GET_STRING ( z,
dz )
Value:
wxString::Format("%.*f", dz >= 1. ? 0 : 1 + (int)fabs(log10(dz)), z)

Definition at line 587 of file map_legend.cpp.

Referenced by CSG_Map_Legend::_Draw_Continuum_H(), and CSG_Map_Legend::_Draw_Continuum_V().

◆ METRIC_HEIGHT

#define METRIC_HEIGHT   ZOOMED(200)

◆ METRIC_POS_H

#define METRIC_POS_H ( Value)
Value:
(m_xBox + (int)((double)METRIC_HEIGHT * m_pSymbology->Get_Stretch_to_Relative((Value) / zFactor)))
#define METRIC_HEIGHT

Definition at line 589 of file map_legend.cpp.

Referenced by CSG_Map_Legend::_Draw_Continuum_H().

◆ METRIC_POS_V

#define METRIC_POS_V ( Value)
Value:
( yBox + METRIC_HEIGHT - (int)((double)METRIC_HEIGHT * m_pSymbology->Get_Stretch_to_Relative((Value) / zFactor)))

Definition at line 588 of file map_legend.cpp.

Referenced by CSG_Map_Legend::_Draw_Continuum_V().

◆ SIZE_HEIGHT

#define SIZE_HEIGHT   ZOOMED(100)

Definition at line 71 of file map_legend.cpp.

Referenced by CSG_Map_Legend::_Draw_Point().

◆ SPACE_VERTICAL

#define SPACE_VERTICAL   ZOOMED(5)

Definition at line 66 of file map_legend.cpp.

Referenced by CSG_Map_Legend::_Draw_Title().

◆ TICK_WIDTH

#define TICK_WIDTH   ZOOMED(5)

Definition at line 70 of file map_legend.cpp.

Referenced by CSG_Map_Legend::Draw().

◆ ZOOMED

#define ZOOMED ( x)
Value:
((int)(m_Zoom * (double)x))

Definition at line 63 of file map_legend.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FONT_TITLE 
FONT_SUBTITLE 
FONT_LABEL 

Definition at line 93 of file map_legend.cpp.