GPFilledPie
Unit : GPShapesUnit
Association : GPFilledPieAsn
Inherits from : None
Description
- A filled pie piece, which is a section of a filled oval. The oval is defined by
a 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
the bottom left quarter of a filled pie should start at 180° and end at 270°.
Public Interface
-
CONSTRUCTOR Init;
Initializes a GPFilledPie with (0,0) for both corners and 0 as its
angles.
CONSTRUCTOR InitWithPoints (topLeft, bottomRight:
GPPoint; startAngle, endAngle: integer);
Initializes a GPFilledPie with top left and bottom right points, start and
end angles.
CONSTRUCTOR InitWithSize (topLeft: GPPoint; width,
height: integer; startAngle, endAngle: integer);
Initializes a GPFilledPie with top left corner and dimensions, start and
end angles.
CONSTRUCTOR InitWithCoords (leftX, topY, rightX,
bottomY: integer; startAngle, endAngle: integer);
Initializes a GPFilledPie with coordinates, start and end angles.
DESTRUCTOR Destroy; VIRTUAL;
Destroys a GPFilledPie.
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 GPFilledPie.
PROCEDURE CopyAsGPFilledPie: GPFilledPieAsn;
Produce a copy of the GPFilledPie.
FUNCTION Equal(other : GPFilledPie): 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