#include <2DHoledPolygon.h>
Inheritance diagram for C2DHoledPolygon:

Public Member Functions | |
| C2DHoledPolygon (void) | |
| Constructor. | |
| C2DHoledPolygon (const C2DHoledPolygon &Other) | |
| Constructor with assignment. | |
| C2DHoledPolygon (const C2DHoledPolyBase &Other) | |
| Constructor with assignment. | |
| ~C2DHoledPolygon (void) | |
| Destructor. | |
| void | SetRim (const C2DPolygon &Polygon) |
| Sets the rim to a copy of the polygon given. | |
| void | AddHole (const C2DPolygon &Polygon) |
| Adds a copy of the polygon given. | |
| void | SetHole (const C2DPolygon &Polygon, unsigned short usIndex) |
| Sets the holes to be a copy of the polygon given. | |
| void | SetRimDirect (C2DPolygon *Polygon) |
| Sets the rim to be the polygon provided. Will delete on destruction. | |
| void | AddHoleDirect (C2DPolygon *Polygon) |
| Adds the hole provided. Will delete on destruction. | |
| void | SetHoleDirect (C2DPolygon *Polygon, unsigned short usIndex) |
| Sets the hole to be the polygon provided. Will delete on destruction. Deletes old one. | |
| void | RemoveHole (unsigned short usIndex) |
| Removes the hole at the index given. | |
| C2DPolygon * | GetRim (void) |
| Returns the rim. | |
| const C2DPolygon * | GetRim (void) const |
| Returns the rim. | |
| C2DPolygon * | ExtractRim (void) |
| Extracts the rim. Deletion of the rim needs to be managed elsewhere. | |
| C2DPolygon * | GetHole (unsigned short usIndex) |
| Returns a pointer to the hole specified. | |
| const C2DPolygon * | GetHole (unsigned short usIndex) const |
| Returns a pointer to the hole specified. | |
| C2DPolygon * | ExtractHole (unsigned short usIndex) |
| Extracts the hole. Deletion of the hole needs to be managed elsewhere. | |
| const C2DHoledPolygon & | operator= (C2DHoledPolygon &Other) |
| Assignement to another. | |
| void | Grow (double dFactor) |
| Grows the polygon by the amount. | |
| void | Grow (double dFactor, const C2DPoint &Origin) |
| Grows the polygon by the amount. | |
| void | RotateToRight (double dAng) |
| Rotates to the right by the angle around the centroid. | |
| void | RotateToRight (double dAng, const C2DPoint &Origin) |
| Rotates to the right by the angle around the centroid. | |
| C2DPoint | GetCentroid (void) |
| Returns the centroid. | |
| double | GetArea () const |
| Area. | |
| bool | Overlaps (const C2DHoledPolygon &Other) const |
| True if this overlaps the other. | |
| void | GetOverlaps (const C2DHoledPolygon &Other, C2DHoledPolygonSet &HoledPolys, CGrid::eDegenerateHandling eDegen=CGrid::None) const |
| Returns the overlaps between this and the other complex polygon. | |
| void | GetOverlaps (const C2DHoledPolygon &Other, C2DHoledPolyBaseSet &HoledPolys, CGrid::eDegenerateHandling eDegen=CGrid::None) const |
| Returns the overlaps between this and the other complex polygon. | |
| void | GetNonOverlaps (const C2DHoledPolygon &Other, C2DHoledPolygonSet &HoledPolys, CGrid::eDegenerateHandling eDegen=CGrid::None) const |
| Returns the difference between this and the other polygon. | |
| void | GetNonOverlaps (const C2DHoledPolygon &Other, C2DHoledPolyBaseSet &HoledPolys, CGrid::eDegenerateHandling eDegen=CGrid::None) const |
| Returns the difference between this and the other polygon. | |
| void | GetUnion (const C2DHoledPolygon &Other, C2DHoledPolygonSet &HoledPolys, CGrid::eDegenerateHandling eDegen=CGrid::None) const |
| Returns the union of this and the other. | |
| void | GetUnion (const C2DHoledPolygon &Other, C2DHoledPolyBaseSet &HoledPolys, CGrid::eDegenerateHandling eDegen=CGrid::None) const |
| Returns the union of this and the other. | |
Class which represents a polygon with holes. Simply consists of a set of simple polygons (without holes) representing the rim and the hole.
---------------------------------------------------------------------------
|
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Constructor with assignment.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Constructor with assignment.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Destructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Adds a copy of the polygon given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Adds the hole provided. Will delete on destruction.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Extracts the hole. Deletion of the hole needs to be managed elsewhere.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Extracts the rim. Deletion of the rim needs to be managed elsewhere.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented from C2DHoledPolyBase. |
|
|
Area.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Returns the centroid.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Returns a pointer to the hole specified.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Returns a pointer to the hole specified.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||||||
|
Returns the difference between this and the other polygon.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||||||
|
Returns the difference between this and the other polygon.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||||||
|
Returns the overlaps between this and the other complex polygon.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||||||
|
Returns the overlaps between this and the other complex polygon.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Returns the rim.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented from C2DHoledPolyBase. |
|
|
Returns the rim.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented from C2DHoledPolyBase. |
|
||||||||||||||||
|
Returns the union of this and the other.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||||||
|
Returns the union of this and the other.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||
|
Grows the polygon by the amount.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented from C2DHoledPolyBase. |
|
|
Grows the polygon by the amount.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Assignement to another.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
True if this overlaps the other.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Removes the hole at the index given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||
|
Rotates to the right by the angle around the centroid.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented from C2DHoledPolyBase. |
|
|
Rotates to the right by the angle around the centroid.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||
|
Sets the holes to be a copy of the polygon given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
||||||||||||
|
Sets the hole to be the polygon provided. Will delete on destruction. Deletes old one.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Sets the rim to a copy of the polygon given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
|
Sets the rim to be the polygon provided. Will delete on destruction.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
1.4.4