Class TScreenObjectItem

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TScreenObjectItem = class(TCollectionItem)

Description

TScreenObjectItem is used to save or read a TScreenObject.

When saving data to a stream, the data is read from FScreenObject. When reading data from a stream, the data is stored in private fields. It is transferred to a TScreenObject in UpdateScreenObject.

Hierarchy

Overview

Fields

Private FDataSetNames: TStrings;
Private FDataSetFormulas: TStrings;
Private FElevationFunction: string;
Private FHigherElevationFunction: string;
Private FLowerElevationFunction: string;
Private FPoints: TPointCollection;
Private FScreenObject: TScreenObject;
Private FSelectedVertexCollection: TSelectedVertexCollection;

Methods

Private function GetClassType: string;
Private function GetDataSetFormulas: TStrings;
Private function GetDataSetNames: TStrings;
Private function GetElevationFunction: string;
Private function GetHigherElevationFunction: string;
Private function GetLowerElevationFunction: string;
Private procedure SetClassType(Value: string);
Protected procedure UpdateScreenObject; virtual;
Public constructor Create(Collection: TCollection); override;
Public destructor Destroy; override;
Public procedure SetScreenObject(const Value: TScreenObject);

Properties

Published property ClassTypeName: string read GetClassType write SetClassType;
Published property Contour: TScreenObject read FScreenObject stored False;
Published property DataSetNames: TStrings read GetDataSetNames write FDataSetNames;
Published property DataSetFormulas: TStrings read GetDataSetFormulas write FDataSetFormulas;
Published property ElevationFunction: string read GetElevationFunction write FElevationFunction;
Published property HigherElevationFunction: string read GetHigherElevationFunction write FHigherElevationFunction;
Published property LowerElevationFunction: string read GetLowerElevationFunction write FLowerElevationFunction;
Published property Points: TPointCollection read FPoints write FPoints;
Published property ScreenObject: TScreenObject read FScreenObject;
Published property SelectedVertices: TSelectedVertexCollection read FSelectedVertexCollection write FSelectedVertexCollection;
Published property SelectedNodes: TSelectedVertexCollection read FSelectedVertexCollection write FSelectedVertexCollection stored False;

Description

Fields

Private FDataSetNames: TStrings;

FDataSetNames: TStrings; See DataSetNames.

Private FDataSetFormulas: TStrings;

FDataSetFormulas: TStrings; See DataSetFormulas.

Private FElevationFunction: string;

FElevationFunction: string; See ElevationFunction.

Private FHigherElevationFunction: string;

FHigherElevationFunction: string; See HigherElevationFunction.

Private FLowerElevationFunction: string;

FLowerElevationFunction: string; See LowerElevationFunction.

Private FPoints: TPointCollection;

FPoints: TPointCollection; See Points.

Private FScreenObject: TScreenObject;

FScreenObject: TScreenObject; See ScreenObject.

Private FSelectedVertexCollection: TSelectedVertexCollection;

FSelectedVertexCollection: TSelectedVertexCollection; See SelectedVertices.

Methods

Private function GetClassType: string;

See ClassTypeName.

Private function GetDataSetFormulas: TStrings;

See DataSetFormulas.

Private function GetDataSetNames: TStrings;

See DataSetNames.

Private function GetElevationFunction: string;

See ElevationFunction.

Private function GetHigherElevationFunction: string;

See HigherElevationFunction.

Private function GetLowerElevationFunction: string;

See LowerElevationFunction.

Private procedure SetClassType(Value: string);

See ClassTypeName.

Protected procedure UpdateScreenObject; virtual;

UpdateScreenObject updates ScreenObject with the values read from the stream and stored in private data fields.

Public constructor Create(Collection: TCollection); override;

Create creates an instance of TScreenObjectItem.

Public destructor Destroy; override;

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

Public procedure SetScreenObject(const Value: TScreenObject);

see ScreenObject.

Properties

Published property ClassTypeName: string read GetClassType write SetClassType;

ClassTypeName must be before ScreenObject or Contour. Setting ClassTypeName causes ScreenObject to be created.

Published property Contour: TScreenObject read FScreenObject stored False;

Contour is used for backwards compatibility only. See ScreenObject.

Published property DataSetNames: TStrings read GetDataSetNames write FDataSetNames;

DataSetNames is the data sets whose values are set by ScreenObject.

Published property DataSetFormulas: TStrings read GetDataSetFormulas write FDataSetFormulas;

DataSetFormulas has the formulas for the data sets whose values are set by ScreenObject.

Published property ElevationFunction: string read GetElevationFunction write FElevationFunction;

ElevationFunction is the ElevationFunction of ScreenObject.

Published property HigherElevationFunction: string read GetHigherElevationFunction write FHigherElevationFunction;

HigherElevationFunction is the HigherElevationFunction formula of ScreenObject.

Published property LowerElevationFunction: string read GetLowerElevationFunction write FLowerElevationFunction;

LowerElevationFunction is the LowerElevationFunction formula of ScreenObject.

Published property Points: TPointCollection read FPoints write FPoints;

Points stores the Points of ScreenObject.

Published property ScreenObject: TScreenObject read FScreenObject;

ScreenObject is set to a subcomponent in SetScreenObject. This is required to have the properties of TScreenObject saved to file. It can be set through SetScreenObject.

Published property SelectedVertices: TSelectedVertexCollection read FSelectedVertexCollection write FSelectedVertexCollection;

SelectedVertices stores the SelectedVertices of ScreenObject.

Published property SelectedNodes: TSelectedVertexCollection read FSelectedVertexCollection write FSelectedVertexCollection stored False;

SelectedNodes is the same as SelectedVertices. It is used only for backwards compatibility.


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