Class TLine

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TLine = class(TObject)

Description

TLine represents one contour line.

Hierarchy

Overview

Fields

Private FLocations: TObjectList;
Private FMaxX: double;
Private FMinX: double;
Private FMaxY: double;
Private FMinY: double;
Private FContourLevel: double;
Private FTriangleNumber: longint;
Private FLineList: TLineList;

Methods

Private function GetCount: integer;
Private function GetItems(const Index: integer): TLocation;
Public Constructor Create;
Public Destructor Destroy; override;
Public procedure Add(Const X, Y: double);
Public Function Equal(const Line: TLine): boolean;

Properties

Public property Count: integer read GetCount;
Public property Items[constIndex:integer]: TLocation read GetItems;
Public property MaxX: double read FMaxX;
Public property MinX: double read FMinX;
Public property MaxY: double read FMaxY;
Public property MinY: double read FMinY;
Public property ContourLevel: double read FContourLevel write FContourLevel;
Public property TriangleNumber: longint read FTriangleNumber write FTriangleNumber;

Description

Fields

Private FLocations: TObjectList;

implemented as TObjectList

Private FMaxX: double;
 
Private FMinX: double;
 
Private FMaxY: double;
 
Private FMinY: double;
 
Private FContourLevel: double;
 
Private FTriangleNumber: longint;
 
Private FLineList: TLineList;
 

Methods

Private function GetCount: integer;
 
Private function GetItems(const Index: integer): TLocation;
 
Public Constructor Create;
 
Public Destructor Destroy; override;
 
Public procedure Add(Const X, Y: double);
 
Public Function Equal(const Line: TLine): boolean;

Equal tests whether two TLine are nearly the same.

Properties

Public property Count: integer read GetCount;
 
Public property Items[constIndex:integer]: TLocation read GetItems;
 
Public property MaxX: double read FMaxX;
 
Public property MinX: double read FMinX;
 
Public property MaxY: double read FMaxY;
 
Public property MinY: double read FMinY;
 
Public property ContourLevel: double read FContourLevel write FContourLevel;

ContourLevel represents the value of the this contour line.

Public property TriangleNumber: longint read FTriangleNumber write FTriangleNumber;

TriangleNumber represents the triangle that was used to generate this TLine. In TLineList a TriangleNumber of 1 would represent the points identified by Triangles[0], [1], and [2]. In general the points in Triangles would be [(TriangleNumber-1)*3], [(TriangleNumber-1)*3+1], and [(TriangleNumber-1)*3+2]. TriangleNumber is no longer meaningful after MergeLines has been called.


Generated by PasDoc 0.12.1 on 2013-05-13 15:41:43