#include <2DPolyArc.h>
Inheritance diagram for C2DPolyArc:
Public Member Functions | |
C2DPolyArc (void) | |
Constructor. | |
C2DPolyArc (const C2DPolyBase &Other) | |
Constructor. | |
C2DPolyArc (const C2DPolyArc &Other) | |
Constructor. | |
~C2DPolyArc (void) | |
Destructor. | |
void | SetStartPoint (const C2DPoint &Point) |
Sets the starting point. | |
void | LineTo (const C2DPoint &Point, double dRadius, bool bCentreOnRight, bool bArcOnRight) |
Radius of the arc from the PREVIOUS point to the new one. bCentreOnRight indicates whether the centre of the arc is to the right of the line. bArcOnRight indicates whether the curve is to the right i.e. anti-clockwise. | |
void | LineTo (const C2DPoint &Point) |
Adds a point which is a striaght line from the previous. | |
void | Close (double dRadius, bool bCentreOnRight, bool bArcOnRight) |
Close with a curved line. WILL AUTO JOIN TO THE FIRST POINT. | |
void | Close (void) |
Close with a straight line. WILL AUTO JOIN TO THE FIRST POINT. | |
bool | CreateRandom (const C2DRect &cBoundary, int nMinPoints, int nMaxPoints) |
Creates a random shape e.g. for testing. | |
void | Clear (void) |
Clears. | |
int | GetPointsCount (void) const |
Returns the number of points. | |
void | GetNonOverlaps (const C2DPolyArc &Other, C2DHoledPolyArcSet &HoledPolygons, CGrid::eDegenerateHandling eDegen=CGrid::None) const |
Gets the non overlaps i.e. the parts of this that aren't in the other. | |
void | GetNonOverlaps (const C2DPolyArc &Other, C2DHoledPolyBaseSet &HoledPolygons, CGrid::eDegenerateHandling eDegen=CGrid::None) const |
Gets the non overlaps i.e. the parts of this that aren't in the other. | |
void | GetUnion (const C2DPolyArc &Other, C2DHoledPolyArcSet &HoledPolygons, CGrid::eDegenerateHandling eDegen=CGrid::None) const |
Gets the union of the 2 shapes. | |
void | GetUnion (const C2DPolyArc &Other, C2DHoledPolyBaseSet &HoledPolygons, CGrid::eDegenerateHandling eDegen=CGrid::None) const |
Gets the union of the 2 shapes. | |
void | GetOverlaps (const C2DPolyArc &Other, C2DHoledPolyArcSet &Polygons, CGrid::eDegenerateHandling eDegen=CGrid::None) const |
Gets the overlaps of the 2 shapes. | |
void | GetOverlaps (const C2DPolyArc &Other, C2DHoledPolyBaseSet &Polygons, CGrid::eDegenerateHandling eDegen=CGrid::None) const |
Gets the overlaps of the 2 shapes. | |
double | GetArea (void) const |
Gets the area. | |
C2DPoint | GetCentroid (void) const |
Returns the centroid. | |
void | RotateToRight (double dAng, const C2DPoint &Origin) |
Rotates the polygon to the right around the origin given. | |
void | RotateToRight (double dAng) |
Rotates the polygon to the right around the centroid. |
Class which represents a closed area with lines that are either straight or curved. Inherits most funcionality from the area base class.
---------------------------------------------------------------------------
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Constructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Destructor.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Clears.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented from C2DPolyBase. |
|
Close with a straight line. WILL AUTO JOIN TO THE FIRST POINT.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Close with a curved line. WILL AUTO JOIN TO THE FIRST POINT.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Creates a random shape e.g. for testing.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Gets the area.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Returns the centroid.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Gets the non overlaps i.e. the parts of this that aren't in the other.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Gets the non overlaps i.e. the parts of this that aren't in the other.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Gets the overlaps of the 2 shapes.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Gets the overlaps of the 2 shapes.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Gets the union of the 2 shapes.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Gets the union of the 2 shapes.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Adds a point which is a striaght line from the previous.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Radius of the arc from the PREVIOUS point to the new one. bCentreOnRight indicates whether the centre of the arc is to the right of the line. bArcOnRight indicates whether the curve is to the right i.e. anti-clockwise. Radius of the arc from the PREVIOUS point to the new one. bCentreOnRight indicates whether the centre of the arc is to the right of the line. bArcOnRight indicates whether the curve is to the right i.e. anti-clockwise. |
|
Rotates the polygon to the right around the centroid.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
Rotates the polygon to the right around the origin given.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- Reimplemented from C2DPolyBase. |
|
Sets the starting point.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |