Class TPointsSet

Unit

Declaration

type TPointsSet = class(TSelfCopiedComponent)

Description

Generic point set.

Hierarchy

Overview

Fields

Protected FPoints: TwoDimArray;

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public function IndexOfNearestToX(XValue: double): longint;
Public function IndexOfValueX(XValue: double): longint;
Protected function GetMaxXCoord: double;
Protected function GetMaxYCoord: double;
Protected function GetPointsCount: longint;
Protected function GetPointXCoord(index: longint): double; virtual;
Protected function GetPointYCoord(index: longint): double; virtual;
Public procedure AddNewPoint(XValue, YValue: double);
Public procedure Clear;
Public procedure CopyParameters(Dest: TObject); override;
Public procedure DeletePoint(XValue: double);
Public procedure ReplacePoint(PrevXValue, PrevYValue, NewXValue, NewYValue: double);
Public procedure Sort; virtual;
Protected procedure SetPointXCoord(index: longint; Value: double); virtual;
Protected procedure SetPointYCoord(index: longint; Value: double); virtual;

Properties

Public property MaxXCoord: double read GetMaxXCoord;
Public property MaxYCoord: double read GetMaxYCoord;
Public property PointsCount: longint read GetPointsCount;
Public property PointXCoord[index:longint]: double read GetPointXCoord write SetPointXCoord;
Public property PointYCoord[index:longint]: double read GetPointYCoord write SetPointYCoord;

Description

Fields

Protected FPoints: TwoDimArray;
 

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public function IndexOfNearestToX(XValue: double): longint;

Returns index of point having X closest to the given value.

Public function IndexOfValueX(XValue: double): longint;

Returns index of point with given X, -1 if point not found.

Protected function GetMaxXCoord: double;
 
Protected function GetMaxYCoord: double;
 
Protected function GetPointsCount: longint;
 
Protected function GetPointXCoord(index: longint): double; virtual;
 
Protected function GetPointYCoord(index: longint): double; virtual;
 
Public procedure AddNewPoint(XValue, YValue: double);
 
Public procedure Clear;
 
Public procedure CopyParameters(Dest: TObject); override;
 
Public procedure DeletePoint(XValue: double);
 
Public procedure ReplacePoint(PrevXValue, PrevYValue, NewXValue, NewYValue: double);
 
Public procedure Sort; virtual;
 
Protected procedure SetPointXCoord(index: longint; Value: double); virtual;
 
Protected procedure SetPointYCoord(index: longint; Value: double); virtual;
 

Properties

Public property MaxXCoord: double read GetMaxXCoord;
 
Public property MaxYCoord: double read GetMaxYCoord;
 
Public property PointsCount: longint read GetPointsCount;
 
Public property PointXCoord[index:longint]: double read GetPointXCoord write SetPointXCoord;
 
Public property PointYCoord[index:longint]: double read GetPointYCoord write SetPointYCoord;
 

Generated by PasDoc 0.15.0.