GPPolygon
Unit : GPPolygonUnit
Association : GPPolygonAsn
Inherits from : GPShape
Description
- An abstract polygon class.
Public Interface
-
CONSTRUCTOR Init;
Initializes the GPPolygon, containing zero points.
DESTRUCTOR Destroy; VIRTUAL;
Destroys the GPPolygon.
PROCEDURE AddPoint (point : GPPoint);
Adds a point to the polygon. A polygon can contain at most 30
points.
PROCEDURE ResetPoints;
Removes all points from the polygon.
PROCEDURE GetPoint (index : integer; VAR point : GPPoint);
Returns a particular point in the polygon. The index specifies
the point number to return.
FUNCTION GetNumPoints : integer;
Returns the number of points in the Polygon.
FUNCTION Equal (rhs : GPPolygon): Boolean;
Returns TRUE if the other polygon is identical.
Subclasses
- GPFilledClosedPolygon, GPFramedClosedPolygon
Please report any problems with GP or the documentation to
GP Support
.
Loring Holden