#include <2DBaseSet.h>
Inheritance diagram for C2DBaseSet:

Public Member Functions | |
| C2DBaseSet () | |
| Constructor. | |
| ~C2DBaseSet () | |
| Constructor. | |
| void | DeleteAll (void) |
| Deletes all the pointers and removes them. | |
| void | Add (C2DBase *NewItem) |
| Adds a new pointer and takes responsibility for it. | |
| void | DeleteAndSet (int nIndx, C2DBase *NewItem) |
| Deletes the current item and sets the pointer to be the new one. | |
| C2DBase * | ExtractAndSet (int nIndx, C2DBase *NewItem) |
| Extracts the current item and sets the pointer to be the new one. | |
| unsigned int | size (void) const |
| returns the size | |
| C2DBase * | GetAt (int nIndx) |
| Returns the value at the point given. | |
| const C2DBase * | GetAt (int nIndx) const |
| Returns the value at the point given. | |
| C2DBase & | operator[] (int nIndx) |
| Returns a reference to the value at the point given. | |
| const C2DBase & | operator[] (int nIndx) const |
| Returns a reference to the value at the point given. | |
| C2DBase * | GetLast (void) |
| Returns a pointer to the last item. | |
| void | DeleteAt (unsigned int nIndx) |
| Deletion. | |
| void | DeleteLast (void) |
| Deletion of the last. | |
| C2DBase * | ExtractAt (unsigned int nIndx) |
| Extracts the pointer passing deletion responsibility over. | |
| C2DBase * | ExtractLast (void) |
| Extracts the pointer passing deletion responsibility over. | |
| void | InsertAt (unsigned int nIndx, C2DBase *NewItem) |
| Insertion. | |
| void | InsertAt (unsigned int nIndx, C2DBaseSet &Other) |
| Insertion of another array. | |
| void | ReverseOrder (void) |
| Reverses the order. | |
| void | operator<< (C2DBaseSet &Other) |
| Passes all the pointers from the Other into this. | |
| void | operator<< (C2DBase *NewItem) |
| Adds a new pointer and takes responsibility for it. | |
| void | Move (const C2DVector &Vector) |
| Moves the collection by the vector provided. | |
| void | RotateToRight (double dAng, const C2DPoint &Origin) |
| Rotates the collection by the angles, around the origin. | |
| void | Grow (double dFactor, const C2DPoint &Origin) |
| Grows the collection by the factor, around the origin. | |
| void | Reflect (const C2DPoint &Point) |
| Reflects the collection in the point given. | |
| void | Reflect (const C2DLine &Line) |
| Reflects throught the line provided. | |
| double | Distance (const C2DPoint &Point) const |
| Calculcates the minimum distance, of the whole collection from the point. | |
| void | SortByDistance (const C2DPoint &pt, bool bAscending=true) |
| Sorts the collection by the distance from the point. | |
| void | GetBoundingRect (C2DRect &Rect) const |
| Returns the bounding rectangle for the whole collection. | |
| void | SnapToGrid (void) |
| Snaps all in the collection to the grid. see CGrid. | |
| void | Project (const C2DLine &Line, CInterval &Interval) const |
| Projects the whole set onto the line given. | |
| void | Project (const C2DVector &Vector, CInterval &Interval) const |
| Projects the whole set onto the vector given. | |
Protected Attributes | |
| void * | m_Data |
| This is a pointer to the data which is defined is the constructor. | |
---------------------------------------------------------------------------
|
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Adds a new pointer and takes responsibility for it.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Deletes all the pointers and removes them.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||
|
Deletes the current item and sets the pointer to be the new one.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Deletion.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Deletion of the last.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Calculcates the minimum distance, of the whole collection from the point.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
||||||||||||
|
Extracts the current item and sets the pointer to be the new one.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Extracts the pointer passing deletion responsibility over.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented in C2DHoledPolyArcSet, C2DHoledPolyBaseSet, C2DHoledPolygonSet, C2DLineBaseSet, C2DLineBaseSetSet, C2DLineSet, C2DPointSet, C2DPolyArcSet, C2DPolyBaseSet, C2DPolygonSet, and C2DRectSet. |
|
|
Extracts the pointer passing deletion responsibility over.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented in C2DHoledPolyArcSet, C2DHoledPolyBaseSet, C2DHoledPolygonSet, C2DLineBaseSet, C2DLineBaseSetSet, C2DLineSet, C2DPointSet, C2DPolyArcSet, C2DPolyBaseSet, C2DPolygonSet, and C2DRectSet. |
|
|
Returns the value at the point given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented in C2DHoledPolyArcSet, C2DHoledPolyBaseSet, C2DHoledPolygonSet, C2DLineBaseSet, C2DLineBaseSetSet, C2DLineSet, C2DPointSet, C2DPolyArcSet, C2DPolyBaseSet, C2DPolygonSet, and C2DRectSet. |
|
|
Returns the value at the point given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented in C2DHoledPolyArcSet, C2DHoledPolyBaseSet, C2DHoledPolygonSet, C2DLineBaseSet, C2DLineBaseSetSet, C2DLineSet, C2DPointSet, C2DPolyArcSet, C2DPolyBaseSet, C2DPolygonSet, and C2DRectSet. |
|
|
Returns the bounding rectangle for the whole collection.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. Reimplemented in C2DPointSet. |
|
|
Returns a pointer to the last item.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented in C2DHoledPolyArcSet, C2DHoledPolyBaseSet, C2DHoledPolygonSet, C2DLineBaseSet, C2DLineBaseSetSet, C2DLineSet, C2DPointSet, C2DPolyArcSet, C2DPolyBaseSet, C2DPolygonSet, and C2DRectSet. |
|
||||||||||||
|
Grows the collection by the factor, around the origin.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
||||||||||||
|
Insertion of another array.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||
|
Insertion.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Moves the collection by the vector provided.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
|
Adds a new pointer and takes responsibility for it.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Passes all the pointers from the Other into this.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented in C2DHoledPolyArcSet, C2DHoledPolyBaseSet, C2DHoledPolygonSet, C2DLineBaseSet, C2DLineSet, C2DPointSet, C2DPolyArcSet, C2DPolyBaseSet, C2DPolygonSet, and C2DRectSet. |
|
|
Returns a reference to the value at the point given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented in C2DHoledPolyArcSet, C2DHoledPolyBaseSet, C2DHoledPolygonSet, C2DLineBaseSet, C2DLineBaseSetSet, C2DLineSet, C2DPointSet, C2DPolyArcSet, C2DPolyBaseSet, C2DPolygonSet, and C2DRectSet. |
|
|
Returns a reference to the value at the point given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented in C2DHoledPolyArcSet, C2DHoledPolyBaseSet, C2DHoledPolygonSet, C2DLineBaseSet, C2DLineBaseSetSet, C2DLineSet, C2DPointSet, C2DPolyArcSet, C2DPolyBaseSet, C2DPolygonSet, and C2DRectSet. |
|
||||||||||||
|
Projects the whole set onto the vector given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
||||||||||||
|
Projects the whole set onto the line given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
|
Reflects throught the line provided.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
|
Reflects the collection in the point given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
|
Reverses the order.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||
|
Rotates the collection by the angles, around the origin.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
|
returns the size
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Snaps all in the collection to the grid. see CGrid.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Implements C2DBase. |
|
||||||||||||
|
Sorts the collection by the distance from the point.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
1.4.4