Class TfrmColors

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TfrmColors = class(TfrmCustomGoPhast)

Description

TfrmColors allows the user to edit the values of ColorValues and thus affect the appearance of the 3D view of the model.

Hierarchy

Overview

Fields

Implicit btnApply: TButton;
Implicit btnClose: TBitBtn;
Implicit btnHelp: TBitBtn;
Implicit lblAmbient: TLabel;
Implicit lblDiffuse: TLabel;
Implicit lblLightIntensity: TLabel;
Implicit lblLightPosition: TLabel;
Implicit lblSpecular: TLabel;
Implicit lblX: TLabel;
Implicit lblY: TLabel;
Implicit lblZ: TLabel;
Implicit rdeAmb: TRbwDataEntry;
Implicit rdeDiff: TRbwDataEntry;
Implicit rdeSpec: TRbwDataEntry;
Implicit rdeX: TRbwDataEntry;
Implicit rdeY: TRbwDataEntry;
Implicit rdeZ: TRbwDataEntry;
Private Modified: boolean;

Methods

Implicit procedure btnApplyClick(Sender: TObject);
Implicit procedure FormHide(Sender: TObject);
Implicit procedure FormShow(Sender: TObject);
Implicit procedure rdeValuesChange(Sender: TObject);
Private procedure ApplyData;
Private procedure GetData;
Public procedure HideMe;

Description

Fields

Implicit btnApply: TButton;

btnApply: TButton; See btnApplyClick

Implicit btnClose: TBitBtn;

btnClose: TBitBtn; btnClose closes the dialog box.

Implicit btnHelp: TBitBtn;

btnHelp: TBitBtn; btnHelp shows help for the dialog box.

Implicit lblAmbient: TLabel;

lblAmbient: TLabel; lblAmbient labels the edit box for the ambient light intensity.

Implicit lblDiffuse: TLabel;

lblDiffuse: TLabel; lblDiffuse labels the edit box for the diffuse light intensity.

Implicit lblLightIntensity: TLabel;

lblLightIntensity: TLabel; lblLightIntensity labels group of edit boxes for light intensity.

Implicit lblLightPosition: TLabel;

lblLightPosition: TLabel; lblLightPosition labels group of edit boxes for light position.

Implicit lblSpecular: TLabel;

lblSpecular: TLabel; lblSpecular labels the edit box for the specular light intensity.

Implicit lblX: TLabel;

lblX: TLabel; lblX labels the edit box for the X-coordinate of the light position.

Implicit lblY: TLabel;

lblY: TLabel; lblY labels the edit box for the Y-coordinate of the light position.

Implicit lblZ: TLabel;

lblZ: TLabel; lblZ labels the edit box for the Z-coordinate of the light position.

Implicit rdeAmb: TRbwDataEntry;

rdeAmb: TRbwDataEntry; rdeAmb is the edit box for the ambient light intensity.

Implicit rdeDiff: TRbwDataEntry;

rdeDiff: TRbwDataEntry; rdeDiff is the edit box for the diffuse light intensity.

Implicit rdeSpec: TRbwDataEntry;

rdeSpec: TRbwDataEntry; rdeSpec is the edit box for the specular light intensity.

Implicit rdeX: TRbwDataEntry;

rdeX: TRbwDataEntry; rdeX is the edit box for the X-coordinate of the light position.

Implicit rdeY: TRbwDataEntry;

rdeY: TRbwDataEntry; rdeY is the edit box for the Y-coordinate of the light position.

Implicit rdeZ: TRbwDataEntry;

rdeZ: TRbwDataEntry; rdeZ is the edit box for the Z-coordinate of the light position.

Private Modified: boolean;

Modified: boolean; Modified is set to true when the user has changed something is this dialog box.

Methods

Implicit procedure btnApplyClick(Sender: TObject);

btnApplyClick transfers the data from this TfrmColors to ColorValues.

Implicit procedure FormHide(Sender: TObject);

FormHide asks the user if he want to apply the data before closing the dialog box.

Implicit procedure FormShow(Sender: TObject);

FormShow reads the values from ColorValues into this TfrmColors.

Implicit procedure rdeValuesChange(Sender: TObject);

rdeValuesChange sets Modified to True.

Private procedure ApplyData;

ApplyData copies the data from this TfrmColors to ColorValues.

Private procedure GetData;

GetData reads ColorValues and copies those values to the controls in this TfrmColors.

Public procedure HideMe;

HideMe closes this TfrmColors.


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