|
SAGA API Version 9.14
|
#include <map_layer.h>
Classes | |
| class | CLabel |
| class | CStretch |
Public Member Functions | |
| 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) |
| 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) |
| 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) |
| 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 | |
| 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) |
| virtual void | Draw_Initialize (CSG_Map_DC &dc_Map, int Flags) |
| 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_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 630 of file map_layer.h.
|
protected |
Definition at line 64 of file map_shapes.cpp.
References CSG_Map_Layer::CSG_Map_Layer(), m_bNoData, m_bVertices, m_DrawOrder, and SG_DATAOBJECT_TYPE_Shapes.
Referenced by CSG_Map_Shapes_Line::CSG_Map_Shapes_Line(), CSG_Map_Shapes_Point::CSG_Map_Shapes_Point(), and CSG_Map_Shapes_Polygon::CSG_Map_Shapes_Polygon().
|
virtual |
Reimplemented from CSG_Map_Layer.
Reimplemented in CSG_Map_Shapes_Line, CSG_Map_Shapes_Point, and CSG_Map_Shapes_Polygon.
Definition at line 78 of file map_shapes.cpp.
References _TL, CSG_Parameters::Add_Bool(), CSG_Parameters::Add_Choice(), CSG_Parameters::Add_Color(), CSG_Parameters::Add_Double(), CSG_Parameters::Add_Font(), CSG_Parameters::Add_Int(), CSG_Map_Layer::Add_Parameters(), CSG_Parameters::Add_Parameters(), CSG_String::Format(), SG_COLOR_GREY_LIGHT, SG_Get_Color(), SG_System_Get_Color_Background(), SG_System_Get_Color_Foreground(), and SG_T.
Referenced by CSG_Map_Shapes_Line::Add_Parameters(), CSG_Map_Shapes_Point::Add_Parameters(), and CSG_Map_Shapes_Polygon::Add_Parameters().
|
protected |
Definition at line 533 of file map_shapes.cpp.
References _TL, CSG_Parameters::Add_Choice(), and CSG_String::Format().
Referenced by CSG_Map_Shapes_Point::Add_Parameters(), and CSG_Map_Shapes_Polygon::Add_Parameters().
|
protected |
Definition at line 550 of file map_shapes.cpp.
References CSG_Map_Layer::m_Parameters.
Referenced by CSG_Map_Shapes_Point::Parameters_Changed(), and CSG_Map_Shapes_Polygon::Parameters_Changed().
|
virtual |
Reimplemented from CSG_Map_Layer.
Reimplemented in CSG_Map_Shapes_Line, CSG_Map_Shapes_Point, and CSG_Map_Shapes_Polygon.
Definition at line 238 of file map_shapes.cpp.
References CSG_Map_Layer::DataObject_Changed(), CSG_Map_Layer::m_Parameters, CSG_Map_Layer::m_pObject, and CSG_Map_Layer::Set_Fields_Choice().
Referenced by CSG_Map_Shapes_Line::DataObject_Changed(), CSG_Map_Shapes_Point::DataObject_Changed(), and CSG_Map_Shapes_Polygon::DataObject_Changed().
|
inlineprotectedvirtual |
Reimplemented in CSG_Map_Shapes_Line, CSG_Map_Shapes_Point, and CSG_Map_Shapes_Polygon.
Definition at line 687 of file map_layer.h.
Referenced by Draw_Thumbnails(), and On_Draw().
|
inlinevirtual |
Reimplemented in CSG_Map_Shapes_Line, CSG_Map_Shapes_Point, CSG_Map_Shapes_Points, and CSG_Map_Shapes_Polygon.
Definition at line 655 of file map_layer.h.
|
inlinevirtual |
Reimplemented in CSG_Map_Shapes_Line, CSG_Map_Shapes_Point, CSG_Map_Shapes_Points, and CSG_Map_Shapes_Polygon.
Definition at line 654 of file map_layer.h.
Referenced by Draw_Thumbnails().
|
virtual |
Reimplemented in CSG_Map_Shapes_Polygon.
Definition at line 447 of file map_shapes.cpp.
References Draw_Initialize(), Draw_Shape(), Get_Shape(), LAYER_DRAW_FLAG_THUMBNAIL, and CSG_Map_Layer::m_pObject.
Referenced by On_Draw().
|
protected |
Definition at line 616 of file map_shapes.cpp.
References CSG_Table_Record::asString(), CSG_Map_Symbology::CLASSIFIED, CSG_Map_Layer::Get_Field_Value(), CSG_Table_Record::Get_Index(), CSG_Map_Layer::m_pObject, CSG_Map_Layer::m_pSymbology, m_Stretch, SG_Data_Type_is_Numeric(), and CSG_Map_Symbology::SINGLE.
Referenced by CSG_Map_Shapes_Point::Draw_Initialize(), CSG_Map_Shapes_Line::Draw_Shape(), and CSG_Map_Shapes_Polygon::Draw_Shape().
|
inline |
Definition at line 650 of file map_layer.h.
References m_Brush.
Referenced by CSG_Map_Legend::_Draw_Point().
|
inline |
Definition at line 649 of file map_layer.h.
References m_Pen.
Referenced by CSG_Map_Legend::_Draw_Line(), and CSG_Map_Legend::_Draw_Point().
|
inline |
Definition at line 647 of file map_layer.h.
References m_Label.
|
inline |
Definition at line 645 of file map_layer.h.
References m_Stretch.
|
inline |
Definition at line 644 of file map_layer.h.
References m_Stretch.
|
inline |
Definition at line 646 of file map_layer.h.
References m_Stretch.
Definition at line 345 of file map_shapes.cpp.
References m_DrawOrder, and CSG_Map_Layer::m_pObject.
Referenced by Draw_Thumbnails(), and On_Draw().
|
protectedvirtual |
Reimplemented from CSG_Map_Layer.
Definition at line 356 of file map_shapes.cpp.
References asDouble, Draw_Initialize(), CSG_Map_DC::Draw_Layer_Begin(), CSG_Map_DC::Draw_Layer_End(), Draw_Thumbnails(), CSG_Map_DC::Get_DC(), CSG_Map_Layer::Get_Extent(), CSG_Map_Layer::Get_Fields_Choice(), Get_Shape(), INTERSECTION_None, LAYER_DRAW_FLAG_NOEDITS, LAYER_DRAW_FLAG_NOLABELS, LAYER_DRAW_FLAG_THUMBNAIL, m_DrawOrder, m_Label, CSG_Map_Layer::m_Parameters, CSG_Map_Layer::m_pObject, CSG_Map_DC::rWorld(), CSG_Map_DC::SetFont(), SG_Get_wxFont(), and CSG_Map_DC::World2DC().
|
virtual |
Reimplemented from CSG_Map_Layer.
Reimplemented in CSG_Map_Shapes_Line, CSG_Map_Shapes_Point, and CSG_Map_Shapes_Polygon.
Definition at line 152 of file map_shapes.cpp.
References CSG_Parameter::asBool(), CSG_Parameter::asInt(), CSG_Parameter::Cmp_Identifier(), CSG_Parameters::Cmp_Identifier(), CSG_String::Find(), CSG_Map_Layer::Get_Fields_Choice(), CSG_Parameter::Get_Identifier(), CSG_Map_Layer::Parameter_Changed(), PARAMETER_CHECK_ENABLE, PARAMETER_CHECK_VALUES, CSG_String::Replace(), CSG_Parameter::Set_Children_Enabled(), and CSG_Parameters::Set_Enabled().
Referenced by CSG_Map_Shapes_Line::Parameter_Changed(), CSG_Map_Shapes_Point::Parameter_Changed(), and CSG_Map_Shapes_Polygon::Parameter_Changed().
|
virtual |
Reimplemented from CSG_Map_Layer.
Reimplemented in CSG_Map_Shapes_Line, CSG_Map_Shapes_Point, and CSG_Map_Shapes_Polygon.
Definition at line 257 of file map_shapes.cpp.
References asDouble, CSG_Map_Layer::Get_Fields_Choice(), m_bNoData, m_Label, CSG_Map_Layer::m_Parameters, CSG_Map_Layer::m_pObject, CSG_Map_Layer::m_pSymbology, m_Stretch, CSG_Map_Layer::Parameters_Changed(), CSG_Map_Layer::Set_Stretch(), 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, SG_DC_TEXTEFFECT_TOPRIGHT, and CSG_Map_Symbology::SINGLE.
Referenced by CSG_Map_Shapes_Line::Parameters_Changed(), CSG_Map_Shapes_Point::Parameters_Changed(), and CSG_Map_Shapes_Polygon::Parameters_Changed().
|
protected |
Definition at line 566 of file map_shapes.cpp.
References _TL, CSG_Parameters::Add_Choice(), and CSG_String::Format().
Referenced by CSG_Map_Shapes_Line::Add_Parameters().
|
protected |
Definition at line 589 of file map_shapes.cpp.
References CSG_Map_Layer::m_Parameters.
Referenced by CSG_Map_Shapes_Line::Draw_Initialize().
|
protected |
Definition at line 660 of file map_layer.h.
Referenced by CSG_Map_Shapes(), CSG_Map_Shapes_Point::Draw_Initialize(), CSG_Map_Shapes_Line::Draw_Shape(), CSG_Map_Shapes_Polygon::Draw_Shape(), and Parameters_Changed().
|
protected |
Definition at line 666 of file map_layer.h.
Referenced by CSG_Map_Shapes_Point::Draw_Initialize(), CSG_Map_Shapes_Point::Draw_Initialize(), CSG_Map_Shapes_Polygon::Draw_Initialize(), CSG_Map_Shapes_Polygon::Draw_Shape(), Get_Def_Brush(), CSG_Map_Shapes_Point::Parameters_Changed(), and CSG_Map_Shapes_Polygon::Parameters_Changed().
|
protected |
Definition at line 662 of file map_layer.h.
Referenced by CSG_Map_Shapes(), CSG_Map_Shapes_Line::Parameters_Changed(), and CSG_Map_Shapes_Polygon::Parameters_Changed().
|
protected |
Definition at line 662 of file map_layer.h.
Referenced by CSG_Map_Shapes(), Get_Shape(), and On_Draw().
|
protected |
|
protected |
Definition at line 664 of file map_layer.h.
Referenced by 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(), CSG_Map_Shapes_Polygon::Draw_Shape(), Get_Def_Pen(), CSG_Map_Shapes_Line::Parameters_Changed(), CSG_Map_Shapes_Point::Parameters_Changed(), and CSG_Map_Shapes_Polygon::Parameters_Changed().
|
protected |