Class TframePhastInterpolation

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TframePhastInterpolation = class(TFrame)

Description

TframePhastInterpolation is used to provide the user with a standardized method of specifying the parameters needed for PHAST-style interpolation.

See TPhastInterpolationValues.

Hierarchy

Overview

Fields

Implicit rdeDistance1: TRbwDataEntry;
Implicit rdeDistance2: TRbwDataEntry;
Implicit rdeValue1: TRbwDataEntry;
Implicit rdeValue2: TRbwDataEntry;
Implicit btnEditMixtureFormula: TButton;
Implicit cbPhastInterpolation: TJvCheckBox;
Implicit edMixFormula: TRbwEdit;
Implicit lblDistance1: TLabel;
Implicit lblDistance2: TLabel;
Implicit lblMixtureFormula: TLabel;
Implicit lblValue1: TLabel;
Implicit lblValue2: TLabel;
Implicit rgInterpolationDirection: TRadioGroup;
Private FMixtureAllowed: boolean;
Private FAssigningValues: boolean;

Methods

Implicit procedure cbPhastInterpolationClick(Sender: TObject);
Implicit procedure rgInterpolationDirectionClick(Sender: TObject);
Private procedure AssignData(const InterpValues: TPhastInterpolationValues);
Protected procedure SetEnabled(Value: boolean); override;
Public procedure GetFirstData(const InterpValues: TPhastInterpolationValues);
Public procedure SetMixtureAllowed(const AValue: boolean);
Public procedure GetMoreData(const InterpValues: TPhastInterpolationValues);

Properties

Public property AssigningValues: boolean read FAssigningValues write FAssigningValues;

Description

Fields

Implicit rdeDistance1: TRbwDataEntry;

rdeDistance1 allows the user to edit the first distance in the PHAST-style interpolation. See TPhastInterpolationValues.

Implicit rdeDistance2: TRbwDataEntry;

rdeDistance2 allows the user to edit the second distance in the PHAST-style interpolation. See TPhastInterpolationValues.

Implicit rdeValue1: TRbwDataEntry;

rdeValue1 allows the user to edit the first value in the PHAST-style interpolation. See TPhastInterpolationValues.

Implicit rdeValue2: TRbwDataEntry;

rdeValue2 allows the user to edit the second value in the PHAST-style interpolation. See TPhastInterpolationValues.

Implicit btnEditMixtureFormula: TButton;

btnEditMixtureFormula is designed to be used to allow the user to edit the formula for mixtures in edMixFormula. However, no event-handler is assigned to it OnClick event in the TframePhastInterpolation. The event-handler must be assigned where the TframePhastInterpolation is used. See TPhastInterpolationValues.

Implicit cbPhastInterpolation: TJvCheckBox;
 
Implicit edMixFormula: TRbwEdit;

edMixFormula allows the user to edit the formula for mixtures. No event-handler is assigned to its OnChange event. The event-handler must be assigned where the TframePhastInterpolation is used. See TPhastInterpolationValues.

Implicit lblDistance1: TLabel;

lblDistance1 labels rdeDistance1.

Implicit lblDistance2: TLabel;

lblDistance2 labels rdeDistance2.

Implicit lblMixtureFormula: TLabel;

lblMixtureFormula labels edMixFormula.

Implicit lblValue1: TLabel;

lblValue1 labels rdeValue1.

Implicit lblValue2: TLabel;

lblValue2 labels rdeValue2.

Implicit rgInterpolationDirection: TRadioGroup;

rgInterpolationDirection allows the user to edit the direction used for PHAST-style interpolation or to use a mixture. See TPhastInterpolationValues. See rgInterpolationDirectionClick.

Private FMixtureAllowed: boolean;

FMixtureAllowed stores the value specified in SetMixtureAllowed

Private FAssigningValues: boolean;

See AssigningValues.

Methods

Implicit procedure cbPhastInterpolationClick(Sender: TObject);

cbPhastInterpolationClick enables or disables controls depending on whether cbPhastInterpolation is checked. If the controls are enabled and their OnChange events are assigned, the OnChange events are called.

Implicit procedure rgInterpolationDirectionClick(Sender: TObject);

rgInterpolationDirectionClick enables or disables controls in response to the user choosing one of the radio buttons in rgInterpolationDirection.

Private procedure AssignData(const InterpValues: TPhastInterpolationValues);

AssignData fills the controls on the TframePhastInterpolation with the values in InterpValues

Protected procedure SetEnabled(Value: boolean); override;

SetEnabled enables or disables the controls on the TframePhastInterpolation based on Value and calls inherited SetEnabled.

Public procedure GetFirstData(const InterpValues: TPhastInterpolationValues);

GetFirstData copies the data in InterpValues to the controls in TframePhastInterpolation and enables or disables controls appropriately.

Public procedure SetMixtureAllowed(const AValue: boolean);

SetMixtureAllowed is used to enable or disable the radiobutton for mixtures.

Public procedure GetMoreData(const InterpValues: TPhastInterpolationValues);

GetMoreData should only be called after GetFirstData has already been called. It checks whether the data in InterpValues agrees with the data that has already been copied to the controls. If not, it puts the control in an indeterminate state.

Properties

Public property AssigningValues: boolean read FAssigningValues write FAssigningValues;

AssigningValues should be set to True when the values in the TframePhastInterpolation are first being set to prevent OnChange events from being called when they shouldn't.


Generated by PasDoc 0.12.1 on 2013-05-13 15:41:33