a set of 3d point object
More...
#include "IPointSet.hpp"
|
|
virtual unsigned | sizePoint () const =0 |
| | number of points within the set
|
| |
|
virtual void | reservePoint (unsigned size)=0 |
| | reserve memory for points
|
| |
|
virtual void | resizePoint (unsigned resize)=0 |
| | resize memory for points
|
| |
|
virtual void | removePoint (unsigned)=0 |
| | remove points at the given index
|
| |
|
virtual void | clearPoint ()=0 |
| | remove all points from point set
|
| |
|
virtual void | addPoint (const DM::IPoint &pt)=0 |
| |
|
virtual void | addPoint (const DM::PointHandle &pt)=0 |
| |
|
virtual void | addPoint (double x, double y, double z)=0 |
| |
| virtual void | sortByDistance (const DM::IPoint &refPt, int dim, bool ascending=true)=0 |
| | sorting points by distance to given reference point More...
|
| |
| virtual void | sortByDistanceAndClip (const DM::IPoint &refPt, int dim, double maxDistance, bool ascending=true)=0 |
| | sorting points by distance to given reference point and remove points that exceeds a certain distance More...
|
| |
|
virtual const_iterator_point | beginPoint () const =0 |
| |
|
virtual const_iterator_point | endPoint () const =0 |
| |
|
virtual const IPoint & | operator[] (unsigned) const =0 |
| |
|
virtual IPoint & | operator[] (unsigned)=0 |
| |
|
virtual const PointHandle & | operator() (unsigned idx) const =0 |
| |
|
virtual PointHandle & | operator() (unsigned idx)=0 |
| |
|
virtual GeometryType | type () const =0 |
| | get geometry type (kind of runtime type information)
|
| |
|
virtual void | setScopSemantic (ScopSemantic scopSem)=0 |
| | sets the special topographic semantic of an geometry objects (not supported by all geometry types yet)
|
| |
|
virtual ScopSemantic | getScopSemantic () const =0 |
| | returns the special topographic semantic of an geometry object
|
| |
|
virtual IGeometry * | clone () const =0 |
| | get an object copy
|
| |
|
virtual void | Delete () |
| |
|
|
static IPointSet * | New (unsigned size=0) |
| | create a new point set with size points
|
| |
◆ sortByDistance()
| virtual void sortByDistance |
( |
const DM::IPoint & |
refPt, |
|
|
int |
dim, |
|
|
bool |
ascending = true |
|
) |
| |
|
pure virtual |
sorting points by distance to given reference point
- Parameters
-
| [in] | refPt | reference point used for distance computation |
| [in] | dim | dimension of distance (2 = 2d distance, 3 = 3d distance)
|
| [in] | ascending | sort in ascending or descending order |
◆ sortByDistanceAndClip()
| virtual void sortByDistanceAndClip |
( |
const DM::IPoint & |
refPt, |
|
|
int |
dim, |
|
|
double |
maxDistance, |
|
|
bool |
ascending = true |
|
) |
| |
|
pure virtual |
sorting points by distance to given reference point and remove points that exceeds a certain distance
- Parameters
-
| [in] | refPt | reference point used for distance computation |
| [in] | dim | dimension of distance (2 = 2d distance, 3 = 3d distance) |
| [in] | maxDistance | all points that are further away than the given distance are dropped |
| [in] | ascending | sort in ascending or descending order |