SAGA API  v9.6
CSG_Tool_Interactive Class Reference

#include <tool.h>

Inheritance diagram for CSG_Tool_Interactive:
CSG_Tool_Interactive_Base CSG_Tool

Public Member Functions

 CSG_Tool_Interactive (void)
 
virtual ~CSG_Tool_Interactive (void)
 
virtual TSG_Tool_Type Get_Type (void) const
 
virtual bool needs_GUI (void) const
 
virtual bool is_Interactive (void) const
 
- Public Member Functions inherited from CSG_Tool_Interactive_Base
 CSG_Tool_Interactive_Base (void)
 
virtual ~CSG_Tool_Interactive_Base (void)
 
bool Set_Projection (const CSG_Projection &Projection)
 
bool Execute_Position (CSG_Point ptWorld, TSG_Tool_Interactive_Mode Mode, int Keys)
 
bool Execute_Keyboard (int Character, int Keys)
 
bool Execute_Finish (void)
 
int Get_Drag_Mode (void) const
 
- Public Member Functions inherited from CSG_Tool
 CSG_Tool (void)
 
virtual ~CSG_Tool (void)
 
virtual void Destroy (void)
 
const CSG_StringGet_ID (void) const
 
const CSG_StringGet_Library (void) const
 
const CSG_StringGet_File_Name (void) const
 
const CSG_StringGet_Name (void) const
 
const CSG_StringGet_Author (void) const
 
const CSG_StringGet_Version (void) const
 
const CSG_StringGet_Description (void) const
 
const CSG_StringsGet_References (void) const
 
const SG_CharGet_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_ParametersGet_Parameters (void)
 
int Get_Parameters_Count (void) const
 
CSG_ParametersGet_Parameters (int i) const
 
CSG_ParametersGet_Parameters (int i)
 
CSG_ParametersGet_Parameters (const CSG_String &Identifier) const
 
CSG_ParameterGet_Parameter (const CSG_String &ID) const
 
CSG_ParameterGet_Parameter (const char *ID) const
 
CSG_ParameterGet_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_ManagerGet_Manager (void) const
 
class CSG_Data_ManagerCreate_Manager (void)
 
bool Delete_Manager (bool bDetachData=false, bool bReset=true)
 
bool Set_Grid_System (const CSG_Grid_System &System)
 
CSG_Grid_SystemGet_Grid_System (void) const
 
bool Settings_Push (class CSG_Data_Manager *pManager=NULL)
 
bool Settings_Pop (void)
 
virtual bool do_Sync_Projections (void) const
 
bool has_GUI (void) const
 
bool has_CMD (void) const
 
virtual bool is_Grid (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_CharGet_Execution_Info (void) const
 
CSG_String Get_Script (TSG_Tool_Script_Type Type, bool bHeader=true, bool bAllParameters=false)
 

Additional Inherited Members

- Static Public Member Functions inherited from CSG_Tool
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, int Palette=SG_COLORS_DEFAULT, 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_ParameterDataObject_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 int _On_Parameter_Changed (CSG_Parameter *pParameter, int Flags)
 
- Protected Member Functions inherited from CSG_Tool_Interactive_Base
const CSG_ProjectionGet_Projection (void) const
 
virtual bool On_Execute_Position (CSG_Point ptWorld, TSG_Tool_Interactive_Mode Mode)
 
virtual bool On_Execute_Keyboard (int Character)
 
virtual bool On_Execute_Finish (void)
 
const CSG_PointGet_Position (void) const
 
double Get_xPosition (void) const
 
double Get_yPosition (void) const
 
const CSG_PointGet_Position_Last (void) const
 
double Get_xPosition_Last (void) const
 
double Get_yPosition_Last (void) const
 
bool is_Shift (void) const
 
bool is_Alt (void) const
 
bool is_Ctrl (void) const
 
void Set_Drag_Mode (int Drag_Mode)
 
- 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_ParametersAdd_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)
 
void DataObject_Update_All (void)
 
bool DataObject_Set_History (CSG_Parameter *pParameter, CSG_MetaData *pHistory=NULL)
 
bool Get_Projection (CSG_Projection &Projection) const
 
- Protected Attributes inherited from CSG_Tool
CSG_Parameters Parameters
 
CSG_MetaData History_Supplement
 

Detailed Description

CSG_Tool_Interactive.

Definition at line 564 of file tool.h.

Constructor & Destructor Documentation

◆ CSG_Tool_Interactive()

CSG_Tool_Interactive::CSG_Tool_Interactive ( void  )

Definition at line 63 of file tool_interactive.cpp.

◆ ~CSG_Tool_Interactive()

CSG_Tool_Interactive::~CSG_Tool_Interactive ( void  )
virtual

Definition at line 69 of file tool_interactive.cpp.

Member Function Documentation

◆ Get_Type()

virtual TSG_Tool_Type CSG_Tool_Interactive::Get_Type ( void  ) const
inlinevirtual

Reimplemented from CSG_Tool.

Definition at line 570 of file tool.h.

References TOOL_TYPE_Interactive.

◆ is_Interactive()

virtual bool CSG_Tool_Interactive::is_Interactive ( void  ) const
inlinevirtual

Reimplemented from CSG_Tool.

Definition at line 574 of file tool.h.

◆ needs_GUI()

virtual bool CSG_Tool_Interactive::needs_GUI ( void  ) const
inlinevirtual

Reimplemented from CSG_Tool.

Definition at line 572 of file tool.h.


The documentation for this class was generated from the following files: