GPArc
Unit : GPShapesUnit
Association : GPArcAsn
Inherits from : GPBoxBoundedShape, GPShape
Description
- An arc is part of the boundary of a framed oval. The oval is defined
by the bounding box (see GPBoxBoundedShape). The start and end angles
are defined in degrees, with 0° and 360° both to the right of
the oval. Thus an arc representing the bottom left quarter of a filled
oval should start at 180° and end at 270°.
Public Interface
-
CONSTRUCTOR Init;
Initializes a GPArc with (0,0) for both corners and 0 as its angles.
CONSTRUCTOR InitWithPoints (topLeft, bottomRight:
GPPoint; startAngle, endAngle: integer);
Initializes a GPArc with top left and bottom right points, start and end
angles.
CONSTRUCTOR InitWithSize (topLeft: GPPoint; width,
height: integer; startAngle, endAngle: integer);
Initializes a GPArc with top left corner and dimensions, start and end
angles.
CONSTRUCTOR InitWithCoords (leftX, topY, rightX,
bottomY: integer; startAngle, endAngle: integer);
Initializes a GPArc with coordinates, start and end angles.
DESTRUCTOR Destroy; VIRTUAL;
Destroys a GPArc.
PROCEDURE SetStartAngle (startAngle: integer);
Modifies the start angle.
FUNCTION GetStartAngle: integer;
Returns the current start angle.
PROCEDURE SetEndAngle (endAngle: integer);
Modifies the end angle.
FUNCTION GetEndAngle: integer;
Returns the current end angle.
PROCEDURE Copy: GPShapeAsn; VIRTUAL;
Produce a copy of the GPArc.
PROCEDURE CopyAsGPArc: GPArcAsn;
Produce a copy of the GPArc.
FUNCTION Equal(other : GPArc): Boolean;
Returns TRUE if the coordinates of other are the same as this
instance's.
Subclasses
- None
Please report any problems with GP or the documentation to
GP Support
.
Loring Holden