|
SAGA API Version 9.14
|
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) |
| #define RULER_TEXT_SPACE 4 |
Definition at line 661 of file dc_helper.cpp.
Referenced by SG_DC_Draw_Ruler().
| #define TEXTSPACE 6 |
Definition at line 473 of file dc_helper.cpp.
Referenced by SG_DC_Draw_Scale().
| void SG_DC_Draw_Edge | ( | wxDC & | dc, |
| int | Edge_Style, | ||
| int | ax, | ||
| int | ay, | ||
| int | bx, | ||
| int | by ) |
Definition at line 186 of file dc_helper.cpp.
References SG_DC_Draw_Edge(), SG_DC_EDGE_STYLE_RAISED, SG_DC_EDGE_STYLE_SIMPLE, SG_DC_EDGE_STYLE_STATIC, SG_DC_EDGE_STYLE_SUNKEN, and SG_System_Get_Color().
Referenced by CSG_Map_Legend::_Draw_Continuum_H(), CSG_Map_Legend::_Draw_Continuum_V(), CSG_Map_Legend::_Draw_Layer_Image(), CMap::Draw(), SG_DC_Draw_Edge(), SG_DC_Draw_Edge(), and SG_DC_Draw_Rect().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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.
| 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 ) |
Definition at line 648 of file dc_helper.cpp.
References SG_DC_Draw_Scale(), SG_DC_SCALE_HORIZONTAL, SG_DC_SCALE_STYLE_DEFAULT, SG_DC_SCALE_STYLE_DESCENDENT, SG_DC_SCALE_TICK_BOTTOM, SG_DC_SCALE_TICK_TOP, and SG_DC_SCALE_VERTICAL.
| 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 ) |
Definition at line 476 of file dc_helper.cpp.
References SG_DC_Draw_Scale(), SG_DC_Draw_Text(), SG_DC_SCALE_STYLE_BLACKWHITE, SG_DC_SCALE_STYLE_DESCENDENT, SG_DC_SCALE_STYLE_GLOOMING, SG_DC_SCALE_STYLE_LINECONN, SG_DC_SCALE_STYLE_UNIT_BELOW, SG_DC_SCALE_TICK_BOTTOM, SG_DC_SCALE_TICK_NONE, SG_DC_SCALE_TICK_TOP, SG_DC_SCALE_VERTICAL, SG_DC_TEXTALIGN_BOTTOMCENTER, SG_DC_TEXTALIGN_TOPCENTER, SG_DC_TEXTALIGN_TOPLEFT, and TEXTSPACE.
Referenced by CMap::Draw(), CMap_Canvas::Draw_ScaleBar(), SG_DC_Draw_Scale(), and SG_DC_Draw_Scale().
| void SG_DC_Draw_Text | ( | wxDC & | dc, |
| int | Align, | ||
| int | x, | ||
| int | y, | ||
| const wxString & | Text ) |
Definition at line 329 of file dc_helper.cpp.
References SG_DC_TEXTALIGN_BOTTOM, SG_DC_TEXTALIGN_RIGHT, SG_DC_TEXTALIGN_TOPLEFT, SG_DC_TEXTALIGN_XCENTER, and SG_DC_TEXTALIGN_YCENTER.
Referenced by CSG_Map_Legend::_Draw_Continuum_H(), CSG_Map_Legend::_Draw_Label(), CSG_Map_Legend::_Draw_Title(), CSG_Map_BaseMap::Draw(), CSG_Map_DC::DrawText(), CSG_Map_DC::DrawText(), CSG_Map_DC::DrawText(), CSG_Map_DC::DrawText(), SG_DC_Draw_Scale(), SG_DC_Draw_Text(), SG_DC_Draw_Text(), and SG_DC_Draw_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 ) |
Definition at line 410 of file dc_helper.cpp.
References SG_DC_Draw_Text().
| void SG_DC_Draw_Text | ( | wxDC & | dc, |
| int | Align, | ||
| int | x, | ||
| int | y, | ||
| double | Angle, | ||
| const wxString & | Text ) |
Definition at line 362 of file dc_helper.cpp.
References M_DEG_TO_RAD, SG_DC_Draw_Text(), SG_DC_TEXTALIGN_BOTTOM, SG_DC_TEXTALIGN_RIGHT, SG_DC_TEXTALIGN_TOPLEFT, SG_DC_TEXTALIGN_XCENTER, and SG_DC_TEXTALIGN_YCENTER.
| 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 ) |
Definition at line 415 of file dc_helper.cpp.
References SG_DC_Draw_Text(), SG_DC_TEXTEFFECT_BOTTOM, SG_DC_TEXTEFFECT_BOTTOMLEFT, SG_DC_TEXTEFFECT_BOTTOMRIGHT, SG_DC_TEXTEFFECT_FRAME, SG_DC_TEXTEFFECT_LEFT, SG_DC_TEXTEFFECT_NONE, SG_DC_TEXTEFFECT_RIGHT, SG_DC_TEXTEFFECT_TOP, SG_DC_TEXTEFFECT_TOPLEFT, and SG_DC_TEXTEFFECT_TOPRIGHT.
| int SG_Get_Color | ( | const wxColour & | Color | ) |
Definition at line 64 of file dc_helper.cpp.
References SG_GET_RGB.
Referenced by CSG_Map_Legend::_Draw_Box(), CSG_Map_Shapes::Add_Parameters(), CSG_Map_DC::Get_Background(), and CSG_Map_Layer::Set_Thumbnail().
| wxColour SG_Get_wxColor | ( | int | Color | ) |
Definition at line 70 of file dc_helper.cpp.
References SG_GET_B, SG_GET_G, and SG_GET_R.
Referenced by CSG_Map_Legend::_Draw_Box(), CSG_Map_Legend::_Draw_CompositeBand(), CSG_Map_Legend::_Draw_Continuum_H(), CSG_Map_Legend::_Draw_Continuum_V(), CSG_Map_Graticule::Draw(), CSG_Map_Shapes_Point::Draw_Initialize(), CSG_Map_Shapes_Polygon::Draw_Initialize(), CSG_Map_Shapes_Point::Parameters_Changed(), and CSG_Map_Shapes_Polygon::Parameters_Changed().
| 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().
| bool SG_Set_Font | ( | const wxFont & | Font, |
| wxColour | Colour, | ||
| CSG_Parameter * | pFont ) |
Definition at line 151 of file dc_helper.cpp.
References CSG_Parameter::Get_Type(), PARAMETER_TYPE_Font, CSG_Parameter::Set_Value(), and SG_GET_RGB.
| bool SG_Set_Font | ( | CSG_Parameter * | pFont, |
| wxFont & | Font, | ||
| wxColour & | Colour ) |
Definition at line 129 of file dc_helper.cpp.
References CSG_Parameter::asColor(), CSG_Parameter::asFont(), CSG_Parameter::Get_Type(), PARAMETER_TYPE_Font, SG_GET_B, SG_GET_G, and SG_GET_R.
Referenced by SG_Get_wxFont().
| wxColour SG_System_Get_Color | ( | wxSystemColour | index | ) |
Definition at line 81 of file dc_helper.cpp.
References SG_UI_Get_Window_Main().
Referenced by CSG_Map_Layer::Set_Thumbnail(), SG_DC_Draw_Edge(), SG_System_Get_Color_Background(), and SG_System_Get_Color_Foreground().
| 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().
| 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().