|
SAGA API Version 9.14
|
#include <parameters.h>
Public Member Functions | |
| CSG_Parameters_Grid_Target (void) | |
| bool | Create (CSG_Parameters *pParameters, bool bAddDefaultGrid, CSG_Parameter *pParent, const CSG_String &Prefix="") |
| bool | Create (CSG_Parameters *pParameters, bool bAddDefaultGrid=true, const CSG_String &ParentID="", const CSG_String &Prefix="") |
| bool | Add_Grid (const CSG_String &ID, const CSG_String &Name, bool bOptional) |
| bool | Add_Grids (const CSG_String &ID, const CSG_String &Name, bool bOptional, bool bZLevels=false) |
| bool | On_Parameter_Changed (CSG_Parameters *pParameters, CSG_Parameter *pParameter) |
| bool | On_Parameters_Enable (CSG_Parameters *pParameters, CSG_Parameter *pParameter) |
| bool | Set_User_Defined (CSG_Parameters *pParameters, const TSG_Rect &Extent, int Rows=0, int Rounding=2) |
| bool | Set_User_Defined (CSG_Parameters *pParameters, CSG_Shapes *pPoints, int Scale=4, int Rounding=2) |
| bool | Set_User_Defined (CSG_Parameters *pParameters, double xMin, double yMin, double Size, int nx, int ny) |
| bool | Set_User_Defined (CSG_Parameters *pParameters, const CSG_Grid_System &System) |
| bool | Set_User_Defined_ZLevels (CSG_Parameters *pParameters, double zMin, double zMax, int nLevels, int Rounding=2) |
| CSG_Grid_System | Get_System (void) const |
| CSG_Grid_System | Get_System (CSG_Parameters *pParameters) const |
| CSG_Grid * | Get_Grid (const CSG_String &ID, TSG_Data_Type Type=SG_DATATYPE_Float) |
| CSG_Grid * | Get_Grid (TSG_Data_Type Type=SG_DATATYPE_Float) |
| CSG_Grids * | Get_Grids (const CSG_String &ID, TSG_Data_Type Type=SG_DATATYPE_Float) |
| CSG_Grids * | Get_Grids (TSG_Data_Type Type=SG_DATATYPE_Float) |
Static Public Member Functions | |
| static bool | On_Parameter_Changed (CSG_Parameters *pParameters, CSG_Parameter *pParameter, const CSG_String Prefix) |
| static bool | On_Parameters_Enable (CSG_Parameters *pParameters, CSG_Parameter *pParameter, const CSG_String Prefix) |
Definition at line 1650 of file parameters.h.
| CSG_Parameters_Grid_Target::CSG_Parameters_Grid_Target | ( | void | ) |
Definition at line 1393 of file parameter.cpp.
| bool CSG_Parameters_Grid_Target::Add_Grid | ( | const CSG_String & | ID, |
| const CSG_String & | Name, | ||
| bool | bOptional ) |
Definition at line 1880 of file parameter.cpp.
References _TL, CSG_Parameter::Get_Child(), CSG_Parameter::Get_Children_Count(), CSG_Parameter::Get_Identifier(), CSG_Parameter::Get_Type(), CSG_String::Length(), PARAMETER_OUTPUT, PARAMETER_OUTPUT_OPTIONAL, PARAMETER_TYPE_Grid_System, CSG_Parameter::Set_UseInCMD(), and SG_T.
Referenced by Create().
| bool CSG_Parameters_Grid_Target::Add_Grids | ( | const CSG_String & | ID, |
| const CSG_String & | Name, | ||
| bool | bOptional, | ||
| bool | bZLevels = false ) |
Definition at line 1916 of file parameter.cpp.
References _TL, CSG_Parameter::Get_Child(), CSG_Parameter::Get_Children_Count(), CSG_Parameter::Get_Identifier(), CSG_Parameter::Get_Type(), CSG_String::Length(), PARAMETER_OUTPUT, PARAMETER_OUTPUT_OPTIONAL, PARAMETER_TYPE_Grid_System, and SG_T.
| bool CSG_Parameters_Grid_Target::Create | ( | CSG_Parameters * | pParameters, |
| bool | bAddDefaultGrid, | ||
| CSG_Parameter * | pParent, | ||
| const CSG_String & | Prefix = "" ) |
Definition at line 1399 of file parameter.cpp.
References Create(), CSG_Parameter::Get_Identifier(), and SG_T.
Referenced by Create().
| bool CSG_Parameters_Grid_Target::Create | ( | CSG_Parameters * | pParameters, |
| bool | bAddDefaultGrid = true, | ||
| const CSG_String & | ParentID = "", | ||
| const CSG_String & | Prefix = "" ) |
Definition at line 1404 of file parameter.cpp.
References _TL, Add_Grid(), CSG_String::Format(), and PARAMETER_INPUT_OPTIONAL.
| CSG_Grid * CSG_Parameters_Grid_Target::Get_Grid | ( | const CSG_String & | ID, |
| TSG_Data_Type | Type = SG_DATATYPE_Float ) |
Definition at line 2020 of file parameter.cpp.
References CSG_Parameter::asDataObject(), CSG_Parameter::asGrid(), CSG_Parameter::asGrid_System(), CSG_Grid::Create(), CSG_Grid_System::Create(), DATAOBJECT_CREATE, CSG_Parameter::Get_Parent(), CSG_Grid::Get_System(), Get_System(), CSG_Grid::Get_Type(), CSG_Parameter::Get_Type(), CSG_Grid_System::is_Equal(), CSG_Parameter::is_Optional(), CSG_Grid_System::is_Valid(), PARAMETER_TYPE_Grid, CSG_Parameter::Set_Value(), SG_Create_Grid(), SG_Get_Data_Manager(), SG_UI_DataObject_Add(), and SG_UI_DATAOBJECT_UPDATE.
Referenced by Get_Grid().
| CSG_Grid * CSG_Parameters_Grid_Target::Get_Grid | ( | TSG_Data_Type | Type = SG_DATATYPE_Float | ) |
Definition at line 2099 of file parameter.cpp.
References Get_Grid().
| CSG_Grids * CSG_Parameters_Grid_Target::Get_Grids | ( | const CSG_String & | ID, |
| TSG_Data_Type | Type = SG_DATATYPE_Float ) |
Definition at line 2105 of file parameter.cpp.
References CSG_Grids::Add_Grid(), asDouble, CSG_Parameter::asGrid_System(), CSG_Parameter::asGrids(), CSG_Parameter::asPointer(), CSG_Grid_System::Create(), CSG_Grids::Create(), DATAOBJECT_CREATE, CSG_Grids::Del_Grids(), CSG_Parameter::Get_Parent(), CSG_Grids::Get_System(), Get_System(), CSG_Grids::Get_Type(), CSG_Parameter::Get_Type(), CSG_Grid_System::is_Equal(), CSG_Parameter::is_Optional(), CSG_Grid_System::is_Valid(), PARAMETER_TYPE_Grids, CSG_Parameter::Set_Value(), SG_Create_Grids(), SG_Get_Data_Manager(), SG_UI_DataObject_Add(), and SG_UI_DATAOBJECT_UPDATE.
Referenced by Get_Grids().
| CSG_Grids * CSG_Parameters_Grid_Target::Get_Grids | ( | TSG_Data_Type | Type = SG_DATATYPE_Float | ) |
Definition at line 2194 of file parameter.cpp.
References Get_Grids().
| CSG_Grid_System CSG_Parameters_Grid_Target::Get_System | ( | CSG_Parameters * | pParameters | ) | const |
Definition at line 1973 of file parameter.cpp.
References asDouble, CSG_Parameter::asGrid_System(), CSG_Grid_System::Assign(), and CSG_Rect::Deflate().
| CSG_Grid_System CSG_Parameters_Grid_Target::Get_System | ( | void | ) | const |
Definition at line 1967 of file parameter.cpp.
References Get_System().
Referenced by Get_Grid(), Get_Grids(), and Get_System().
| bool CSG_Parameters_Grid_Target::On_Parameter_Changed | ( | CSG_Parameters * | pParameters, |
| CSG_Parameter * | pParameter ) |
Definition at line 1464 of file parameter.cpp.
References CSG_Parameters::Cmp_Identifier(), CSG_Parameters::Get_Identifier(), and On_Parameter_Changed().
Referenced by On_Parameter_Changed().
|
static |
Definition at line 1472 of file parameter.cpp.
References CSG_Parameter::asDouble(), CSG_Parameter::Cmp_Identifier(), CSG_Parameter::Get_Identifier(), and M_HAS_DECIMALS.
| bool CSG_Parameters_Grid_Target::On_Parameters_Enable | ( | CSG_Parameters * | pParameters, |
| CSG_Parameter * | pParameter ) |
Definition at line 1638 of file parameter.cpp.
References CSG_String::Cmp(), CSG_Parameters::Get_Identifier(), and On_Parameters_Enable().
Referenced by On_Parameters_Enable().
|
static |
Definition at line 1646 of file parameter.cpp.
References CSG_Parameter::asInt(), and CSG_Parameters::Set_Enabled().
| bool CSG_Parameters_Grid_Target::Set_User_Defined | ( | CSG_Parameters * | pParameters, |
| const CSG_Grid_System & | System ) |
Initializes the grid system from 'System', if it represents a valid grid system.
Definition at line 1797 of file parameter.cpp.
References CSG_Grid_System::Get_Extent(), CSG_Grid_System::Get_NY(), CSG_Grid_System::is_Valid(), and Set_User_Defined().
| bool CSG_Parameters_Grid_Target::Set_User_Defined | ( | CSG_Parameters * | pParameters, |
| const TSG_Rect & | Extent, | ||
| int | Rows = 0, | ||
| int | Rounding = 2 ) |
Initializes the grid system from extent and number of rows. Extent calculation is done for grid nodes and will automatically become adjusted to match the grid cells if necessary. If Rounding is greater than zero it specifies the number of significant figures to which the cell size is rounded and also adjusts the extent coordinates to be a multiple of cell size.
Definition at line 1685 of file parameter.cpp.
References CSG_String::Cmp(), Extent, CSG_Parameters::Get_Identifier(), CSG_Rect::Get_XCenter(), CSG_Rect::Get_XMax(), CSG_Rect::Get_XMin(), CSG_Rect::Get_XRange(), CSG_Rect::Get_YCenter(), CSG_Rect::Get_YMax(), CSG_Rect::Get_YMin(), CSG_Rect::Get_YRange(), CSG_Rect::Inflate(), M_HAS_DECIMALS, CSG_Parameters::Set_Callback(), CSG_Parameters::Set_Parameter(), SG_Get_Rounded_To_SignificantFigures(), SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.
Referenced by Set_User_Defined(), Set_User_Defined(), and Set_User_Defined().
| bool CSG_Parameters_Grid_Target::Set_User_Defined | ( | CSG_Parameters * | pParameters, |
| CSG_Shapes * | pPoints, | ||
| int | Scale = 4, | ||
| int | Rounding = 2 ) |
Initializes the grid system from 'pPoints' extent and fits number of columns/rows to the average point density. Number of columns/rows can be increased if 'Scale' is greater than 1.
Definition at line 1767 of file parameter.cpp.
References CSG_Rect::Get_Area(), CSG_Table::Get_Count(), CSG_Shapes::Get_Extent(), CSG_Rect::Get_YRange(), Set_User_Defined(), SG_Get_Rounded_To_SignificantFigures(), SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.
| bool CSG_Parameters_Grid_Target::Set_User_Defined | ( | CSG_Parameters * | pParameters, |
| double | xMin, | ||
| double | yMin, | ||
| double | Cellsize, | ||
| int | nx, | ||
| int | ny ) |
Initializes the grid system from lower left cell center coordinate, cell size and number of columns and rows (nx, ny).
Definition at line 1806 of file parameter.cpp.
References Set_User_Defined().
| bool CSG_Parameters_Grid_Target::Set_User_Defined_ZLevels | ( | CSG_Parameters * | pParameters, |
| double | zMin, | ||
| double | zMax, | ||
| int | nLevels, | ||
| int | Rounding = 2 ) |
Initializes the grid collection's z level arrangement.
Definition at line 1815 of file parameter.cpp.
References CSG_String::Cmp(), CSG_Parameters::Get_Identifier(), CSG_Parameters::Set_Callback(), CSG_Parameters::Set_Parameter(), and SG_Get_Rounded_To_SignificantFigures().