|
SAGA API Version 9.14
|
#include <map_dc.h>
Public Types | |
| enum class | Mode { Opaque = 0 , Transparent , Alpha , Shade } |
Public Member Functions | |
| CSG_Map_DC (void) | |
| virtual | ~CSG_Map_DC (void) |
| bool | Destroy (void) |
| CSG_Map_DC (const CSG_Rect &rWorld, const CSG_Rect_Int &rDC, double Scale=1., int Background=-1, bool bAlpha=false) | |
| bool | Create (const CSG_Rect &rWorld, const CSG_Rect_Int &rDC, double Scale=1., int Background=-1, bool bAlpha=false) |
| CSG_Map_DC (const CSG_Rect &rWorld, const wxRect &rDC, double Scale=1., int Background=-1, bool bAlpha=false) | |
| bool | Create (const CSG_Rect &rWorld, const wxRect &rDC, double Scale=1., int Background=-1, bool bAlpha=false) |
| wxMemoryDC & | Get_DC (void) |
| int | Get_Background (void) const |
| bool | has_Alpha (void) const |
| void | SetFont (const wxFont &Font) |
| void | SetPen (const wxPen &Pen) |
| void | SetBrush (const wxBrush &Brush) |
| void | DrawPoint (int x, int y) |
| void | DrawLine (int x1, int y1, int x2, int y2) |
| void | DrawRectangle (int x1, int y1, int width, int height) |
| void | DrawRectangle (const wxRect &r) |
| void | DrawCircle (int x, int y, int radius) |
| void | DrawArc (int xStart, int yStart, int xEnd, int yEnd, int xc, int yc) |
| void | DrawPolygon (int n, const wxPoint points[], int xoffset=0, int yoffset=0, wxPolygonFillMode fill_style=wxODDEVEN_RULE) |
| void | DrawPolyPolygon (int n, const int count[], const wxPoint points[], int xoffset=0, int yoffset=0, wxPolygonFillMode fill_style=wxODDEVEN_RULE) |
| void | DrawBitmap (const wxBitmap &bitmap, int x, int y, bool useAlpha=false) |
| void | DrawText (int Align, int x, int y, const wxString &Text) |
| void | DrawText (int Align, int x, int y, double Angle, const wxString &Text) |
| void | DrawText (int Align, int x, int y, const wxString &Text, int Effect, wxColour Effect_Color, int Effect_Size=1) |
| void | DrawText (int Align, int x, int y, double Angle, const wxString &Text, int Effect, wxColour Effect_Color, int Effect_Size=1) |
| const double & | Scale (void) const |
| const CSG_Rect & | rWorld (void) const |
| const int & | DC_Width (void) const |
| const int & | DC_Height (void) const |
| const wxRect & | rDC (void) const |
| const double & | World2DC (void) const |
| TSG_Point_Int | World2DC (const CSG_Point &p) |
| double | xWorld2DC (double x, bool bRound=true) |
| double | yWorld2DC (double y, bool bRound=true) |
| const double & | DC2World (void) const |
| double | xDC2World (double x) |
| double | yDC2World (double y) |
| void | Set_Font (wxFont &Font) |
| wxBitmap | Get_Bitmap (void) |
| bool | Get_Bitmap (wxBitmap &Bitmap) |
| bool | Get_Image (wxImage &Image) |
| bool | Get_Image (CSG_Grid &Image) |
| bool | Draw_Layer_Begin (void) |
| bool | Draw_Layer_End (double Transparency=0.) |
| void | Draw_Polygon (CSG_Shape_Polygon *pPolygon) |
| bool | Draw_Image_Begin (double Transparency, Mode Mode=Mode::Transparent) |
| bool | Draw_Image_End (void) |
| void | Draw_Image_Pixels (int x1, int y1, int x2, int y2, int Color) |
| void | Draw_Image_Pixel (int x, int y, int Color) |
|
strong |
| CSG_Map_DC::CSG_Map_DC | ( | void | ) |
Definition at line 62 of file map_dc.cpp.
|
virtual |
Definition at line 80 of file map_dc.cpp.
References Destroy().
| CSG_Map_DC::CSG_Map_DC | ( | const CSG_Rect & | rWorld, |
| const CSG_Rect_Int & | rDC, | ||
| double | Scale = 1., | ||
| int | Background = -1, | ||
| bool | bAlpha = false ) |
| CSG_Map_DC::CSG_Map_DC | ( | const CSG_Rect & | rWorld, |
| const wxRect & | rDC, | ||
| double | Scale = 1., | ||
| int | Background = -1, | ||
| bool | bAlpha = false ) |
| bool CSG_Map_DC::Create | ( | const CSG_Rect & | rWorld, |
| const CSG_Rect_Int & | rDC, | ||
| double | Scale = 1., | ||
| int | Background = -1, | ||
| bool | bAlpha = false ) |
Definition at line 91 of file map_dc.cpp.
References Create(), rDC(), rWorld(), and Scale().
Referenced by Create(), CSG_Map_DC(), and CSG_Map_DC().
| bool CSG_Map_DC::Create | ( | const CSG_Rect & | rWorld, |
| const wxRect & | rDC, | ||
| double | Scale = 1., | ||
| int | Background = -1, | ||
| bool | bAlpha = false ) |
|
inline |
Definition at line 154 of file map_dc.h.
Referenced by CSG_Map_BaseMap::Draw(), CSG_Map_Grid::On_Draw(), and CSG_Map_Grids::On_Draw().
| bool CSG_Map_DC::Destroy | ( | void | ) |
Definition at line 150 of file map_dc.cpp.
Referenced by Create(), and ~CSG_Map_DC().
| bool CSG_Map_DC::Draw_Image_Begin | ( | double | Transparency, |
| Mode | Mode = Mode::Transparent ) |
Definition at line 374 of file map_dc.cpp.
References Alpha, Opaque, and Transparent.
Referenced by CSG_Map_BaseMap::Draw(), Draw_Layer_End(), CSG_Map_Grid::On_Draw(), CSG_Map_Grids::On_Draw(), and CSG_Map_PointCloud::On_Draw().
| bool CSG_Map_DC::Draw_Image_End | ( | void | ) |
Definition at line 418 of file map_dc.cpp.
Referenced by CSG_Map_BaseMap::Draw(), Draw_Layer_End(), CSG_Map_Grid::On_Draw(), CSG_Map_Grids::On_Draw(), and CSG_Map_PointCloud::On_Draw().
|
inline |
Definition at line 186 of file map_dc.h.
Referenced by CSG_Map_BaseMap::Draw().
| void CSG_Map_DC::Draw_Image_Pixels | ( | int | x1, |
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| int | Color ) |
Definition at line 433 of file map_dc.cpp.
| bool CSG_Map_DC::Draw_Layer_Begin | ( | void | ) |
Definition at line 271 of file map_dc.cpp.
Referenced by CSG_Map_Graticule::Draw(), and CSG_Map_Shapes::On_Draw().
| bool CSG_Map_DC::Draw_Layer_End | ( | double | Transparency = 0. | ) |
Definition at line 290 of file map_dc.cpp.
References Draw_Image_Begin(), and Draw_Image_End().
Referenced by CSG_Map_Graticule::Draw(), and CSG_Map_Shapes::On_Draw().
| void CSG_Map_DC::Draw_Polygon | ( | CSG_Shape_Polygon * | pPolygon | ) |
Definition at line 317 of file map_dc.cpp.
References DrawPoint(), DrawPolygon(), DrawPolyPolygon(), CSG_Shape_Points::Get_Extent(), CSG_Shape_Points::Get_Part_Count(), CSG_Shape_Points::Get_Point(), CSG_Shape_Points::Get_Point_Count(), CSG_Rect::Get_XCenter(), CSG_Rect::Get_XRange(), CSG_Rect::Get_YCenter(), CSG_Rect::Get_YRange(), SSG_Point::x, xWorld2DC(), SSG_Point::y, and yWorld2DC().
Referenced by CSG_Map_Shapes_Polygon::Draw_Initialize(), and CSG_Map_Shapes_Polygon::Draw_Shape().
| void CSG_Map_DC::DrawArc | ( | int | xStart, |
| int | yStart, | ||
| int | xEnd, | ||
| int | yEnd, | ||
| int | xc, | ||
| int | yc ) |
Definition at line 567 of file map_dc.cpp.
| void CSG_Map_DC::DrawBitmap | ( | const wxBitmap & | bitmap, |
| int | x, | ||
| int | y, | ||
| bool | useAlpha = false ) |
Definition at line 600 of file map_dc.cpp.
Referenced by CSG_Map_Shapes_Point::Draw_Shape().
| void CSG_Map_DC::DrawCircle | ( | int | x, |
| int | y, | ||
| int | radius ) |
Definition at line 556 of file map_dc.cpp.
Referenced by CSG_Map_Shapes_Polygon::Draw_Shape().
| void CSG_Map_DC::DrawLine | ( | int | x1, |
| int | y1, | ||
| int | x2, | ||
| int | y2 ) |
Definition at line 524 of file map_dc.cpp.
Referenced by CSG_Map_Graticule::Draw().
| void CSG_Map_DC::DrawPoint | ( | int | x, |
| int | y ) |
Definition at line 513 of file map_dc.cpp.
Referenced by Draw_Polygon(), and CSG_Map_Shapes_Polygon::Draw_Thumbnails().
| void CSG_Map_DC::DrawPolygon | ( | int | n, |
| const wxPoint | points[], | ||
| int | xoffset = 0, | ||
| int | yoffset = 0, | ||
| wxPolygonFillMode | fill_style = wxODDEVEN_RULE ) |
Definition at line 578 of file map_dc.cpp.
Referenced by Draw_Polygon().
| void CSG_Map_DC::DrawPolyPolygon | ( | int | n, |
| const int | count[], | ||
| const wxPoint | points[], | ||
| int | xoffset = 0, | ||
| int | yoffset = 0, | ||
| wxPolygonFillMode | fill_style = wxODDEVEN_RULE ) |
Definition at line 589 of file map_dc.cpp.
Referenced by Draw_Polygon().
| void CSG_Map_DC::DrawRectangle | ( | const wxRect & | r | ) |
Definition at line 545 of file map_dc.cpp.
| void CSG_Map_DC::DrawRectangle | ( | int | x1, |
| int | y1, | ||
| int | width, | ||
| int | height ) |
Definition at line 535 of file map_dc.cpp.
Referenced by CSG_Map_Shapes_Point::Draw_Shape().
| void CSG_Map_DC::DrawText | ( | int | Align, |
| int | x, | ||
| int | y, | ||
| const wxString & | Text ) |
Definition at line 616 of file map_dc.cpp.
References SG_DC_Draw_Text().
Referenced by CSG_Map_Graticule::Draw(), CSG_Map_Shapes_Line::Draw_Label(), CSG_Map_Shapes_Point::Draw_Label(), CSG_Map_Shapes_Points::Draw_Label(), and CSG_Map_Shapes_Polygon::Draw_Label().
| void CSG_Map_DC::DrawText | ( | int | Align, |
| int | x, | ||
| int | y, | ||
| const wxString & | Text, | ||
| int | Effect, | ||
| wxColour | Effect_Color, | ||
| int | Effect_Size = 1 ) |
Definition at line 638 of file map_dc.cpp.
References SG_DC_Draw_Text().
| void CSG_Map_DC::DrawText | ( | int | Align, |
| int | x, | ||
| int | y, | ||
| double | Angle, | ||
| const wxString & | Text ) |
Definition at line 627 of file map_dc.cpp.
References SG_DC_Draw_Text().
| void CSG_Map_DC::DrawText | ( | int | Align, |
| int | x, | ||
| int | y, | ||
| double | Angle, | ||
| const wxString & | Text, | ||
| int | Effect, | ||
| wxColour | Effect_Color, | ||
| int | Effect_Size = 1 ) |
Definition at line 649 of file map_dc.cpp.
References SG_DC_Draw_Text().
| int CSG_Map_DC::Get_Background | ( | void | ) | const |
Definition at line 165 of file map_dc.cpp.
References SG_Get_Color().
| wxBitmap CSG_Map_DC::Get_Bitmap | ( | void | ) |
Definition at line 171 of file map_dc.cpp.
References Get_Bitmap().
Referenced by Get_Bitmap(), CSG_Map_Grid::Get_Bitmap(), CSG_Map_Grids::Get_Bitmap(), and CSG_Map_Layer::Set_Thumbnail().
| bool CSG_Map_DC::Get_Bitmap | ( | wxBitmap & | Bitmap | ) |
Definition at line 177 of file map_dc.cpp.
References Get_Image().
|
inline |
Definition at line 96 of file map_dc.h.
Referenced by CSG_Map_BaseMap::Draw(), CSG_Map_Graticule::Draw(), CSG_Map_Shapes_Line::Draw_Label(), and CSG_Map_Shapes::On_Draw().
| bool CSG_Map_DC::Get_Image | ( | CSG_Grid & | Image | ) |
Definition at line 242 of file map_dc.cpp.
References CSG_Grid::Create(), Get_Image(), CSG_Grid::Get_NX(), CSG_Grid::Get_NY(), CSG_Grid::Set_Value(), and SG_DATATYPE_Int.
| bool CSG_Map_DC::Get_Image | ( | wxImage & | Image | ) |
Definition at line 208 of file map_dc.cpp.
Referenced by Get_Bitmap(), Get_Image(), CSG_Map_Grid::Get_Image(), and CSG_Map_Grids::Get_Image().
|
inline |
Definition at line 129 of file map_dc.h.
Referenced by Create(), Create(), CSG_Map_DC(), CSG_Map_DC(), CSG_Map_BaseMap::Draw(), CSG_Map_Graticule::Draw(), and CSG_Map_Shapes_Polygon::Draw_Thumbnails().
|
inline |
Definition at line 124 of file map_dc.h.
Referenced by Create(), Create(), CSG_Map_DC(), CSG_Map_DC(), CSG_Map_BaseMap::Draw(), CSG_Map_Graticule::Draw(), CSG_Map_Shapes_Polygon::Draw_Thumbnails(), CSG_Map_Grid::On_Draw(), CSG_Map_Grids::On_Draw(), CSG_Map_PointCloud::On_Draw(), CSG_Map_Shapes::On_Draw(), and CSG_Map_TIN::On_Draw().
|
inline |
Definition at line 122 of file map_dc.h.
Referenced by Create(), Create(), CSG_Map_DC(), CSG_Map_DC(), CSG_Map_Shapes_Point::Draw_Initialize(), and CSG_Map_Shapes_Line::Draw_Shape().
| void CSG_Map_DC::Set_Font | ( | wxFont & | Font | ) |
Definition at line 460 of file map_dc.cpp.
References SetFont().
| void CSG_Map_DC::SetBrush | ( | const wxBrush & | Brush | ) |
Definition at line 495 of file map_dc.cpp.
Referenced by CSG_Map_Layer::Draw(), CSG_Map_Shapes_Point::Draw_Initialize(), CSG_Map_Shapes_Point::Draw_Initialize(), CSG_Map_Shapes_Polygon::Draw_Initialize(), and CSG_Map_Shapes_Polygon::Draw_Shape().
| void CSG_Map_DC::SetFont | ( | const wxFont & | Font | ) |
Definition at line 471 of file map_dc.cpp.
Referenced by CSG_Map_Graticule::Draw(), CSG_Map_Shapes::On_Draw(), and Set_Font().
| void CSG_Map_DC::SetPen | ( | const wxPen & | Pen | ) |
Definition at line 482 of file map_dc.cpp.
Referenced by CSG_Map_Graticule::Draw(), CSG_Map_Layer::Draw(), CSG_Map_Shapes_Line::Draw_Initialize(), CSG_Map_Shapes_Point::Draw_Initialize(), CSG_Map_Shapes_Point::Draw_Initialize(), CSG_Map_Shapes_Polygon::Draw_Initialize(), CSG_Map_Shapes_Line::Draw_Shape(), and CSG_Map_Shapes_Polygon::Draw_Shape().
|
inline |
Definition at line 133 of file map_dc.h.
References SSG_Point::x, SSG_Point_Int::x, xWorld2DC(), SSG_Point::y, SSG_Point_Int::y, and yWorld2DC().
|
inline |
Definition at line 131 of file map_dc.h.
Referenced by CSG_Map_Graticule::Draw(), CSG_Map_Shapes_Point::Draw_Initialize(), CSG_Map_Shapes_Line::Draw_Label(), CSG_Map_Shapes_Point::Draw_Label(), CSG_Map_Shapes_Points::Draw_Label(), CSG_Map_Shapes_Polygon::Draw_Label(), CSG_Map_Shapes_Line::Draw_Shape(), CSG_Map_Shapes_Point::Draw_Shape(), CSG_Map_Shapes_Points::Draw_Shape(), CSG_Map_Shapes_Polygon::Draw_Thumbnails(), and CSG_Map_Shapes::On_Draw().
|
inline |
Definition at line 140 of file map_dc.h.
Referenced by Draw_Polygon(), CSG_Map_Shapes_Polygon::Draw_Shape(), and World2DC().
|
inline |
Definition at line 147 of file map_dc.h.
Referenced by Draw_Polygon(), CSG_Map_Shapes_Polygon::Draw_Shape(), and World2DC().