Unit AbstractGridUnit

DescriptionusesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

The main item in AbstractGridUnit is TCustomGrid which is an abstract class that defines the interface for a grid. It implements storage for columns and rows but not for layers.

uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class EInvalidGrid EInvalidGrid is used for grid related errors.
record T2DTopCell The row and column of a cell
record T2DFrontCell The column and layer of a cell
record T2DSideCell The row and layer of a cell
record T3DCell The columns, row, and layer of a cell
Class TCustomGrid TCustomGrid is an abstract class that defines the interface for a grid. It implements storage for columns and rows but not for layers.

Functions and Procedures

function FracToRainbow(const Fraction: real): TColor;
procedure ReadRealArray(const Reader: TReader; var Positions: TOneDRealArray; const Count: integer);
procedure WriteRealArray(const Writer: TWriter; const Positions: TOneDRealArray);
procedure ReadIntegerArray(const Reader: TReader; var Positions: TOneDIntegerArray; const Count: integer);
procedure WriteIntegerArray(const Writer: TWriter; const Positions: TOneDIntegerArray);

Types

TColumnDirection = (...);
TRowDirection = (...);
TLayerDirection = (...);
TCellColors = array of array of array of TColor;

Description

Functions and Procedures

function FracToRainbow(const Fraction: real): TColor;

FracToRainbow converts a fraction between 0 and 1 to a color using the selected TModel.ColorScheme in FracAndSchemeToColor.

procedure ReadRealArray(const Reader: TReader; var Positions: TOneDRealArray; const Count: integer);

ReadRealArray is used to read a one-dimensional array of real numbers from a stream. See DefineProperties

procedure WriteRealArray(const Writer: TWriter; const Positions: TOneDRealArray);

WriteRealArray is used to write a one-dimensional array of real numbers to a stream. See DefineProperties

procedure ReadIntegerArray(const Reader: TReader; var Positions: TOneDIntegerArray; const Count: integer);

ReadIntegerArray is used to read a one-dimensional array of integers from a stream. See DefineProperties

procedure WriteIntegerArray(const Writer: TWriter; const Positions: TOneDIntegerArray);

WriteIntegerArray is used to write a one-dimensional array of integers to a stream. See DefineProperties

Types

TColumnDirection = (...);

TColumnDirection is used to indicate the direction in which columns are numbered.

Values
  • cdWestToEast:
  • cdEastToWest:
TRowDirection = (...);

TRowDirection is used to indicate the direction in which rows are numbered.

Values
  • rdSouthToNorth:
  • rdNorthToSouth:
TLayerDirection = (...);

TLayerDirection is used to indicate the direction in which layers are numbered.

Values
  • ldBottomToTop:
  • ldTopToBottom:
TCellColors = array of array of array of TColor;

TCellColors is used to store a color for each cell in TCustomGrid.

TCellColors = array of array of array of TColor


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