SAGA API Version 9.14
Loading...
Searching...
No Matches
dc_helper.cpp File Reference
#include <wx/wxprec.h>
#include <wx/dc.h>
#include "dc_helper.h"

Go to the source code of this file.

Macros

#define TEXTSPACE   6
#define RULER_TEXT_SPACE   4

Functions

int SG_Get_Color (const wxColour &Color)
wxColour SG_Get_wxColor (int Color)
wxColour SG_System_Get_Color (wxSystemColour index)
wxColour SG_System_Get_Color_Background (int Mode)
wxColour SG_System_Get_Color_Foreground (int Mode)
bool SG_Set_Font (CSG_Parameter *pFont, wxFont &Font, wxColour &Colour)
bool SG_Set_Font (const wxFont &Font, wxColour Colour, CSG_Parameter *pFont)
wxFont SG_Get_wxFont (CSG_Parameter *pFont)
void SG_DC_Draw_Edge (wxDC &dc, int Edge_Style, int ax, int ay, int bx, int by)
void SG_DC_Draw_Edge (wxDC &dc, int Edge_Style, wxRect r)
void SG_DC_Draw_Rect (wxDC &dc, wxColour Color, int ax, int ay, int bx, int by)
void SG_DC_Draw_Rect (wxDC &dc, wxColour Color, wxRect r)
void SG_DC_Draw_FillRect (wxDC &dc, wxColour Color, int ax, int ay, int bx, int by)
void SG_DC_Draw_FillRect (wxDC &dc, wxColour Color, wxRect r)
void SG_DC_Draw_Text (wxDC &dc, int Align, int x, int y, const wxString &Text)
void SG_DC_Draw_Text (wxDC &dc, int Align, int x, int y, double Angle, const wxString &Text)
void SG_DC_Draw_Text (wxDC &dc, int Align, int x, int y, const wxString &Text, int Effect, wxColour Effect_Color, int Effect_Size)
void SG_DC_Draw_Text (wxDC &dc, int Align, int x, int y, double Angle, const wxString &Text, int Effect, wxColour Effect_Color, int Effect_Size)
void SG_DC_Draw_Scale (wxDC &dc, const wxRect &r, double zMin, double zMax, int Orientation, int Tick, int Style, const wxString &Unit, bool bUseDCFont)
void SG_DC_Draw_Scale (wxDC &dc, const wxRect &r, double zMin, double zMax, bool bHorizontal, bool bAscendent, bool bTickAtTop, const wxString &Unit, bool bUseDCFont)
bool SG_DC_Draw_Ruler (wxDC &dc, const wxRect &r, bool bHorizontal, double zMin, double zMax, bool bAscendent, int FontSize, const wxColour &Colour)

Macro Definition Documentation

◆ RULER_TEXT_SPACE

#define RULER_TEXT_SPACE   4

Definition at line 661 of file dc_helper.cpp.

Referenced by SG_DC_Draw_Ruler().

◆ TEXTSPACE

#define TEXTSPACE   6

Definition at line 473 of file dc_helper.cpp.

Referenced by SG_DC_Draw_Scale().

Function Documentation

◆ SG_DC_Draw_Edge() [1/2]

◆ SG_DC_Draw_Edge() [2/2]

void SG_DC_Draw_Edge ( wxDC & dc,
int Edge_Style,
wxRect r )

Definition at line 247 of file dc_helper.cpp.

References SG_DC_Draw_Edge().

◆ SG_DC_Draw_FillRect() [1/2]

void SG_DC_Draw_FillRect ( wxDC & dc,
wxColour Color,
int ax,
int ay,
int bx,
int by )

Definition at line 281 of file dc_helper.cpp.

Referenced by SG_DC_Draw_FillRect(), and SG_DC_Draw_Rect().

◆ SG_DC_Draw_FillRect() [2/2]

void SG_DC_Draw_FillRect ( wxDC & dc,
wxColour Color,
wxRect r )

Definition at line 316 of file dc_helper.cpp.

References SG_DC_Draw_FillRect().

◆ SG_DC_Draw_Rect() [1/2]

void SG_DC_Draw_Rect ( wxDC & dc,
wxColour Color,
int ax,
int ay,
int bx,
int by )

Definition at line 260 of file dc_helper.cpp.

References SG_DC_Draw_Edge(), SG_DC_Draw_FillRect(), and SG_DC_EDGE_STYLE_SIMPLE.

Referenced by SG_DC_Draw_Rect().

◆ SG_DC_Draw_Rect() [2/2]

void SG_DC_Draw_Rect ( wxDC & dc,
wxColour Color,
wxRect r )

Definition at line 268 of file dc_helper.cpp.

References SG_DC_Draw_Rect().

◆ SG_DC_Draw_Ruler()

bool SG_DC_Draw_Ruler ( wxDC & dc,
const wxRect & r,
bool bHorizontal,
double zMin,
double zMax,
bool bAscendent,
int FontSize,
const wxColour & Colour )

Definition at line 664 of file dc_helper.cpp.

References Extent, and RULER_TEXT_SPACE.

◆ SG_DC_Draw_Scale() [1/2]

void SG_DC_Draw_Scale ( wxDC & dc,
const wxRect & r,
double zMin,
double zMax,
bool bHorizontal,
bool bAscendent,
bool bTickAtTop,
const wxString & Unit,
bool bUseDCFont )

◆ SG_DC_Draw_Scale() [2/2]

◆ SG_DC_Draw_Text() [1/4]

◆ SG_DC_Draw_Text() [2/4]

void SG_DC_Draw_Text ( wxDC & dc,
int Align,
int x,
int y,
const wxString & Text,
int Effect,
wxColour Effect_Color,
int Effect_Size )

Definition at line 410 of file dc_helper.cpp.

References SG_DC_Draw_Text().

◆ SG_DC_Draw_Text() [3/4]

void SG_DC_Draw_Text ( wxDC & dc,
int Align,
int x,
int y,
double Angle,
const wxString & Text )

◆ SG_DC_Draw_Text() [4/4]

void SG_DC_Draw_Text ( wxDC & dc,
int Align,
int x,
int y,
double Angle,
const wxString & Text,
int Effect,
wxColour Effect_Color,
int Effect_Size )

◆ SG_Get_Color()

int SG_Get_Color ( const wxColour & Color)

◆ SG_Get_wxColor()

◆ SG_Get_wxFont()

wxFont SG_Get_wxFont ( CSG_Parameter * pFont)

Definition at line 169 of file dc_helper.cpp.

References SG_Set_Font().

Referenced by CSG_Map_Graticule::Draw(), and CSG_Map_Shapes::On_Draw().

◆ SG_Set_Font() [1/2]

bool SG_Set_Font ( const wxFont & Font,
wxColour Colour,
CSG_Parameter * pFont )

◆ SG_Set_Font() [2/2]

bool SG_Set_Font ( CSG_Parameter * pFont,
wxFont & Font,
wxColour & Colour )

◆ SG_System_Get_Color()

wxColour SG_System_Get_Color ( wxSystemColour index)

◆ SG_System_Get_Color_Background()

wxColour SG_System_Get_Color_Background ( int Mode)

Definition at line 102 of file dc_helper.cpp.

References SG_System_Get_Color().

Referenced by CSG_Map_Shapes::Add_Parameters().

◆ SG_System_Get_Color_Foreground()

wxColour SG_System_Get_Color_Foreground ( int Mode)

Definition at line 113 of file dc_helper.cpp.

References SG_System_Get_Color().

Referenced by CSG_Map_Shapes::Add_Parameters().