|
SAGA API
v9.6
|
Go to the documentation of this file.
73 default :
return(
_TL(
"Undefined") );
113 if( !pShapes->
is_Valid() ) {
delete(pShapes);
return( NULL ); }
return( pShapes );
119 return(
new CSG_Shapes(Type, Name, pTemplate, Vertex_Type) );
218 bool bResult =
false;
243 for(
int i=0; !bResult && i<Connections.
Get_Count(); i++)
245 if( !Connection.
Cmp(Connections[i].asString(0)) )
274 bResult = _Load_ESRI(File);
279 bResult = _Load_GDAL(File);
424 pShape->
Assign(pCopy, mCopy);
501 CSG_Rect r(Point.
x - Epsilon, Point.
y - Epsilon, Point.
x + Epsilon, Point.
y + Epsilon);
507 double dNearest = -1.;
521 else if( d > 0. && d <= Epsilon && (pNearest == NULL || d < dNearest) )
CSG_String BeforeFirst(char Character) const
virtual bool Assign(CSG_Data_Object *pObject)
virtual bool Assign(CSG_Data_Object *pObject)
CSG_Rect & Assign(double xMin, double yMin, double xMax, double yMax)
virtual bool Del_Shape(sLong Index)
virtual bool Revert_Points(int iPart)
virtual CSG_Table_Record * _Get_New_Record(sLong Index)
virtual CSG_Shape * Get_Shape(const CSG_Point &Point, double Epsilon=0.)
bool is_Clockwise(int iPart)
virtual void Set_Z(double z, int iPoint=0, int iPart=0)
virtual double Get_Z(int iPoint=0, int iPart=0, bool bAscending=true) const
CSG_PointCloud * SG_Create_PointCloud(void)
@ SG_UI_MSG_STYLE_SUCCESS
SAGA_API_DLL_EXPORT bool SG_File_Cmp_Extension(const CSG_String &FileName, const CSG_String &Extension)
bool SG_UI_Process_Get_Okay(bool bBlink)
TSG_Intersection Intersects(const CSG_Rect &Rect) const
virtual bool Destroy(void)
virtual ~CSG_Shapes(void)
const SG_Char * Get_Name(void) const
virtual void _On_Construction(void)
TSG_Intersection Intersects(CSG_Shape *pShape)
virtual bool is_Valid(void) const
virtual double Get_Distance(TSG_Point Point) const =0
void Set_Update_Flag(bool bOn=true)
virtual void Set_Modified(bool bModified=true)
int Cmp(const CSG_String &String) const
virtual TSG_Point Get_Point(int iPoint=0) const
virtual CSG_Shape * Add_Shape(CSG_Table_Record *pCopy=NULL, TSG_ADD_Shape_Copy_Mode mCopy=SHAPE_COPY)
@ SG_UI_MSG_STYLE_FAILURE
class CSG_Shapes * asShapes(bool bPolymorph=false) const
virtual void Set_M(double m, int iPoint=0, int iPart=0)
TSG_Vertex_Type Get_Vertex_Type(void) const
virtual double Get_M(int iPoint=0, int iPart=0, bool bAscending=true) const
virtual double Get_ZMax(void)
virtual double Get_ZMin(void)
sLong Get_Count(void) const
virtual bool On_Update(void)
virtual double Get_MMin(void)
virtual bool Assign(CSG_Table_Record *pRecord)
virtual const CSG_Rect & Get_Extent(void)
CSG_Rect & Union(double x, double y)
CSG_String SG_Get_ShapeType_Name(TSG_Shape_Type Type)
TSG_Vertex_Type m_Vertex_Type
void Set_Name(const CSG_String &Name)
static CSG_String Format(const char *Format,...)
@ SG_DATAOBJECT_TYPE_Shapes
CSG_String AfterFirst(char Character) 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.
virtual bool Del_Record(sLong Index)
virtual bool Destroy(void)
virtual double Get_MMax(void)
bool SG_UI_Process_Set_Progress(int Position, int Range)
sLong Get_Index(void) const
virtual const CSG_Rect & Get_Extent(void)=0
virtual int Get_Point_Count(void) const
void SG_UI_ProgressAndMsg_Lock(bool bOn)
const SG_Char * c_str(void) const
bool SG_UI_Process_Set_Ready(void)
virtual TSG_Shape_Type Get_Type(void) const
virtual int Get_Part_Count(void) const
virtual bool On_Update(void)
virtual CSG_Table_Record * Add_Record(CSG_Table_Record *pCopy=NULL)
bool Create(const CSG_Projection &Projection)
CSG_Projection & Get_Projection(void)
@ SG_DATAOBJECT_TYPE_PointCloud
void SG_UI_Msg_Add(const char *Message, bool bNewLine, TSG_UI_MSG_STYLE Style)
virtual void _On_Construction(void)
CSG_Shapes * SG_Create_Shapes(void)