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