Class TSubPolygon

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TSubPolygon = class(TObject)

Description

TSubPolygon is used to make determining whether a point is inside a TScreenObject faster.

See EvaluateSubPolygon.

Hierarchy

Overview

Fields

Private FCount: integer;
Private FMaxX: real;
Private FMaxY: real;
Private FMinY: real;
Private FStart: integer;
Private FSubPolygon1: TSubPolygon;
Private FSubPolygon2: TSubPolygon;

Methods

Private constructor Create(const Points: TRealPointArray; const Count, Start: integer);
Public destructor Destroy; override;

Description

Fields

Private FCount: integer;

FCount: integer; FCount is the number of points used by the TSubPolygon.

Private FMaxX: real;

FMaxX: real; FMaxX is the maximum X value of any of the points used by the TSubPolygon.

Private FMaxY: real;

FMaxY: real; FMaxY is the maximum Y value of any of the points used by the TSubPolygon.

Private FMinY: real;

FMinY: real; FMinY is the minimum Y value of any of the points used by the TSubPolygon.

Private FStart: integer;

FStart is the index of the first point used by the TSubPolygon.

Private FSubPolygon1: TSubPolygon;

FSubPolygon1: TSubPolygon; FSubPolygon1 represents the TSubPolygon used to process the first half of the points if the number of points exceeds a threshold.

Private FSubPolygon2: TSubPolygon;

FSubPolygon2: TSubPolygon; FSubPolygon2 represents the TSubPolygon used to process the second half of the points if the number of points exceeds a threshold.

Methods

Private constructor Create(const Points: TRealPointArray; const Count, Start: integer);

Create creates and instance of TSubPolygon. If Count is large enough, it will create FSubPolygon1 and FSubPolygon2 to handle what it needs to do.

Parameters
Points
is the array of T2DRealPoints to be used by TSubPolygon.
Count
is the number of T2DRealPoints in Points to be used by TSubPolygon.
Count
is the index of the first T2DRealPoints in Points to be used by TSubPolygon.
Public destructor Destroy; override;

Destroy destroys the current instance of TSubPolygon. Do not call Destroy directly. Call Free instead.


Generated by PasDoc 0.10.0 on 2006-10-31 09:56:45