|
SAGA API Version 9.14
|
#include <map_layer.h>
Classes | |
| class | CArrow |
| class | CBeachball |
| class | CImage |
| class | CLabel_Point |
| class | CSize |
| class | CSymbol |
Public Member Functions | |
| CSG_Map_Shapes_Point (CSG_Shapes *pShapes=NULL) | |
| virtual bool | Add_Parameters (CSG_Parameters &Parameters) |
| virtual bool | Parameter_Changed (CSG_Parameters &Parameters, CSG_Parameter &Parameter, int Flags) |
| virtual bool | Parameters_Changed (void) |
| virtual bool | DataObject_Changed (void) |
| virtual void | Draw_Shape (CSG_Map_DC &dc_Map, CSG_Shape *pShape, int Flags=0) |
| virtual void | Draw_Label (CSG_Map_DC &dc_Map, CSG_Shape *pShape, const wxString &Label) |
| bool | Get_Outline (void) |
| bool | Get_Style_Size (int &minSize, int &maxSize, double &Minimum, double &Scale, wxString *pName) |
| void | Draw_Symbol (wxDC &dc, int x, int y, int size) |
| Public Member Functions inherited from CSG_Map_Shapes | |
| int | Get_Field_Value (void) const |
| int | Get_Field_Normal (void) const |
| double | Get_Scale_Normal (void) const |
| int | Get_Field_Label (void) const |
| wxPen | Get_Def_Pen (void) const |
| wxBrush | Get_Def_Brush (void) const |
| virtual void | Draw_Thumbnails (CSG_Map_DC &dc_Map, int Limit) |
| Public Member Functions inherited from CSG_Map_Layer | |
| CSG_Map_Layer (void) | |
| virtual | ~CSG_Map_Layer (void) |
| const TSG_Data_Object_Type & | Get_ObjectType (void) const |
| bool | Set_Object (CSG_Data_Object *pObject) |
| CSG_Data_Object * | Get_Object (void) const |
| CSG_Rect | Get_Extent (void) const |
| CSG_Parameters & | Get_Parameters (void) |
| bool | Set_Parameters (const CSG_Parameters &Parameters) |
| bool | Sync_Back (CSG_Parameters &Target) const |
| bool | Sync_Forward (const CSG_Parameters &Source) |
| bool | Draw (CSG_Map_DC &dc_Map, int Flags=0, CSG_Data_Object *pObject=NULL) |
| CSG_Table & | Get_LUT (void) |
| CSG_Colors & | Get_Colors (void) |
| const CSG_Colors & | Get_Colors (void) const |
| bool | Get_Colors (CSG_Colors &Colors) const |
| bool | Set_Colors (const CSG_Colors &Colors) |
| wxString | Get_Legend_Title (void) const |
| wxString | Get_Legend_Subtitle (void) const |
| bool | Get_Field_Value (sLong Index, int Field, int Normalize, double Scale, wxString &Value) const |
| bool | Get_Field_Value (sLong Index, int Field, int Normalize, double Scale, double &Value) const |
| double | Get_Stretch_Minimum (void) const |
| double | Get_Stretch_Maximum (void) const |
| double | Get_Stretch_Range (void) const |
| bool | Set_Stretch_Range (double Minimum, double Maximum) |
| bool | Set_Stretch_FullRange (void) |
| virtual bool | Set_Stretch_Extent (const CSG_Rect &Extent) |
| bool | Classify (const CSG_MetaData &Options) |
| class CSG_Map_Symbology * | Get_Symbology (void) |
| class CSG_Map_Legend * | Get_Legend (void) |
| virtual bool | asImage (CSG_Grid *pImage) |
| const class wxBitmap * | Get_Thumbnail (int dx, int dy) |
| bool | Set_Thumbnail (void) |
Protected Member Functions | |
| virtual void | Draw_Initialize (CSG_Map_DC &dc_Map, int Flags) |
| virtual bool | Draw_Initialize (CSG_Map_DC &dc_Map, int &Size, CSG_Shape *pShape, int Flags) |
| void | Draw_Symbol (CSG_Map_DC &dc, int x, int y, int size) |
| Protected Member Functions inherited from CSG_Map_Shapes | |
| CSG_Map_Shapes (void) | |
| virtual void | On_Draw (CSG_Map_DC &dc_Map, int Flags) |
| CSG_Shape * | Get_Shape (sLong i) |
| bool | Get_Class_Color (CSG_Shape *pShape, int &Color) |
| CSG_Parameter * | BrushList_Add (CSG_Parameters &Parameters, const CSG_String &ParentID, const CSG_String &Identifier, const CSG_String &Name, const CSG_String &Description) const |
| wxBrushStyle | BrushList_Get_Style (const CSG_String &Identifier) |
| CSG_Parameter * | PenList_Add (CSG_Parameters &Parameters, const CSG_String &ParentID, const CSG_String &Identifier, const CSG_String &Name, const CSG_String &Description) const |
| int | PenList_Get_Style (const CSG_String &Identifier) |
| Protected Member Functions inherited from CSG_Map_Layer | |
| CSG_Map_Layer (TSG_Data_Object_Type Type) | |
| bool | Set_Stretch (CSG_Parameters &Parameters, CSG_Data_Object *pObject=NULL, const CSG_String &Suffix="") |
| bool | Set_Normalization (int Field_Value, int Field_Normalize, double Scale_Normalize, sLong maxSamples=0) |
| bool | Set_Fields_Choice (CSG_Parameter &Choice, bool bNumeric, bool bAddNone, bool bSelectNone=false) |
Protected Attributes | |
| bool | m_bOutline |
| wxImage | m_Symbol_Image |
| class CSG_Map_Shapes_Point::CSize | m_Size |
| class CSG_Map_Shapes_Point::CLabel_Point | m_Label_Point |
| class CSG_Map_Shapes_Point::CSymbol | m_Symbol |
| class CSG_Map_Shapes_Point::CImage | m_Image |
| class CSG_Map_Shapes_Point::CArrow | m_Arrow |
| class CSG_Map_Shapes_Point::CBeachball | m_Beachball |
| Protected Attributes inherited from CSG_Map_Shapes | |
| bool | m_bNoData = true |
| int | m_bVertices = 0 |
| int | m_DrawOrder = 0 |
| wxPen | m_Pen |
| wxBrush | m_Brush |
| class CSG_Map_Shapes::CStretch | m_Stretch |
| class CSG_Map_Shapes::CLabel | m_Label |
| Protected Attributes inherited from CSG_Map_Layer | |
| TSG_Data_Object_Type | m_Type = SG_DATAOBJECT_TYPE_Undefined |
| CSG_Parameters | m_Parameters |
| CSG_Data_Object * | m_pObject = NULL |
| class CSG_Map_Symbology * | m_pSymbology = NULL |
| class CSG_Map_Legend * | m_pLegend = NULL |
| class wxBitmap * | m_pThumbnail = NULL |
| CSG_Table | m_Normalization |
Additional Inherited Members | |
| Static Public Member Functions inherited from CSG_Map_Layer | |
| static CSG_Parameters & | Get_Defaults (void) |
| Static Protected Member Functions inherited from CSG_Map_Layer | |
| static int | Get_Fields_Choice (CSG_Parameter &Choice) |
Definition at line 732 of file map_layer.h.
| CSG_Map_Shapes_Point::CSG_Map_Shapes_Point | ( | CSG_Shapes * | pShapes = NULL | ) |
Definition at line 81 of file map_shapes_point.cpp.
References Add_Parameters(), CSG_Map_Shapes::CSG_Map_Shapes(), CSG_Shapes::Get_Type(), CSG_Map_Layer::m_Parameters, CSG_Map_Layer::Set_Object(), SG_Get_ShapeType_Name(), and SHAPE_TYPE_Point.
Referenced by CSG_Map_Shapes_Points::CSG_Map_Shapes_Points().
|
virtual |
Reimplemented from CSG_Map_Shapes.
Definition at line 97 of file map_shapes_point.cpp.
References _TL, CSG_Parameters::Add_Bool(), CSG_Parameters::Add_Choice(), CSG_Parameters::Add_Color(), CSG_Parameters::Add_Double(), CSG_Parameters::Add_FilePath(), CSG_Parameters::Add_Int(), CSG_Parameters::Add_Node(), CSG_Map_Shapes::Add_Parameters(), CSG_Parameters::Add_Range(), CSG_Map_Shapes::BrushList_Add(), CSG_String::Format(), CSG_Parameter::Set_Collapsed(), and SG_GET_RGB.
Referenced by CSG_Map_Shapes_Point().
|
virtual |
Reimplemented from CSG_Map_Shapes.
Definition at line 283 of file map_shapes_point.cpp.
References CSG_Map_Shapes::DataObject_Changed(), CSG_Map_Layer::m_Parameters, and CSG_Map_Layer::Set_Fields_Choice().
|
inlineprotectedvirtual |
Definition at line 470 of file map_shapes_point.cpp.
References CSG_Table_Record::asDouble(), CSG_Map_Shapes::Get_Class_Color(), LAYER_DRAW_FLAG_SELECTION, m_Arrow, CSG_Map_Shapes::m_bNoData, m_bOutline, CSG_Map_Shapes::m_Brush, m_Label_Point, CSG_Map_Layer::m_Parameters, CSG_Map_Shapes::m_Pen, m_Size, m_Symbol, CSG_Map_DC::Scale(), CSG_Map_DC::SetBrush(), CSG_Map_DC::SetPen(), SG_Get_wxColor(), SYMBOL_TYPE_Arrow, and CSG_Map_DC::World2DC().
|
inlineprotectedvirtual |
Reimplemented from CSG_Map_Shapes.
Definition at line 452 of file map_shapes_point.cpp.
References LAYER_DRAW_FLAG_THUMBNAIL, CSG_Map_Shapes::m_Brush, CSG_Map_Layer::m_Parameters, CSG_Map_Shapes::m_Pen, m_Symbol, CSG_Map_DC::SetBrush(), CSG_Map_DC::SetPen(), SYMBOL_TYPE_Beachball, and SYMBOL_TYPE_Image.
Referenced by Draw_Shape(), and CSG_Map_Shapes_Points::Draw_Shape().
|
virtual |
Reimplemented from CSG_Map_Shapes.
Reimplemented in CSG_Map_Shapes_Points.
Definition at line 627 of file map_shapes_point.cpp.
References CSG_Table_Record::asDouble(), CSG_Map_DC::DrawText(), CSG_Shape::Get_Point(), CSG_Map_Shapes::m_Label, m_Label_Point, SG_DC_TEXTALIGN_BOTTOM, SG_DC_TEXTALIGN_LEFT, SG_DC_TEXTALIGN_RIGHT, SG_DC_TEXTALIGN_TOP, CSG_Map_DC::World2DC(), SSG_Point_Int::x, and SSG_Point_Int::y.
|
virtual |
Reimplemented from CSG_Map_Shapes.
Reimplemented in CSG_Map_Shapes_Points.
Definition at line 538 of file map_shapes_point.cpp.
References CSG_Table_Record::asDouble(), CSG_Table_Record::asString(), Draw_Initialize(), Draw_Symbol(), CSG_Map_DC::DrawBitmap(), CSG_Map_DC::DrawRectangle(), CSG_Shape::Get_Point(), CSG_Table_Record::is_NoData(), LAYER_DRAW_FLAG_SELECTION, LAYER_DRAW_FLAG_THUMBNAIL, m_Arrow, m_Beachball, m_Image, m_Size, m_Symbol, SYMBOL_TYPE_Arrow, SYMBOL_TYPE_Beachball, SYMBOL_TYPE_Image, CSG_Map_DC::World2DC(), SSG_Point_Int::x, and SSG_Point_Int::y.
|
protected |
Definition at line 716 of file map_shapes_point.cpp.
References DRAW_CIRCLE, DRAW_RHOMBUS, DRAW_SQUARE, DRAW_TRIANGLE_DOWN, DRAW_TRIANGLE_UP, and m_Symbol.
| void CSG_Map_Shapes_Point::Draw_Symbol | ( | wxDC & | dc, |
| int | x, | ||
| int | y, | ||
| int | size ) |
Definition at line 695 of file map_shapes_point.cpp.
References DRAW_CIRCLE, DRAW_RHOMBUS, DRAW_SQUARE, DRAW_TRIANGLE_DOWN, DRAW_TRIANGLE_UP, and m_Symbol.
Referenced by CSG_Map_Legend::_Draw_Point(), Draw_Shape(), and CSG_Map_Shapes_Points::Draw_Shape().
|
inline |
Definition at line 750 of file map_layer.h.
References m_bOutline.
Referenced by CSG_Map_Legend::_Draw_Point().
| bool CSG_Map_Shapes_Point::Get_Style_Size | ( | int & | minSize, |
| int & | maxSize, | ||
| double & | Minimum, | ||
| double & | Scale, | ||
| wxString * | pName ) |
Definition at line 426 of file map_shapes_point.cpp.
References CSG_Map_Layer::m_pObject, m_Size, and Minimum.
Referenced by CSG_Map_Legend::_Draw_Point().
|
virtual |
Reimplemented from CSG_Map_Shapes.
Definition at line 205 of file map_shapes_point.cpp.
References CSG_Parameter::asInt(), CSG_Parameter::Cmp_Identifier(), CSG_Map_Layer::Get_Fields_Choice(), CSG_Map_Layer::m_pObject, CSG_Map_Shapes::Parameter_Changed(), PARAMETER_CHECK_ENABLE, PARAMETER_CHECK_VALUES, CSG_Parameter::Set_Children_Enabled(), CSG_Parameters::Set_Enabled(), SYMBOL_TYPE_Arrow, SYMBOL_TYPE_Beachball, and SYMBOL_TYPE_Image.
|
virtual |
Reimplemented from CSG_Map_Shapes.
Definition at line 306 of file map_shapes_point.cpp.
References CSG_Map_Shapes::BrushList_Get_Style(), CSG_Map_Layer::Get_Fields_Choice(), m_Arrow, m_Beachball, m_bOutline, CSG_Map_Shapes::m_Brush, m_Image, m_Label_Point, CSG_Map_Layer::m_Parameters, CSG_Map_Shapes::m_Pen, CSG_Map_Layer::m_pObject, CSG_Map_Layer::m_pSymbology, m_Size, m_Symbol, m_Symbol_Image, CSG_Map_Shapes::Parameters_Changed(), SG_DC_TEXTALIGN_BOTTOM, SG_DC_TEXTALIGN_LEFT, SG_DC_TEXTALIGN_RIGHT, SG_DC_TEXTALIGN_TOP, SG_DC_TEXTALIGN_XCENTER, SG_DC_TEXTALIGN_YCENTER, SG_File_Exists(), SG_Get_wxColor(), SYMBOL_TYPE_Arrow, SYMBOL_TYPE_Beachball, and SYMBOL_TYPE_Image.
|
protected |
Referenced by Draw_Initialize(), Draw_Shape(), and Parameters_Changed().
|
protected |
Referenced by Draw_Shape(), and Parameters_Changed().
|
protected |
Definition at line 758 of file map_layer.h.
Referenced by Draw_Initialize(), Get_Outline(), and Parameters_Changed().
|
protected |
Referenced by Draw_Shape(), and Parameters_Changed().
|
protected |
Referenced by Draw_Initialize(), Draw_Label(), and Parameters_Changed().
|
protected |
Referenced by Draw_Initialize(), Draw_Shape(), CSG_Map_Shapes_Points::Draw_Shape(), Get_Style_Size(), and Parameters_Changed().
|
protected |
Referenced by Draw_Initialize(), Draw_Initialize(), Draw_Shape(), Draw_Symbol(), Draw_Symbol(), and Parameters_Changed().
|
protected |
Definition at line 760 of file map_layer.h.
Referenced by Parameters_Changed().