Class TfrmGridColor

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TfrmGridColor = class(TfrmCustomGoPhast)

Description

TfrmGridColor is used to allow the user to specify what TDataArray should be used to color the TPhastGrid.

Hierarchy

Overview

Fields

Implicit btnCancel: TBitBtn;
Implicit btnHelp: TBitBtn;
Implicit btnOK: TBitBtn;
Implicit comboColorScheme: TComboBox;
Implicit comboDataSet: TComboBox;
Implicit frameCheck3DMax: TframeDisplayLimit;
Implicit frameCheck3DMin: TframeDisplayLimit;
Implicit lblCycles: TLabel;
Implicit lblColorScheme: TLabel;
Implicit lblDataSet: TLabel;
Implicit lblLowerLimit: TLabel;
Implicit lblTime: TLabel;
Implicit lblUpperLimit: TLabel;
Implicit pbColorScheme: TPaintBox;
Implicit rdeTime3D: TRbwDataEntry;
Implicit seCycles: TSpinEdit;
Private FFrontItems: TStringList;
Private FSideItems: TStringList;
Private FTopItems: TStringList;

Methods

Implicit procedure btnOKClick(Sender: TObject);
Implicit procedure comboDataSetChange(Sender: TObject);
Implicit procedure comboColorSchemeChange(Sender: TObject);
Implicit procedure FormCreate(Sender: TObject); override;
Implicit procedure FormDestroy(Sender: TObject);
Implicit procedure pbColorSchemePaint(Sender: TObject);
Implicit procedure seCyclesChanged(Sender: TObject; NewValue: Integer);
Private procedure GetData;
Private procedure SetData;

Description

Fields

Implicit btnCancel: TBitBtn;

btnCancel: TBitBtn; Clicking btnCancel closes the TfrmGridColor without changing anything.

Implicit btnHelp: TBitBtn;

btnHelp: TBitBtn; Clicking btnHelp btnHelp displays help on the TfrmGridColor.

Implicit btnOK: TBitBtn;

btnOK: TBitBtn; See btnOKClick.

Implicit comboColorScheme: TComboBox;

comboColorScheme: TComboBox; comboColorScheme displays a list of the different methods for converting a value in the TDataArray used for coloring the TPhastGrid to a color.

Implicit comboDataSet: TComboBox;

comboDataSet: TComboBox; comboDataSet displays the names of the TDataArray or boundary conditions that can be used to color the grid. See pbColorScheme and pbColorSchemePaint.

Implicit frameCheck3DMax: TframeDisplayLimit;

frameCheck3DMax: TframeDisplayLimit; frameCheck3DMax is used to set the maximum value used to color the grid.

Implicit frameCheck3DMin: TframeDisplayLimit;

frameCheck3DMin: TframeDisplayLimit; frameCheck3DMin is used to set the minimum value used to color the grid.

Implicit lblCycles: TLabel;

lblCycles: TLabel; lblCycles labels seCycles.

Implicit lblColorScheme: TLabel;

lblColorScheme: TLabel; lblColorScheme displays "Color scheme".

Implicit lblDataSet: TLabel;

lblDataSet: TLabel; lblDataSet displays "Data set or boundary condition".

Implicit lblLowerLimit: TLabel;

lblLowerLimit: TLabel; lblLowerLimit displays "Lower limit".

Implicit lblTime: TLabel;

lblTime: TLabel; lblTime displays "Time".

Implicit lblUpperLimit: TLabel;

lblUpperLimit: TLabel; lblUpperLimit displays "Upper limit".

Implicit pbColorScheme: TPaintBox;

pbColorScheme: TPaintBox; pbColorScheme is used to give a preview of the color schemes listed in comboColorScheme. See pbColorSchemePaint.

Implicit rdeTime3D: TRbwDataEntry;

rdeTime3D: TRbwDataEntry; For transient TDataArrays, rdeTime3D is used to specify the time used for the TDataArray to be displayed.

Implicit seCycles: TSpinEdit;

seCycles: TSpinEdit; seCycles specifies the value for TPhastModel.ColorCycles. See seCyclesChanged.

Private FFrontItems: TStringList;

FFrontItems: TStringList; FFrontItems stores a list of the TDataArrays or boundary conditions that can be displayed on the front view of the model. The Objects property of FFrontItems contains either the corresponding TDataArray or the corresponding TTimeList.

Private FSideItems: TStringList;

FSideItems: TStringList; FSideItems stores a list of the TDataArrays or boundary conditions that can be displayed on the side view of the model. The Objects property of FSideItems contains either the corresponding TDataArray or the corresponding TTimeList.

Private FTopItems: TStringList;

FTopItems: TStringList; FTopItems stores a list of the TDataArrays or boundary conditions that can be displayed on the top view of the model. The Objects property of FTopItems contains either the corresponding TDataArray or the corresponding TTimeList.

Methods

Implicit procedure btnOKClick(Sender: TObject);

btnOKClick causes the grid to be colored with the selected TDataArray by calling SetData.

Implicit procedure comboDataSetChange(Sender: TObject);

comboDataSetChange enables or disables other controls based on what is selected in comboDataSet. It also updates the values used as limits in frameCheck3DMax and frameCheck3DMin.

Implicit procedure comboColorSchemeChange(Sender: TObject);

comboColorSchemeChange causes pbColorScheme to be redrawn. See pbColorSchemePaint.

Implicit procedure FormCreate(Sender: TObject); override;

FormCreate initializes some variables and calls GetData.

Implicit procedure FormDestroy(Sender: TObject);

FormDestroy destroys private variables.

Implicit procedure pbColorSchemePaint(Sender: TObject);

pbColorSchemePaint gives a preview of the color scheme selected in comboColorScheme.

Implicit procedure seCyclesChanged(Sender: TObject; NewValue: Integer);

seCyclesChanged invalidates pbColorScheme.

Private procedure GetData;

GetData retrieves the data about the TDataArray used to color the TPhastGrid.

Private procedure SetData;

SetData sets the TDataArray used to color the TPhastGrid.


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