SAGA API
v9.6
|
Go to the source code of this file.
Variables | |
static bool | gSG_UI_Console_bUTF8 = true |
TSG_PFNC_UI_Callback | gSG_UI_Callback = NULL |
int | gSG_UI_Progress_Lock = 0 |
int | gSG_UI_Msg_Lock = 0 |
TSG_PFNC_UI_Callback SG_Get_UI_Callback | ( | void | ) |
Definition at line 145 of file api_callback.cpp.
References gSG_UI_Callback.
bool SG_Set_UI_Callback | ( | TSG_PFNC_UI_Callback | Function | ) |
Definition at line 137 of file api_callback.cpp.
References gSG_UI_Callback.
bool SG_UI_Console_Get_UTF8 | ( | void | ) |
Definition at line 74 of file api_callback.cpp.
References gSG_UI_Console_bUTF8.
void SG_UI_Console_Print_StdErr | ( | const char * | Text, |
SG_Char | End, | ||
bool | bFlush | ||
) |
Definition at line 102 of file api_callback.cpp.
References SG_UI_Console_Print_StdErr().
Referenced by SG_UI_Console_Print_StdErr(), and SG_UI_Msg_Add_Error().
void SG_UI_Console_Print_StdErr | ( | const CSG_String & | Text, |
SG_Char | End, | ||
bool | bFlush | ||
) |
Definition at line 104 of file api_callback.cpp.
References gSG_UI_Console_bUTF8, CSG_String::to_ASCII(), and CSG_String::to_UTF8().
void SG_UI_Console_Print_StdErr | ( | const wchar_t * | Text, |
SG_Char | End, | ||
bool | bFlush | ||
) |
Definition at line 103 of file api_callback.cpp.
References SG_UI_Console_Print_StdErr().
void SG_UI_Console_Print_StdOut | ( | const char * | Text, |
SG_Char | End, | ||
bool | bFlush | ||
) |
Definition at line 77 of file api_callback.cpp.
References SG_UI_Console_Print_StdOut().
Referenced by CSG_Data_Object::CSG_Data_Object(), SG_Initialize_Environment(), SG_UI_Console_Print_StdOut(), SG_UI_Dlg_Info(), SG_UI_Dlg_Message(), SG_UI_Msg_Add(), SG_UI_Msg_Add_Execution(), SG_UI_Process_Get_Okay(), SG_UI_Process_Set_Progress(), SG_UI_Process_Set_Text(), CSG_Data_Object::Track(), and CSG_Data_Object::~CSG_Data_Object().
void SG_UI_Console_Print_StdOut | ( | const CSG_String & | Text, |
SG_Char | End, | ||
bool | bFlush | ||
) |
Definition at line 79 of file api_callback.cpp.
References gSG_UI_Console_bUTF8, CSG_String::to_ASCII(), and CSG_String::to_UTF8().
void SG_UI_Console_Print_StdOut | ( | const wchar_t * | Text, |
SG_Char | End, | ||
bool | bFlush | ||
) |
Definition at line 78 of file api_callback.cpp.
References SG_UI_Console_Print_StdOut().
void SG_UI_Console_Set_UTF8 | ( | bool | bOn | ) |
Definition at line 73 of file api_callback.cpp.
References gSG_UI_Console_bUTF8.
bool SG_UI_DataObject_Add | ( | CSG_Data_Object * | pDataObject, |
int | Show | ||
) |
Definition at line 610 of file api_callback.cpp.
References CALLBACK_DATAOBJECT_ADD, and gSG_UI_Callback.
Referenced by CSG_Parameter_Data_Object_Output::_Set_Value(), CSG_Data_Manager::Add(), and CSG_Tool::DataObject_Add().
bool SG_UI_DataObject_asImage | ( | CSG_Data_Object * | pDataObject, |
CSG_Grid * | pGrid | ||
) |
Definition at line 670 of file api_callback.cpp.
References CALLBACK_DATAOBJECT_ASIMAGE, and gSG_UI_Callback.
bool SG_UI_DataObject_Colors_Get | ( | CSG_Data_Object * | pDataObject, |
CSG_Colors * | pColors | ||
) |
Definition at line 683 of file api_callback.cpp.
References CALLBACK_DATAOBJECT_COLORS_GET, and gSG_UI_Callback.
Referenced by CSG_Tool::DataObject_Get_Colors().
bool SG_UI_DataObject_Colors_Set | ( | CSG_Data_Object * | pDataObject, |
CSG_Colors * | pColors | ||
) |
Definition at line 696 of file api_callback.cpp.
References CALLBACK_DATAOBJECT_COLORS_SET, gSG_UI_Callback, and gSG_UI_Progress_Lock.
Referenced by CSG_Tool::DataObject_Set_Colors().
bool SG_UI_DataObject_Del | ( | CSG_Data_Object * | pDataObject, |
bool | bConfirm | ||
) |
Definition at line 623 of file api_callback.cpp.
References CALLBACK_DATAOBJECT_DEL, and gSG_UI_Callback.
bool SG_UI_DataObject_Params_Get | ( | CSG_Data_Object * | pDataObject, |
CSG_Parameters * | pParameters | ||
) |
Definition at line 709 of file api_callback.cpp.
References CALLBACK_DATAOBJECT_PARAMS_GET, and gSG_UI_Callback.
Referenced by CSG_Tool::DataObject_Get_Parameters().
bool SG_UI_DataObject_Params_Set | ( | CSG_Data_Object * | pDataObject, |
CSG_Parameters * | pParameters | ||
) |
Definition at line 722 of file api_callback.cpp.
References CALLBACK_DATAOBJECT_PARAMS_SET, gSG_UI_Callback, and gSG_UI_Progress_Lock.
Referenced by CSG_Tool::DataObject_Set_Parameters().
bool SG_UI_DataObject_Show | ( | CSG_Data_Object * | pDataObject, |
int | Show | ||
) |
Definition at line 657 of file api_callback.cpp.
References CALLBACK_DATAOBJECT_SHOW, and gSG_UI_Callback.
Referenced by SG_UI_DataObject_Update().
bool SG_UI_DataObject_Update | ( | CSG_Data_Object * | pDataObject, |
int | Show, | ||
CSG_Parameters * | pParameters | ||
) |
Definition at line 636 of file api_callback.cpp.
References CALLBACK_DATAOBJECT_UPDATE, CSG_Data_Object::Get_Owner(), gSG_UI_Callback, SG_UI_DataObject_Show(), and SG_UI_DATAOBJECT_UPDATE.
Referenced by CSG_Tool::DataObject_Update(), and SG_UI_Diagram_Show().
bool SG_UI_Diagram_Show | ( | class CSG_Table * | pTable, |
class CSG_Parameters * | pParameters | ||
) |
Definition at line 748 of file api_callback.cpp.
References CALLBACK_DIAGRAM_SHOW, gSG_UI_Callback, SG_UI_DataObject_Update(), and SG_UI_DATAOBJECT_UPDATE.
bool SG_UI_Dlg_Continue | ( | const CSG_String & | Message, |
const CSG_String & | Caption | ||
) |
Definition at line 386 of file api_callback.cpp.
References CALLBACK_DLG_CONTINUE, gSG_UI_Callback, and gSG_UI_Progress_Lock.
Referenced by CSG_Tool::Message_Dlg_Confirm().
int SG_UI_Dlg_Error | ( | const CSG_String & | Message, |
const CSG_String & | Caption | ||
) |
Definition at line 402 of file api_callback.cpp.
References CALLBACK_DLG_ERROR, gSG_UI_Callback, gSG_UI_Progress_Lock, and SG_UI_Msg_Add_Error().
Referenced by CSG_Tool::Error_Set().
void SG_UI_Dlg_Info | ( | const CSG_String & | Message, |
const CSG_String & | Caption | ||
) |
Definition at line 423 of file api_callback.cpp.
References CSG_String::c_str(), CALLBACK_DLG_INFO, CSG_String::Format(), gSG_UI_Callback, gSG_UI_Progress_Lock, and SG_UI_Console_Print_StdOut().
void SG_UI_Dlg_Message | ( | const CSG_String & | Message, |
const CSG_String & | Caption | ||
) |
Definition at line 368 of file api_callback.cpp.
References CSG_String::c_str(), CALLBACK_DLG_MESSAGE, CSG_String::Format(), gSG_UI_Callback, gSG_UI_Progress_Lock, and SG_UI_Console_Print_StdOut().
Referenced by CSG_Parameters::DataObjects_Check(), and CSG_Tool::Message_Dlg().
bool SG_UI_Dlg_Parameters | ( | CSG_Parameters * | pParameters, |
const CSG_String & | Caption | ||
) |
Definition at line 448 of file api_callback.cpp.
References CALLBACK_DLG_PARAMETERS, CSG_Parameters::Get_Name(), gSG_UI_Callback, and CSG_String::is_Empty().
Referenced by CSG_Tool::Dlg_Parameters().
void* SG_UI_Get_Window_Main | ( | void | ) |
Definition at line 796 of file api_callback.cpp.
References CALLBACK_GET_APP_WINDOW, gSG_UI_Callback, and CSG_UI_Parameter::Pointer.
Referenced by CSG_Tool_Library_Manager::Destroy(), and CSG_Parameters::has_GUI().
void SG_UI_Msg_Add | ( | const char * | Message, |
bool | bNewLine, | ||
TSG_UI_MSG_STYLE | Style | ||
) |
Definition at line 502 of file api_callback.cpp.
References SG_UI_Msg_Add().
Referenced by CSG_Tool_Library_Manager::Add_Library(), CSG_Shapes::Create(), CSG_Tool_Chain::Create(), CSG_Grid::Create(), CSG_Table::Create(), CSG_TIN::Create(), CSG_Tool::Execute(), CSG_Grids::Load(), CSG_Table::Save(), CSG_Grid::Save(), CSG_Grids::Save(), CSG_PointCloud::Save(), CSG_Shapes::Save(), and SG_UI_Msg_Add().
void SG_UI_Msg_Add | ( | const CSG_String & | Message, |
bool | bNewLine, | ||
TSG_UI_MSG_STYLE | Style | ||
) |
Definition at line 504 of file api_callback.cpp.
References CALLBACK_MESSAGE_ADD, gSG_UI_Callback, gSG_UI_Msg_Lock, and SG_UI_Console_Print_StdOut().
void SG_UI_Msg_Add | ( | const wchar_t * | Message, |
bool | bNewLine, | ||
TSG_UI_MSG_STYLE | Style | ||
) |
Definition at line 503 of file api_callback.cpp.
References SG_UI_Msg_Add().
void SG_UI_Msg_Add_Error | ( | const char * | Message | ) |
Definition at line 556 of file api_callback.cpp.
References SG_UI_Msg_Add_Error().
Referenced by CSG_Tool_Library_Interface::Create(), CSG_Tool_Library_Manager::Create_Python_ToolBox(), CSG_Tool::Error_Set(), CSG_Parameters::Get_Parameter(), CSG_Table_DBase::Open_Read(), CSG_Table_DBase::Open_Write(), SG_FTP_Download(), SG_UI_Dlg_Error(), and SG_UI_Msg_Add_Error().
void SG_UI_Msg_Add_Error | ( | const CSG_String & | Message | ) |
Definition at line 558 of file api_callback.cpp.
References _TL, CSG_String::c_str(), CALLBACK_MESSAGE_ADD_ERROR, CSG_String::Format(), gSG_UI_Callback, gSG_UI_Msg_Lock, and SG_UI_Console_Print_StdErr().
void SG_UI_Msg_Add_Error | ( | const wchar_t * | Message | ) |
Definition at line 557 of file api_callback.cpp.
References SG_UI_Msg_Add_Error().
void SG_UI_Msg_Add_Execution | ( | const char * | Message, |
bool | bNewLine, | ||
TSG_UI_MSG_STYLE | Style | ||
) |
Definition at line 529 of file api_callback.cpp.
References SG_UI_Msg_Add_Execution().
Referenced by CSG_Tool::Execute(), CSG_Parameters_CRSPicker::Get_CRS(), CSG_Tool::Message_Add(), CSG_Parameters::Msg_String(), and SG_UI_Msg_Add_Execution().
void SG_UI_Msg_Add_Execution | ( | const CSG_String & | Message, |
bool | bNewLine, | ||
TSG_UI_MSG_STYLE | Style | ||
) |
Definition at line 531 of file api_callback.cpp.
References CALLBACK_MESSAGE_ADD_EXECUTION, gSG_UI_Callback, gSG_UI_Msg_Lock, and SG_UI_Console_Print_StdOut().
void SG_UI_Msg_Add_Execution | ( | const wchar_t * | Message, |
bool | bNewLine, | ||
TSG_UI_MSG_STYLE | Style | ||
) |
Definition at line 530 of file api_callback.cpp.
References SG_UI_Msg_Add_Execution().
void SG_UI_Msg_Flush | ( | void | ) |
Definition at line 576 of file api_callback.cpp.
bool SG_UI_Msg_is_Locked | ( | void | ) |
Definition at line 486 of file api_callback.cpp.
References gSG_UI_Msg_Lock.
int SG_UI_Msg_Lock | ( | bool | bOn | ) |
Definition at line 471 of file api_callback.cpp.
References gSG_UI_Msg_Lock.
Referenced by CSG_Tool_Library_Manager::Add_Default_Libraries(), CSG_Translator::Create(), CSG_Grid::Save(), and SG_UI_ProgressAndMsg_Lock().
int SG_UI_Msg_Reset | ( | void | ) |
Definition at line 492 of file api_callback.cpp.
References gSG_UI_Msg_Lock.
Referenced by SG_UI_ProgressAndMsg_Reset().
bool SG_UI_ODBC_Update | ( | const CSG_String & | Server | ) |
Definition at line 761 of file api_callback.cpp.
References CALLBACK_DATABASE_UPDATE, and gSG_UI_Callback.
bool SG_UI_Process_Get_Okay | ( | bool | bBlink | ) |
Definition at line 207 of file api_callback.cpp.
References CALLBACK_PROCESS_GET_OKAY, CSG_String::Format(), gSG_UI_Callback, gSG_UI_Progress_Lock, SG_Char, and SG_UI_Console_Print_StdOut().
Referenced by CSG_Shapes::Assign(), CSG_Tool::Error_Set(), CSG_Regression_Multiple::Get_CrossValidation(), CSG_Regression_Multiple::Get_Model_Stepwise(), CSG_Trend::Get_Trend(), CSG_Tool::is_Progress(), CSG_Tool::Process_Get_Okay(), SG_Matrix_LU_Decomposition(), and SG_UI_Process_Set_Progress().
bool SG_UI_Process_Set_Busy | ( | bool | bOn, |
const CSG_String & | Message | ||
) |
Definition at line 242 of file api_callback.cpp.
References CALLBACK_PROCESS_SET_BUSY, and gSG_UI_Callback.
bool SG_UI_Process_Set_Okay | ( | bool | bOkay | ) |
Definition at line 229 of file api_callback.cpp.
References CALLBACK_PROCESS_SET_OKAY, gSG_UI_Callback, and gSG_UI_Progress_Lock.
Referenced by CSG_Tool::Error_Set(), CSG_Tool::Execute(), CSG_Tool_Interactive_Base::Execute_Finish(), CSG_Tool_Interactive_Base::Execute_Keyboard(), and CSG_Tool_Interactive_Base::Execute_Position().
bool SG_UI_Process_Set_Progress | ( | double | Position, |
double | Range | ||
) |
Definition at line 267 of file api_callback.cpp.
References CALLBACK_PROCESS_SET_PROGRESS, CSG_String::Format(), gSG_UI_Callback, gSG_UI_Progress_Lock, SG_UI_Console_Print_StdOut(), and SG_UI_Process_Get_Okay().
bool SG_UI_Process_Set_Progress | ( | int | Position, |
int | Range | ||
) |
Definition at line 255 of file api_callback.cpp.
References SG_UI_Process_Set_Progress().
Referenced by CSG_Table::_Save_Text(), CSG_TIN::_Triangulate(), CSG_Grid::Assign(), CSG_TIN::Create(), CSG_PRQuadTree::Create(), CSG_Thin_Plate_Spline::Create(), CSG_Tool_Library_Manager::Create_Python_ToolBox(), CSG_Grid_OGIS_Converter::from_WKBinary(), CSG_Shapes::Make_Clean(), CSG_Grid::On_Update(), CSG_Table_DBase::Open_Read(), CSG_Table_DBase::Open_Write(), CSG_Matrix::Set_Inverse(), CSG_Tool::Set_Progress(), SG_Matrix_LU_Decomposition(), SG_Matrix_LU_Solve(), SG_UI_Process_Set_Progress(), SG_UI_Process_Set_Ready(), and CSG_Grid_OGIS_Converter::to_WKBinary().
Definition at line 261 of file api_callback.cpp.
References SG_UI_Process_Set_Progress().
bool SG_UI_Process_Set_Ready | ( | void | ) |
Definition at line 305 of file api_callback.cpp.
References CALLBACK_PROCESS_SET_READY, gSG_UI_Callback, gSG_UI_Progress_Lock, and SG_UI_Process_Set_Progress().
Referenced by CSG_Table::_Save_Text(), CSG_TIN::_Triangulate(), CSG_Grid::Assign(), CSG_Shapes::Create(), CSG_Grid::Create(), CSG_TIN::Create(), CSG_Tool::Execute(), CSG_Tool_Interactive_Base::Execute_Finish(), CSG_Tool_Interactive_Base::Execute_Keyboard(), CSG_Tool_Interactive_Base::Execute_Position(), CSG_Grids::Load(), CSG_Grid::On_Update(), CSG_Table_DBase::Open_Read(), CSG_Table_DBase::Open_Write(), CSG_Grid::Save(), CSG_Grids::Save(), CSG_PointCloud::Save(), and CSG_Shapes::Save().
void SG_UI_Process_Set_Text | ( | const CSG_String & | Text | ) |
Definition at line 323 of file api_callback.cpp.
References CALLBACK_PROCESS_SET_TEXT, gSG_UI_Callback, gSG_UI_Progress_Lock, and SG_UI_Console_Print_StdOut().
Referenced by CSG_Thin_Plate_Spline::Create(), CSG_Tool_Library_Manager::Create_Python_ToolBox(), and CSG_Tool::Process_Set_Text().
bool SG_UI_Progress_is_Locked | ( | void | ) |
Definition at line 191 of file api_callback.cpp.
References gSG_UI_Progress_Lock.
int SG_UI_Progress_Lock | ( | bool | bOn | ) |
Definition at line 176 of file api_callback.cpp.
References gSG_UI_Progress_Lock.
Referenced by SG_UI_ProgressAndMsg_Lock().
int SG_UI_Progress_Reset | ( | void | ) |
Definition at line 197 of file api_callback.cpp.
References gSG_UI_Progress_Lock.
Referenced by SG_UI_ProgressAndMsg_Reset().
void SG_UI_ProgressAndMsg_Lock | ( | bool | bOn | ) |
Definition at line 589 of file api_callback.cpp.
References SG_UI_Msg_Lock(), and SG_UI_Progress_Lock().
Referenced by CSG_Shapes::Create(), CSG_Table::Create(), CSG_Projections::Parse(), SG_Get_Projected(), and SG_Initialize_Environment().
void SG_UI_ProgressAndMsg_Reset | ( | void | ) |
Definition at line 596 of file api_callback.cpp.
References SG_UI_Msg_Reset(), and SG_UI_Progress_Reset().
bool SG_UI_Set_Map_Extent | ( | double | xMin, |
double | yMin, | ||
double | xMax, | ||
double | yMax, | ||
int | Maps | ||
) |
Definition at line 735 of file api_callback.cpp.
References CALLBACK_SET_MAP_EXTENT, and gSG_UI_Callback.
bool SG_UI_Stop_Execution | ( | bool | bDialog | ) |
Definition at line 348 of file api_callback.cpp.
References CALLBACK_STOP_EXECUTION, and gSG_UI_Callback.
Referenced by CSG_Tool::Stop_Execution().
int SG_UI_Window_Arrange | ( | int | Arrange | ) |
Definition at line 781 of file api_callback.cpp.
References CALLBACK_WINDOW_ARRANGE, and gSG_UI_Callback.
TSG_PFNC_UI_Callback gSG_UI_Callback = NULL |
Definition at line 134 of file api_callback.cpp.
Referenced by SG_Get_UI_Callback(), SG_Set_UI_Callback(), SG_UI_DataObject_Add(), SG_UI_DataObject_asImage(), SG_UI_DataObject_Colors_Get(), SG_UI_DataObject_Colors_Set(), SG_UI_DataObject_Del(), SG_UI_DataObject_Params_Get(), SG_UI_DataObject_Params_Set(), SG_UI_DataObject_Show(), SG_UI_DataObject_Update(), SG_UI_Diagram_Show(), SG_UI_Dlg_Continue(), SG_UI_Dlg_Error(), SG_UI_Dlg_Info(), SG_UI_Dlg_Message(), SG_UI_Dlg_Parameters(), SG_UI_Get_Window_Main(), SG_UI_Msg_Add(), SG_UI_Msg_Add_Error(), SG_UI_Msg_Add_Execution(), SG_UI_ODBC_Update(), SG_UI_Process_Get_Okay(), SG_UI_Process_Set_Busy(), SG_UI_Process_Set_Okay(), SG_UI_Process_Set_Progress(), SG_UI_Process_Set_Ready(), SG_UI_Process_Set_Text(), SG_UI_Set_Map_Extent(), SG_UI_Stop_Execution(), and SG_UI_Window_Arrange().
|
static |
Definition at line 70 of file api_callback.cpp.
Referenced by SG_UI_Console_Get_UTF8(), SG_UI_Console_Print_StdErr(), SG_UI_Console_Print_StdOut(), and SG_UI_Console_Set_UTF8().
int gSG_UI_Msg_Lock = 0 |
Definition at line 468 of file api_callback.cpp.
Referenced by SG_UI_Msg_Add(), SG_UI_Msg_Add_Error(), SG_UI_Msg_Add_Execution(), SG_UI_Msg_is_Locked(), SG_UI_Msg_Lock(), and SG_UI_Msg_Reset().
int gSG_UI_Progress_Lock = 0 |
Definition at line 173 of file api_callback.cpp.
Referenced by SG_UI_DataObject_Colors_Set(), SG_UI_DataObject_Params_Set(), SG_UI_Dlg_Continue(), SG_UI_Dlg_Error(), SG_UI_Dlg_Info(), SG_UI_Dlg_Message(), SG_UI_Process_Get_Okay(), SG_UI_Process_Set_Okay(), SG_UI_Process_Set_Progress(), SG_UI_Process_Set_Ready(), SG_UI_Process_Set_Text(), SG_UI_Progress_is_Locked(), SG_UI_Progress_Lock(), and SG_UI_Progress_Reset().