Class TCustomProperty

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCustomProperty = class(TObject)

Description

TCustomProperty is the abstract ancestor of real number, integer, and boolean properties.

(See TRProperty, TIProperty, and TBProperty.) A key method is IsIdentical which tests whether to TCustomPropertys are identical. Another is Assign which assigns the value of a data set at a particular location to the TCustomProperty.

Hierarchy

Overview

Fields

Private FPhastInterpolationValues: TPhastInterpolationValues;
Protected FIsValue: boolean;

Methods

Private function GetBValue: boolean; virtual;
Private function GetIValue: integer; virtual;
Private function GetRValue: double; virtual;
Private procedure SetBValue(const Value: boolean); virtual;
Private procedure SetIValue(const Value: integer); virtual;
Private procedure SetPhastInterpolationValues( const Value: TPhastInterpolationValues);
Private procedure SetRValue(const Value: double); virtual;
Public procedure Assign(const DataSet: TDataArray; const LayerIndex, RowIndex, ColIndex: integer); virtual;
Public function DataType: TPropertyType; virtual; abstract;
Public function IsIdentical(AProperty: TCustomProperty): boolean; virtual; abstract;
Public constructor Create;
Public destructor Destroy; override;

Properties

Public property BValue: boolean read GetBValue write SetBValue;
Public property IValue: integer read GetIValue write SetIValue;
Public property RValue: double read GetRValue write SetRValue;
Public property Interpolation: TPhastInterpolationValues read FPhastInterpolationValues write SetPhastInterpolationValues;
Public property IsValue: boolean read FIsValue;

Description

Fields

Private FPhastInterpolationValues: TPhastInterpolationValues;

FPhastInterpolationValues: TPhastInterpolationValues; See Interpolation

Protected FIsValue: boolean;

See Interpolation FIsValue is used to say whether the zone contains a value or not.

Methods

Private function GetBValue: boolean; virtual;

GetBValue returns False. In descendants it returns an actual value.

Private function GetIValue: integer; virtual;

GetIValue returns 0. In descendants it returns an actual value.

Private function GetRValue: double; virtual;

GetRValue returns 0.0. In descendants it returns an actual value.

Private procedure SetBValue(const Value: boolean); virtual;

SetBValue does nothing. In descendants it sets a value.

Private procedure SetIValue(const Value: integer); virtual;

SetIValue does nothing. In descendants it sets a value.

Private procedure SetPhastInterpolationValues( const Value: TPhastInterpolationValues);

See Interpolation

Private procedure SetRValue(const Value: double); virtual;

SetRValue does nothing. In descendants it sets a value.

Public procedure Assign(const DataSet: TDataArray; const LayerIndex, RowIndex, ColIndex: integer); virtual;

Assign copies the value of DataSet at LayerIndex, RowIndex, ColIndex to the TCustomProperty. In TCustomProperty, all it does is set FIsValue.

Public function DataType: TPropertyType; virtual; abstract;

DataType is used to specify what sort of data is stored in the TCustomProperty.

Public function IsIdentical(AProperty: TCustomProperty): boolean; virtual; abstract;

IsIdentical returns true if the TCustomProperty's are the same.

Public constructor Create;

Create creates an instance of TCustomProperty.

Public destructor Destroy; override;

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

Properties

Public property BValue: boolean read GetBValue write SetBValue;

BValue is an boolean value in the TCustomProperty.

Public property IValue: integer read GetIValue write SetIValue;

IValue is an integer value in the TCustomProperty.

Public property RValue: double read GetRValue write SetRValue;

RValue is an real-number value in the TCustomProperty.

Public property Interpolation: TPhastInterpolationValues read FPhastInterpolationValues write SetPhastInterpolationValues;

If PHAST-style interpolation is used, Interpolation is used to save the interpolation parameters.

Public property IsValue: boolean read FIsValue;

IsValue is used to tell whether or not the property has a value. In boundary conditions, zones often don't have a value.


Generated by PasDoc 0.12.1 on 2013-05-13 15:42:07