GPLine

Unit : GPShapesUnit
Association : GPLineAsn
Inherits from : GPShape

Description

A line connecting two points.

Public Interface

CONSTRUCTOR Init;
Initializes a GPLine (with endpoints (0, 0) and (0, 0)).

CONSTRUCTOR InitWithCoords (startX, startY, endX, endY: integer);
Initializes a GPLine with the given coordinates.

CONSTRUCTOR InitWithPoints (startPt, endPt: GPPoint);
Initializes a GPLine with the given endpoints.

DESTRUCTOR Destroy; VIRTUAL;
Destroys a GPLine.

PROCEDURE SetStart(startPt : GPPoint);
Set the start point of the GPLine.

PROCEDURE GetStart(VAR startPt : GPPoint);
Get the start point of the GPLine.

PROCEDURE SetEnd(endPt : GPPoint);
Set the end point of the GPLine.

PROCEDURE GetEnd(VAR endPt : GPPoint);
Get the end point of the GPLine.

PROCEDURE SetCoords(startX, startY, endX, endY: integer);
Set the coordinates of the GPLine.

PROCEDURE SetCoords(startX, startY, endX, endY: integer);
Get the coordinates of the GPLine.

PROCEDURE Copy: GPShapeAsn; VIRTUAL;
Produce a copy of the GPLine.

PROCEDURE CopyAsGPLine: GPLineAsn;
Produce a copy of the GPLine.

FUNCTION Equal(other : GPLine): 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 .


GP Home Page GP Documentation
Loring Holden