SAGA API  v9.6
grids.cpp File Reference
#include "saga_api.h"
#include "grids.h"
#include "data_manager.h"
#include "tool_library.h"

Go to the source code of this file.

Macros

#define ADD_TO_SPLINE(i)   if( i < 0 || i >= Get_NZ() || !m_pGrids[i]->Get_Value(x, y, Value, Resampling) ) return( false ); s.Add(Get_Z(i), Value);
 
#define SORT_SWAP(a, b)   {itemp=(a);(a)=(b);(b)=itemp;}
 
#define SG_GRID_HISTOGRAM_CLASSES_DEFAULT   255
 

Functions

CSG_GridsSG_Create_Grids (void)
 
CSG_GridsSG_Create_Grids (const CSG_Grids &Grids)
 
CSG_GridsSG_Create_Grids (const CSG_Grids *_pGrids, bool bCopyData)
 
CSG_GridsSG_Create_Grids (const char *FileName, bool bLoadData)
 
CSG_GridsSG_Create_Grids (const wchar_t *FileName, bool bLoadData)
 
CSG_GridsSG_Create_Grids (const CSG_String &FileName, bool bLoadData)
 
CSG_GridsSG_Create_Grids (const CSG_Grid_System &System, int NZ, double zMin, TSG_Data_Type Type)
 
CSG_GridsSG_Create_Grids (const CSG_Grid_System &System, const CSG_Table &Attributes, int zAttribute, TSG_Data_Type Type, bool bCreateGrids)
 
CSG_GridsSG_Create_Grids (int NX, int NY, int NZ, double Cellsize, double xMin, double yMin, double zMin, TSG_Data_Type Type)
 

Macro Definition Documentation

◆ ADD_TO_SPLINE

#define ADD_TO_SPLINE (   i)    if( i < 0 || i >= Get_NZ() || !m_pGrids[i]->Get_Value(x, y, Value, Resampling) ) return( false ); s.Add(Get_Z(i), Value);

◆ SG_GRID_HISTOGRAM_CLASSES_DEFAULT

#define SG_GRID_HISTOGRAM_CLASSES_DEFAULT   255

Definition at line 1575 of file grids.cpp.

◆ SORT_SWAP

#define SORT_SWAP (   a,
 
)    {itemp=(a);(a)=(b);(b)=itemp;}

Definition at line 1195 of file grids.cpp.

Function Documentation

◆ SG_Create_Grids() [1/9]

CSG_Grids* SG_Create_Grids ( const char *  FileName,
bool  bLoadData = true 
)

Safe construction of a grid collection

Definition at line 87 of file grids.cpp.

References SG_Create_Grids().

◆ SG_Create_Grids() [2/9]

CSG_Grids* SG_Create_Grids ( const CSG_Grid_System System,
const CSG_Table Attributes,
int  zAttribute = 0,
TSG_Data_Type  Type = SG_DATATYPE_Undefined,
bool  bCreateGrids = false 
)

Safe construction of a grid collection

Definition at line 105 of file grids.cpp.

References CSG_Grids::is_Valid().

◆ SG_Create_Grids() [3/9]

CSG_Grids* SG_Create_Grids ( const CSG_Grid_System System,
int  NZ = 0,
double  zMin = 0.,
TSG_Data_Type  Type = SG_DATATYPE_Undefined 
)

Safe construction of a grid collection

Definition at line 97 of file grids.cpp.

References CSG_Grids::is_Valid().

◆ SG_Create_Grids() [4/9]

CSG_Grids* SG_Create_Grids ( const CSG_Grids Grids)

Safe construction of a grid collection

Definition at line 71 of file grids.cpp.

References CSG_Grids::is_Valid().

◆ SG_Create_Grids() [5/9]

CSG_Grids* SG_Create_Grids ( const CSG_Grids pGrids,
bool  bCopyData = false 
)

Safe construction of a grid collection

Definition at line 79 of file grids.cpp.

References CSG_Grids::is_Valid().

◆ SG_Create_Grids() [6/9]

CSG_Grids* SG_Create_Grids ( const CSG_String FileName,
bool  bLoadData = true 
)

Safe construction of a grid collection

Definition at line 89 of file grids.cpp.

References CSG_Grids::is_Valid().

◆ SG_Create_Grids() [7/9]

CSG_Grids* SG_Create_Grids ( const wchar_t *  FileName,
bool  bLoadData = true 
)

Safe construction of a grid collection

Definition at line 88 of file grids.cpp.

References SG_Create_Grids().

◆ SG_Create_Grids() [8/9]

CSG_Grids* SG_Create_Grids ( int  NX,
int  NY,
int  NZ = 0,
double  Cellsize = 0.,
double  xMin = 0.,
double  yMin = 0.,
double  zMin = 0.,
TSG_Data_Type  Type = SG_DATATYPE_Undefined 
)

Safe construction of a grid collection

Definition at line 113 of file grids.cpp.

References CSG_Grids::is_Valid().

◆ SG_Create_Grids() [9/9]

CSG_Grids* SG_Create_Grids ( void  )

Safe construction of a grid collection

Definition at line 65 of file grids.cpp.

Referenced by CSG_Parameters_Grid_Target::Get_Grids(), and SG_Create_Grids().