Unit DataSetUnit

DescriptionusesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

The main purposes of DataSetUnit is to define TDataArray which provides an interface to a 3D array of data and TCustom2DInterpolater which provides an interface for 2D interpolation.

uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class EInvalidDataType EInvalidDataType is raised if a formula is assigned that, when compiled gives a type of data that is incompatible with the type of data stored in the TDataArray.
Class EInterpolationException EInterpolationException is raised if an error occurs during interpolation.
Class ECircularReference ECircularReference is raised if, when assigning values to a data set, a circular reference is encountered so that the TDataArray depends on itself.
Class TColoringLimit When the grid is colored by a TDataArray, the colors can be restricted to lie within a range. TColoringLimit is used to represent one end of the range. See TColoringLimits.
Class TColoringLimits When the grid is colored by a TDataArray, the colors can be restricted to lie within a range. TColoringLimits is used to represent both ends of the range. See TColoringLimit.
Class TDataArray TDataArray provides an interface to a 3D array of data.
Class TCustom2DInterpolater TCustom2DInterpolater provides an abstract interface for 2D interpolation. Descendants of TCustom2DInterpolater provide concrete implementations.

Call RegisterClass in the initialization section for any descendants that are instantiated.

Class TCustomSparseDataSet TCustomSparseDataSet is the abstract ancestor of classes that use descendants of T3DSparsePointerArray to store data.
Class TRealSparseDataSet TRealSparseDataSet is used to store real numbers in a sparse array.
Class TIntegerSparseDataSet TIntegerSparseDataSet is used to store integers in a sparse array.

Functions and Procedures

function GenerateNewName(Root: string = 'NewDataSet'): string;

Types

T3DRealDataSet = array of array of array of real;
T3DIntegerDataSet = array of array of array of integer;
T3DBooleanDataSet = array of array of array of boolean;
T3DStringDataSet = array of array of array of string;
TDataSetUsedEvent = function(Sender: TObject): boolean of object;
TDataSetType = class of TDataArray;
TInterpolatorType = class of TCustom2DInterpolater;
TInitializeDataSetInterpolator = procedure(Sender: TObject; const DataSet: TDataArray) of object;
TInterpolatorClass = class of TCustom2DInterpolater;

Variables

Stack: TStringList = nil;

Description

Functions and Procedures

function GenerateNewName(Root: string = 'NewDataSet'): string;

GenerateNewName generates a name for a TDataArray that is valid and does not conflict with the names of any existing TDataArrays.

Types

T3DRealDataSet = array of array of array of real;

T3DRealDataSet is a 3D array of real numbers.

T3DRealDataSet = array of array of array of real

T3DIntegerDataSet = array of array of array of integer;

T3DIntegerDataSet is a 3D array of integers.

T3DIntegerDataSet = array of array of array of integer

T3DBooleanDataSet = array of array of array of boolean;

T3DBooleanDataSet is a 3D array of booleans.

T3DBooleanDataSet = array of array of array of boolean

T3DStringDataSet = array of array of array of string;

T3DStringDataSet is a 3D array of strings.

T3DStringDataSet = array of array of array of string

TDataSetUsedEvent = function(Sender: TObject): boolean of object;

TDataSetUsedEvent is the type of the TDataArray.OnDataSetUsed event. TDataArray.OnDataSetUsed is called by TDataArray.UsedByModel

TDataSetType = class of TDataArray;

TDataSetType is used in creating descendants of TDataArray of the correct type when reading the model from a stream. See TDataSetItem.DataSetClass.

TInterpolatorType = class of TCustom2DInterpolater;

TInterpolatorType is used in creating descendants of TCustom2DInterpolater of the correct type when reading a TDataArray from a stream. See TDataArray.TwoDInterpolatorClass.

TInitializeDataSetInterpolator = procedure(Sender: TObject; const DataSet: TDataArray) of object;

See TCustom2DInterpolater.OnInitialize and TCustom2DInterpolater.OnFinalize.

TInterpolatorClass = class of TCustom2DInterpolater;

TInterpolatorClass is used to create descendants of TCustom2DInterpolater when reading a TDataArray from a file.

Variables

Stack: TStringList = nil;

Stack Stack is used in Initialize to detect circular references. A ECircularReference is raised if one is found.


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