107#define GET_GROW_SIZE(n) (n < 128 ? 1 : (n < 2048 ? 32 : 256))
118 int nBuffer = (nPoints / nGrow) * nGrow;
120 while( nBuffer < nPoints )
241 if(
m_Z ) {
m_Z[iPoint] = 0.; }
242 if(
m_M ) {
m_M[iPoint] = 0.; }
358 if( pPoints && pPoints->
Get_Count() > 0 )
360 for(
int i=0; i<pPoints->
Get_Count(); i++)
374 for(
int i=0, j=
m_nPoints-1; i<j; i++, j--)
SAGA_API_DLL_EXPORT void SG_Free(void *memblock)
SAGA_API_DLL_EXPORT void * SG_Realloc(void *memblock, size_t size)
int Add_Point(double x, double y)
int Ins_Point(double x, double y, int iPoint)
int Set_Point(double x, double y, int iPoint)
friend class CSG_Shape_Points
virtual bool Destroy(void)
virtual ~CSG_Shape_Part(void)
virtual void _Update_Extent(void)
class CSG_Shape_Points * m_pOwner
void Set_Z(double z, int iPoint)
CSG_Shape_Part(class CSG_Shape_Points *pOwner)
virtual bool Assign(CSG_Shape_Part *pPart)
void Set_M(double m, int iPoint)
int Del_Point(int iPoint)
int Get_Count(void) const
bool Add_Points(CSG_Shape_Part *pPoints, bool bAscending=true)
virtual void _Invalidate(void)
virtual bool _Alloc_Memory(int nPoints)
TSG_Point_4D Get_Point_ZM(int iPoint, bool bAscending=true) const
void Add_Value(double Value, double Weight=1.)