Class TNearestPoint2DInterpolator

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TNearestPoint2DInterpolator = class(TNearest2DInterpolator)

Description

TNearestPoint2DInterpolator implements an interpolator that returns the value of the TScreenObject which has a vertex closest to the point of interest.

Hierarchy

Overview

Fields

Private FQuadTree: TRbwQuadTree;

Methods

Private procedure InitializeQuadTree(Sender: TObject; const DataSet: TDataArray);
Protected function GetNearestScreenObject(const Location: T2DRealPoint; out ClosestLocation: T2DRealPoint): TScreenObject; override;
Public constructor Create(AOwner: TComponent); override;
Public class function InterpolatorName: string; override;

Description

Fields

Private FQuadTree: TRbwQuadTree;

FQuadTree is used to find the closest point to the location of interest.

Methods

Private procedure InitializeQuadTree(Sender: TObject; const DataSet: TDataArray);

InitializeQuadTree adds all the TScreenObject that set DataSet by interpolation to FQuadTree at each of the TScreenObject's nodes.

Protected function GetNearestScreenObject(const Location: T2DRealPoint; out ClosestLocation: T2DRealPoint): TScreenObject; override;

GetNearestScreenObject gets the the TScreenObject whose node is closest to Location. ClosestLocation is set to the location of that node.

Public constructor Create(AOwner: TComponent); override;

Create creates an instance of TNearestPoint2DInterpolator and assigns OnInitialize.

Public class function InterpolatorName: string; override;

InterpolatorName is the name of the interpolator displayed to the user.


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