|
SAGA API
v9.6
|
Go to the documentation of this file.
53 #ifndef HEADER_INCLUDED__SAGA_API__tin_H
54 #define HEADER_INCLUDED__SAGA_API__tin_H
98 int Get_ID (
void) {
return( m_ID ); }
101 double Get_X (
void) {
return( m_Point.x ); }
102 double Get_Y (
void) {
return( m_Point.y ); }
105 CSG_TIN_Node *
Get_Neighbor (
int iNeighbor) {
return( iNeighbor >= 0 && iNeighbor < m_nNeighbors ? m_Neighbors[iNeighbor] : NULL ); }
106 double Get_Gradient (
int iNeighbor,
int iField);
112 double Get_Polygon_Area (
void);
121 int m_ID, m_nNeighbors, m_nTriangles;
133 bool _Del_Relations (
void);
185 bool is_Containing (
double x,
double y);
188 bool Get_Value (
int zField,
double x,
double y,
double &z);
190 bool Get_Gradient (
int zField,
double &Decline,
double &Azimuth);
203 double m_Area, m_Radius;
236 bool Create (
const char *File);
238 bool Create (
const wchar_t *File);
248 virtual bool Save (
const wchar_t *File,
int Format = 0) {
return(
Save(
CSG_String(File), Format) ); }
256 bool Triangulate (
bool bOn =
true,
bool bUpdate =
false);
260 bool Del_Node (
sLong Index,
bool bUpdateNow);
291 bool m_bTriangulate{
true};
310 bool _Destroy_Nodes (
void);
311 bool _Destroy_Edges (
void);
312 bool _Destroy_Triangles (
void);
317 bool _Triangulate (
void);
319 int _CircumCircle (
double xp,
double yp,
double x1,
double y1,
double x2,
double y2,
double x3,
double y3,
double *xc,
double *yc,
double *r);
355 #endif // #ifndef HEADER_INCLUDED__SAGA_API__tin_H
virtual bool Assign(CSG_Data_Object *pTable)
double Get_CircumCircle_Radius(void)
CSG_TIN_Edge * Get_Edge(sLong Index) const
CSG_TIN_Triangle ** m_Triangles
virtual bool Save(const char *File, int Format=0)
bool Update(bool bForce=false)
SAGA_API_DLL_EXPORT CSG_TIN * SG_Create_TIN(void)
CSG_TIN_Node * Get_Node(int iNode)
virtual bool Get_Value(sLong Index, int iField, CSG_String &Value) const
CSG_TIN_Node * Get_Node(sLong Index) const
virtual CSG_Table_Record * Get_Record(sLong Index) const
virtual bool is_Valid(void) const
sLong Get_Node_Count(void) const
virtual TSG_Data_Object_Type Get_ObjectType(void) const
Returns the object type as defined by TSG_Data_Object_Type. Used for run time type checking.
sLong Get_Triangle_Count(void) const
virtual bool Destroy(void)
virtual bool On_Reload(void)
virtual bool Save(const wchar_t *File, int Format=0)
virtual bool On_Delete(void)
TSG_Point Get_CircumCircle_Point(void)
int Get_Triangle_Count(void)
const CSG_Rect & Get_Extent(void)
sLong Get_Count(void) const
virtual bool On_Update(void)
void Get_CircumCircle(TSG_Point &Point, double &Radius)
#define SAGA_API_DLL_EXPORT
CSG_TIN_Node * Get_Node(int iNode)
const CSG_Rect & Get_Extent(void)
CSG_TIN_Node * Get_Neighbor(int iNeighbor)
sLong Get_Edge_Count(void) const
int Get_Neighbor_Count(void)
CSG_TIN_Triangle * Get_Triangle(sLong Index) const
virtual bool Save(const CSG_String &File, int Format, SG_Char Separator, int Encoding=SG_FILE_ENCODING_UNDEFINED)
class CSG_TIN_Triangle * Get_Triangle(int iTriangle)
virtual CSG_Table_Record * _Get_New_Record(sLong Index)
virtual void _On_Construction(void)
const TSG_Point & Get_Point(void)