SAGA API  v9.5
CSG_Parameters_Grid_Target Class Reference

#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_GridGet_Grid (const CSG_String &ID, TSG_Data_Type Type=SG_DATATYPE_Float)
 
CSG_GridGet_Grid (TSG_Data_Type Type=SG_DATATYPE_Float)
 
CSG_GridsGet_Grids (const CSG_String &ID, TSG_Data_Type Type=SG_DATATYPE_Float)
 
CSG_GridsGet_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)
 

Detailed Description

Definition at line 1637 of file parameters.h.

Constructor & Destructor Documentation

◆ CSG_Parameters_Grid_Target()

CSG_Parameters_Grid_Target::CSG_Parameters_Grid_Target ( void  )

Definition at line 1335 of file parameter.cpp.

Member Function Documentation

◆ Add_Grid()

◆ Add_Grids()

◆ Create() [1/2]

bool CSG_Parameters_Grid_Target::Create ( CSG_Parameters pParameters,
bool  bAddDefaultGrid,
CSG_Parameter pParent,
const CSG_String Prefix = "" 
)

Definition at line 1341 of file parameter.cpp.

References CSG_Parameter::Get_Identifier(), and SG_T.

◆ Create() [2/2]

bool CSG_Parameters_Grid_Target::Create ( CSG_Parameters pParameters,
bool  bAddDefaultGrid = true,
const CSG_String ParentID = "",
const CSG_String Prefix = "" 
)

◆ Get_Grid() [1/2]

◆ Get_Grid() [2/2]

CSG_Grid * CSG_Parameters_Grid_Target::Get_Grid ( TSG_Data_Type  Type = SG_DATATYPE_Float)

Definition at line 2006 of file parameter.cpp.

References Get_Grid().

◆ Get_Grids() [1/2]

◆ Get_Grids() [2/2]

CSG_Grids * CSG_Parameters_Grid_Target::Get_Grids ( TSG_Data_Type  Type = SG_DATATYPE_Float)

Definition at line 2084 of file parameter.cpp.

References Get_Grids().

◆ Get_System() [1/2]

CSG_Grid_System CSG_Parameters_Grid_Target::Get_System ( CSG_Parameters pParameters) const

◆ Get_System() [2/2]

CSG_Grid_System CSG_Parameters_Grid_Target::Get_System ( void  ) const

Definition at line 1887 of file parameter.cpp.

Referenced by Get_Grid(), and Get_Grids().

◆ On_Parameter_Changed() [1/2]

bool CSG_Parameters_Grid_Target::On_Parameter_Changed ( CSG_Parameters pParameters,
CSG_Parameter pParameter 
)

◆ On_Parameter_Changed() [2/2]

bool CSG_Parameters_Grid_Target::On_Parameter_Changed ( CSG_Parameters pParameters,
CSG_Parameter pParameter,
const CSG_String  Prefix 
)
static

◆ On_Parameters_Enable() [1/2]

bool CSG_Parameters_Grid_Target::On_Parameters_Enable ( CSG_Parameters pParameters,
CSG_Parameter pParameter 
)

Definition at line 1566 of file parameter.cpp.

References CSG_String::Cmp(), and CSG_Parameters::Get_Identifier().

◆ On_Parameters_Enable() [2/2]

bool CSG_Parameters_Grid_Target::On_Parameters_Enable ( CSG_Parameters pParameters,
CSG_Parameter pParameter,
const CSG_String  Prefix 
)
static

Definition at line 1574 of file parameter.cpp.

References CSG_Parameter::asInt(), and CSG_Parameters::Set_Enabled().

◆ Set_User_Defined() [1/4]

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 1717 of file parameter.cpp.

References CSG_Grid_System::Get_Extent(), CSG_Grid_System::Get_NY(), CSG_Grid_System::is_Valid(), and Set_User_Defined().

◆ Set_User_Defined() [2/4]

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 1612 of file parameter.cpp.

References CSG_String::Cmp(), CSG_Parameters::Get_Identifier(), CSG_Parameters::Get_Tool(), 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_Tool::has_GUI(), CSG_Rect::Inflate(), 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() [3/4]

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 1687 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.

◆ Set_User_Defined() [4/4]

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 1726 of file parameter.cpp.

References Set_User_Defined().

◆ Set_User_Defined_ZLevels()

bool CSG_Parameters_Grid_Target::Set_User_Defined_ZLevels ( CSG_Parameters pParameters,
double  zMin,
double  zMax,
int  nLevels,
int  Rounding = 2 
)

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