Class TLines

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TLines = class(TObject)

Description

Hierarchy

Overview

Fields

Private FLines: TList;
Private FCapacity: integer;

Methods

Private function GetLines(Index: integer): TLine;
Private procedure SetCapacity(const Value: integer);
Private function GetCount: integer;
Public function Add(ALine: TLine): integer;
Public Procedure Clear;
Public Constructor Create;
Public Destructor Destroy; override;
Public function Inside(const X, Y: integer): boolean; overload;
Public function Inside(const APoint: TPoint): boolean; overload;
Public function Intersect(const ALine: TLine): boolean;

Properties

Public property Count: integer read GetCount;
Public property Capacity: integer read FCapacity write SetCapacity;
Public property Lines[Index:integer]: TLine read GetLines;

Description

Fields

Private FLines: TList;

FLines is actually a TObjectList.

Private FCapacity: integer;
 

Methods

Private function GetLines(Index: integer): TLine;
 
Private procedure SetCapacity(const Value: integer);
 
Private function GetCount: integer;
 
Public function Add(ALine: TLine): integer;
 
Public Procedure Clear;
 
Public Constructor Create;
 
Public Destructor Destroy; override;
 
Public function Inside(const X, Y: integer): boolean; overload;

Inside returns true if the point (X,Y) is inside the polygon defined by TLines.

Public function Inside(const APoint: TPoint): boolean; overload;

Inside returns true if the point APoint is inside the polygon defined by TLines.

Public function Intersect(const ALine: TLine): boolean;

Intersect returns True if ALine intersects TLines.

Properties

Public property Count: integer read GetCount;
 
Public property Capacity: integer read FCapacity write SetCapacity;
 
Public property Lines[Index:integer]: TLine read GetLines;
 

Generated by PasDoc 0.12.1 on 2013-05-13 15:42:03