|
SAGA API v9.10
|
#include <tool.h>
Public Member Functions | |
| CSG_Tool_Grid (void) | |
| virtual | ~CSG_Tool_Grid (void) |
| virtual TSG_Tool_Type | Get_Type (void) const |
| const CSG_Grid_System & | Get_System (void) const |
| bool | Set_System (const CSG_Grid_System &System) |
| virtual bool | is_Grid (void) const |
| Public Member Functions inherited from CSG_Tool | |
| CSG_Tool (void) | |
| virtual | ~CSG_Tool (void) |
| virtual void | Destroy (void) |
| const CSG_String & | Get_ID (void) const |
| const CSG_String & | Get_Library (void) const |
| const CSG_String & | Get_File_Name (void) const |
| const CSG_String & | Get_Name (void) const |
| const CSG_String & | Get_Author (void) const |
| const CSG_String & | Get_Version (void) const |
| const CSG_String & | Get_Description (void) const |
| const CSG_Strings & | Get_References (void) const |
| const SG_Char * | Get_Icon (void) |
| CSG_String | Get_Summary (bool bParameters=true, const CSG_String &Menu="", const CSG_String &Description="", int Format=SG_SUMMARY_FMT_HTML) |
| virtual CSG_String | Get_MenuPath (void) |
| virtual CSG_String | Get_MenuPath (bool bSolved) |
| CSG_Parameters * | Get_Parameters (void) |
| int | Get_Parameters_Count (void) const |
| CSG_Parameters * | Get_Parameters (int i) const |
| CSG_Parameters * | Get_Parameters (int i) |
| CSG_Parameters * | Get_Parameters (const CSG_String &Identifier) const |
| CSG_Parameter * | Get_Parameter (const CSG_String &ID) const |
| CSG_Parameter * | Get_Parameter (const char *ID) const |
| CSG_Parameter * | Get_Parameter (const wchar_t *ID) const |
| bool | Set_Parameter (const CSG_String &ID, CSG_Parameter *pValue) |
| bool | Set_Parameter (const char *ID, CSG_Parameter *pValue) |
| bool | Set_Parameter (const wchar_t *ID, CSG_Parameter *pValue) |
| bool | Set_Parameter (const CSG_String &ID, int Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const char *ID, int Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const wchar_t *ID, int Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const CSG_String &ID, double Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const char *ID, double Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const wchar_t *ID, double Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const CSG_String &ID, void *Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const char *ID, void *Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const wchar_t *ID, void *Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const CSG_String &ID, const CSG_String &Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const char *ID, const CSG_String &Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const wchar_t *ID, const CSG_String &Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const CSG_String &ID, const char *Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const char *ID, const char *Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const wchar_t *ID, const char *Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const CSG_String &ID, const wchar_t *Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const char *ID, const wchar_t *Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Set_Parameter (const wchar_t *ID, const wchar_t *Value, int Type=PARAMETER_TYPE_Undefined) |
| bool | Reset (bool bManager=true) |
| bool | Reset_Manager (void) |
| bool | Reset_Grid_System (void) |
| bool | Update_Parameter_States (void) |
| void | Set_Callback (bool bActive=true) |
| bool | Set_Manager (class CSG_Data_Manager *pManager) |
| class CSG_Data_Manager * | Get_Manager (void) const |
| class CSG_Data_Manager * | Create_Manager (void) |
| bool | Delete_Manager (bool bDetachData=false, bool bReset=true) |
| bool | Set_Grid_System (const CSG_Grid_System &System) |
| CSG_Grid_System * | Get_Grid_System (void) const |
| bool | Settings_Push (class CSG_Data_Manager *pManager=NULL) |
| bool | Settings_Pop (void) |
| virtual bool | do_Sync_Projections (void) const |
| virtual bool | needs_GUI (void) const |
| bool | has_GUI (void) const |
| bool | has_CMD (void) const |
| virtual bool | is_Interactive (void) const |
| bool | is_Progress (void) const |
| bool | is_Executing (void) const |
| void | Set_Show_Progress (bool bOn=true) |
| virtual bool | On_Before_Execution (void) |
| virtual bool | On_After_Execution (void) |
| bool | Execute (bool bAddHistory=false) |
| const SG_Char * | Get_Execution_Info (void) const |
| CSG_MetaData | Get_History (int Depth=-1) |
| bool | Set_History (CSG_Data_Object *pDataObject, int Depth=-1) |
| CSG_String | Get_Script (Script_Format Format, bool bHeader=true, int Arguments=0, bool bWrapArgs=true) |
Protected Member Functions | |
| virtual bool | Set_Progress_Cells (sLong Cell) const |
| virtual bool | Set_Progress_Rows (int Row) const |
| int | Get_NX (void) const |
| int | Get_NY (void) const |
| sLong | Get_NCells (void) const |
| double | Get_XMin (void) const |
| double | Get_YMin (void) const |
| double | Get_XMax (void) const |
| double | Get_YMax (void) const |
| double | Get_Cellsize (void) const |
| double | Get_Cellarea (void) const |
| double | Get_Length (int i) const |
| double | Get_UnitLength (int i) const |
| bool | is_InGrid (int x, int y) const |
| bool | is_InGrid (int x, int y, int Rand) const |
| void | Lock_Create (void) |
| void | Lock_Destroy (void) |
| bool | is_Locked (int x, int y) |
| char | Lock_Get (int x, int y) |
| void | Lock_Set (int x, int y, char Value=1) |
| Protected Member Functions inherited from CSG_Tool | |
| void | Set_Name (const CSG_String &String) |
| void | Set_Author (const CSG_String &String) |
| void | Set_Version (const CSG_String &String) |
| void | Set_Description (const CSG_String &String) |
| void | Add_Reference (const CSG_String &Authors, const CSG_String &Year, const CSG_String &Title, const CSG_String &Where, const SG_Char *Link=NULL, const SG_Char *Link_Text=NULL) |
| void | Add_Reference (const CSG_String &Link, const SG_Char *Link_Text=NULL) |
| virtual bool | On_Execute (void)=0 |
| virtual int | On_Parameter_Changed (CSG_Parameters *pParameters, CSG_Parameter *pParameter) |
| virtual int | On_Parameters_Enable (CSG_Parameters *pParameters, CSG_Parameter *pParameter) |
| TSG_PFNC_Parameter_Changed | Get_Parameter_Changed (void) |
| CSG_Parameters * | Add_Parameters (const CSG_String &Identifier, const CSG_String &Name, const CSG_String &Description) |
| bool | Dlg_Parameters (const CSG_String &Identifier) |
| bool | Dlg_Parameters (CSG_Parameters *pParameters, const CSG_String &Caption="") |
| bool | Dlg_Parameters (CSG_Parameters &Parameters, const CSG_String &Caption="") |
| virtual bool | Set_Progress (int Position, int Range) const |
| virtual bool | Set_Progress (sLong Position, sLong Range) const |
| virtual bool | Set_Progress (double Position, double Range=1.) const |
| bool | Stop_Execution (bool bDialog=true) |
| void | Message_Dlg (const CSG_String &Text, const SG_Char *Caption=NULL) |
| bool | Message_Dlg_Confirm (const CSG_String &Text, const SG_Char *Caption=NULL) |
| void | Message_Add (const CSG_String &Text, bool bNewLine=true) |
| void | Message_Fmt (const char *Format,...) |
| void | Message_Fmt (const wchar_t *Format,...) |
| bool | Error_Set (TSG_Tool_Error Error_ID=TOOL_ERROR_Unknown) |
| bool | Error_Set (const CSG_String &Text) |
| bool | Error_Fmt (const char *Format,...) |
| bool | Error_Fmt (const wchar_t *Format,...) |
| bool | DataObject_Add (CSG_Data_Object *pDataObject, bool bUpdate=false) |
| bool | DataObject_Update_All (void) |
| bool | DataObject_Set_History (CSG_Parameter *pParameter, CSG_MetaData *pHistory=NULL) |
| bool | Get_Projection (CSG_Projection &Projection) const |
Static Protected Member Functions | |
| static int | Get_xTo (int i, int x=0) |
| static int | Get_yTo (int i, int y=0) |
| static int | Get_xFrom (int i, int x=0) |
| static int | Get_yFrom (int i, int y=0) |
| Static Protected Member Functions inherited from CSG_Tool | |
| static int | _On_Parameter_Changed (CSG_Parameter *pParameter, int Flags) |
| static bool | Process_Get_Okay (bool bBlink=false) |
| static void | Process_Set_Text (const CSG_String &Text) |
| static void | Process_Set_Text (const char *Format,...) |
| static void | Process_Set_Text (const wchar_t *Format,...) |
| static bool | DataObject_Update (CSG_Data_Object *pDataObject, int Show=SG_UI_DATAOBJECT_UPDATE) |
| static bool | DataObject_Update (CSG_Data_Object *pDataObject, double Minimum, double Maximum, int Show=SG_UI_DATAOBJECT_UPDATE) |
| static bool | DataObject_Get_Colors (CSG_Data_Object *pDataObject, CSG_Colors &Colors) |
| static bool | DataObject_Set_Colors (CSG_Data_Object *pDataObject, const CSG_Colors &Colors) |
| static bool | DataObject_Set_Colors (CSG_Data_Object *pDataObject, int nColors=0, int Colors=SG_COLORS_DEFAULT, bool bRevert=false) |
| static bool | DataObject_Set_Colors (CSG_Data_Object *pDataObject, const CSG_String &Colors, int nColors=0, bool bRevert=false) |
| static bool | DataObject_Get_Parameters (CSG_Data_Object *pDataObject, CSG_Parameters &Parameters) |
| static bool | DataObject_Set_Parameters (CSG_Data_Object *pDataObject, CSG_Parameters &Parameters) |
| static bool | DataObject_Set_Parameters (CSG_Data_Object *pDataObject, CSG_Data_Object *pCopy) |
| static CSG_Parameter * | DataObject_Get_Parameter (CSG_Data_Object *pDataObject, const CSG_String &ID) |
| static bool | DataObject_Set_Parameter (CSG_Data_Object *pDataObject, CSG_Parameter *pParameter) |
| static bool | DataObject_Set_Parameter (CSG_Data_Object *pDataObject, CSG_Data_Object *pCopy, const CSG_String &ID) |
| static bool | DataObject_Set_Parameter (CSG_Data_Object *pDataObject, const CSG_String &ID, int Value) |
| static bool | DataObject_Set_Parameter (CSG_Data_Object *pDataObject, const CSG_String &ID, double Value) |
| static bool | DataObject_Set_Parameter (CSG_Data_Object *pDataObject, const CSG_String &ID, void *Value) |
| static bool | DataObject_Set_Parameter (CSG_Data_Object *pDataObject, const CSG_String &ID, const SG_Char *Value) |
| static bool | DataObject_Set_Parameter (CSG_Data_Object *pDataObject, const CSG_String &ID, double loVal, double hiVal) |
| static bool | DataObject_Set_Stretch_Linear (CSG_Data_Object *pDataObject, int Field=-1, double Minimum=5., double Maximum=95., int Interval_Mode=0, double Interval_Log=1., int Colors=-1, bool bUpdateNow=false) |
| static bool | DataObject_Set_Stretch_StdDev (CSG_Data_Object *pDataObject, int Field=-1, double StdDev=2., bool bKeepInRange=false, int Interval_Mode=0, double Interval_Log=1., int Colors=-1, bool bUpdateNow=false) |
| static bool | DataObject_Set_Stretch_Percentile (CSG_Data_Object *pDataObject, int Field=-1, double Minimum=2., double Maximum=98., int Interval_Mode=0, double Interval_Log=1., int Colors=-1, bool bUpdateNow=false) |
| static bool | DataObject_Set_Stretch (CSG_Data_Object *pDataObject, int Field, double Minimum, double Maximum, int Interval_Mode=0, double Interval_Log=1., int Colors=-1, bool bUpdateNow=false) |
| static bool | DataObject_Classify_Unique (CSG_Data_Object *pDataObject, int Field=-1, int Classes_Max=1024, int Colors=-1) |
| static bool | DataObject_Classify_Equal (CSG_Data_Object *pDataObject, int Field=-1, int Classes=10, int Colors=-1) |
| static bool | DataObject_Classify_Defined (CSG_Data_Object *pDataObject, int Field, double Interval, bool bOffset=false, double Offset=0., int Colors=-1) |
| static bool | DataObject_Classify_Quantile (CSG_Data_Object *pDataObject, int Field=-1, int Classes=10, bool bHistogram=true, int Colors=-1) |
| static bool | DataObject_Classify_Geometric (CSG_Data_Object *pDataObject, int Field=-1, int Classes=10, bool bIncreasing=true, int Colors=-1) |
| static bool | DataObject_Classify_Natural (CSG_Data_Object *pDataObject, int Field=-1, int Classes=10, int Colors=-1) |
| static bool | DataObject_Classify_StdDev (CSG_Data_Object *pDataObject, int Field=-1, double StdDev=0.5, double StdDev_Max=4.5, int Colors=-1) |
Additional Inherited Members | |
| Public Types inherited from CSG_Tool | |
| enum class | Script_Format { CMD_Shell , CMD_Batch , CMD_Usage , Toolchain , Python , Python_Wrapper_Func_Name , Python_Wrapper_Func_ID , Python_Wrapper_Call_Name , Python_Wrapper_Call_ID , Markdown_Table } |
| Protected Attributes inherited from CSG_Tool | |
| CSG_Parameters | Parameters |
| CSG_MetaData | History_Supplement |
| CSG_Tool_Grid::CSG_Tool_Grid | ( | void | ) |
Definition at line 63 of file tool_grid.cpp.
References CSG_Tool::CSG_Tool(), and CSG_Tool::Parameters.
|
virtual |
Definition at line 72 of file tool_grid.cpp.
References Lock_Destroy().
|
inlineprotected |
Definition at line 430 of file tool.h.
References Get_Cellarea(), and Get_System().
Referenced by Get_Cellarea().
|
inlineprotected |
Definition at line 429 of file tool.h.
References Get_Cellsize(), and Get_System().
Referenced by Get_Cellsize(), CSG_Tool_Grid_Interactive::Get_Grid_Pos(), CSG_Tool_Grid_Interactive::Get_xGrid(), CSG_Tool_Grid_Interactive::Get_yGrid(), and Lock_Create().
|
inlineprotected |
Definition at line 432 of file tool.h.
References Get_Length(), and Get_System().
Referenced by Get_Length().
|
inlineprotected |
Definition at line 424 of file tool.h.
References Get_NCells(), and Get_System().
Referenced by Get_NCells(), and Set_Progress_Cells().
|
inlineprotected |
Definition at line 422 of file tool.h.
References Get_NX(), and Get_System().
Referenced by CSG_Tool_Grid_Interactive::Get_Grid_Pos(), Get_NX(), CSG_Tool_Grid_Interactive::Get_xGrid(), Lock_Create(), Lock_Get(), and Lock_Set().
|
inlineprotected |
Definition at line 423 of file tool.h.
References Get_NY(), and Get_System().
Referenced by CSG_Tool_Grid_Interactive::Get_Grid_Pos(), Get_NY(), CSG_Tool_Grid_Interactive::Get_yGrid(), Lock_Create(), Lock_Get(), Lock_Set(), and Set_Progress_Rows().
|
inline |
Definition at line 410 of file tool.h.
References CSG_Tool::Parameters.
Referenced by Get_Cellarea(), Get_Cellsize(), CSG_Tool_Grid_Interactive::Get_Grid_Pos(), Get_Length(), Get_NCells(), Get_NX(), Get_NY(), Get_UnitLength(), CSG_Tool_Grid_Interactive::Get_xGrid(), Get_XMax(), Get_XMin(), CSG_Tool_Grid_Interactive::Get_yGrid(), Get_YMax(), Get_YMin(), is_InGrid(), is_InGrid(), Lock_Create(), and Set_Progress_Cells().
|
inlinevirtual |
Reimplemented from CSG_Tool.
Reimplemented in CSG_Tool_Grid_Interactive.
Definition at line 408 of file tool.h.
References TOOL_TYPE_Grid.
|
inlineprotected |
Definition at line 433 of file tool.h.
References Get_System(), and Get_UnitLength().
Referenced by Get_UnitLength().
|
inlinestaticprotected |
Definition at line 439 of file tool.h.
References CSG_Grid_System::Get_xFrom().
|
inlineprotected |
Definition at line 427 of file tool.h.
References Get_System(), and Get_XMax().
Referenced by Get_XMax().
|
inlineprotected |
Definition at line 425 of file tool.h.
References Get_System(), and Get_XMin().
Referenced by CSG_Tool_Grid_Interactive::Get_Grid_Pos(), CSG_Tool_Grid_Interactive::Get_xGrid(), Get_XMin(), and Lock_Create().
|
inlinestaticprotected |
Definition at line 437 of file tool.h.
References CSG_Grid_System::Get_xTo().
|
inlinestaticprotected |
Definition at line 440 of file tool.h.
References CSG_Grid_System::Get_yFrom().
|
inlineprotected |
Definition at line 428 of file tool.h.
References Get_System(), and Get_YMax().
Referenced by Get_YMax().
|
inlineprotected |
Definition at line 426 of file tool.h.
References Get_System(), and Get_YMin().
Referenced by CSG_Tool_Grid_Interactive::Get_Grid_Pos(), CSG_Tool_Grid_Interactive::Get_yGrid(), Get_YMin(), and Lock_Create().
|
inlinestaticprotected |
Definition at line 438 of file tool.h.
References CSG_Grid_System::Get_yTo().
|
inlinevirtual |
|
inlineprotected |
Definition at line 434 of file tool.h.
References Get_System(), and is_InGrid().
Referenced by is_InGrid().
|
inlineprotected |
Definition at line 435 of file tool.h.
References Get_System(), and is_InGrid().
Referenced by is_InGrid().
|
inlineprotected |
Definition at line 446 of file tool.h.
References Lock_Get().
|
protected |
Definition at line 121 of file tool_grid.cpp.
References Get_Cellsize(), Get_NX(), Get_NY(), Get_System(), Get_XMin(), Get_YMin(), Lock_Destroy(), and SG_DATATYPE_Char.
|
protected |
Definition at line 141 of file tool_grid.cpp.
Referenced by Lock_Create(), and ~CSG_Tool_Grid().
|
inlineprotected |
Definition at line 447 of file tool.h.
References Get_NX(), and Get_NY().
Referenced by is_Locked().
|
inlineprotected |
|
protectedvirtual |
Definition at line 99 of file tool_grid.cpp.
References Get_NCells(), Get_System(), CSG_Tool::is_Progress(), and CSG_Tool::Set_Progress().
|
protectedvirtual |
Definition at line 110 of file tool_grid.cpp.
References Get_NY(), and CSG_Tool::Set_Progress().
| bool CSG_Tool_Grid::Set_System | ( | const CSG_Grid_System & | System | ) |
Definition at line 83 of file tool_grid.cpp.
References CSG_Tool::Parameters.