#include <2DPointSet.h>
Inheritance diagram for C2DPointSet:
Public Member Functions | |
C2DPointSet (void) | |
Constructor. | |
~C2DPointSet (void) | |
Destructor. | |
void | AddCopy (double x, double y) |
Adds a new point. | |
void | AddCopy (const C2DPointSet &Other) |
Adds a new copy of the pt set given point. | |
void | MakeCopy (const C2DPointSet &Other) |
Makes a copy of the set given. | |
void | operator<< (C2DBaseSet &Other) |
Passes ONLY the pointers of this type from the Other into this. | |
void | Add (C2DPoint *NewItem) |
Adds a new pointer and takes responsibility for it. | |
void | AddCopy (const C2DPoint &NewItem) |
Adds a copy of the item given. | |
void | DeleteAndSet (int nIndx, C2DPoint *NewItem) |
Deletes the current item and sets the pointer to be the new one. | |
C2DPoint * | ExtractAndSet (int nIndx, C2DPoint *NewItem) |
Extracts the current item and sets the pointer to be the new one. | |
C2DPoint * | GetAt (int nIndx) |
Returns the value at the point given. | |
const C2DPoint * | GetAt (int nIndx) const |
Returns the value at the point given. | |
C2DPoint & | operator[] (int nIndx) |
Returns a reference to the value at the point given. | |
const C2DPoint & | operator[] (int nIndx) const |
Returns a reference to the value at the point given. | |
C2DPoint * | GetLast (void) |
Returns a pointer to the last item. | |
C2DPoint * | ExtractAt (unsigned int nIndx) |
Extracts the pointer passing deletion responsibility over. | |
C2DPoint * | ExtractLast (void) |
Extracts the pointer passing deletion responsibility over. | |
void | InsertAt (unsigned int nIndex, C2DPoint *NewItem) |
Insertion. | |
void | InsertAt (unsigned int nIndex, C2DPointSet &Other) |
Insertion of another array. | |
void | operator<< (C2DPointSet &Other) |
Passes all the pointers from the Other into this. | |
void | operator<< (C2DPoint *NewItem) |
Adds a new pointer and takes responsibility for it. | |
void | ExtractConvexHull (C2DPointSet &Other) |
Removes the convex hull from the point set given. | |
void | SortByAngleFromNorth (const C2DPoint &Origin) |
Sorts by the angle from north relative to the origin given. | |
void | SortByAngleToRight (const C2DLine &Line) |
Sorts by the angle to the right of the line. | |
void | SortByAngleToLeft (const C2DLine &Line) |
Sorts by the angle to the left of the line. | |
void | GetBoundingRect (C2DRect &Rect) const |
Returns the bounding rect. | |
void | GetBoundingCircle (C2DCircle &Circle) const |
Gets the minimum bounding circle. | |
void | GetExtremePointsEst (unsigned int &nIndx1, unsigned int &nIndx2, double &dDist, unsigned int nStartEst=0) const |
Returns an estimate of the furthest points, usually correct. | |
void | GetExtremePoints (unsigned int &nIndx1, unsigned int &nIndx2, double &dDist) const |
Returns the furthest points, accurate but slightly slower than the estimate. | |
void | RemoveRepeatedPoints (void) |
Removes all repeated points. |
Class which represents a set of points. Inherits from the Geo set base and adds sorting functions and a convex hull algorithm.
---------------------------------------------------------------------------
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Destructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Adds a new copy of the pt set given point.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Adds a new point.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Removes the convex hull from the point set given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Gets the minimum bounding circle.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Returns the bounding rect.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented from C2DBaseSet. |
|
Returns the furthest points, accurate but slightly slower than the estimate.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Returns an estimate of the furthest points, usually correct.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Makes a copy of the set given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Passes ONLY the pointers of this type from the Other into this.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented from C2DBaseSet. |
|
Removes all repeated points.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Sorts by the angle from north relative to the origin given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Sorts by the angle to the left of the line.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Sorts by the angle to the right of the line.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |