Class TfrmImportDXF

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TfrmImportDXF = class(TfrmCustomGoPhast)

Description

TfrmImportDXF is used to import DXF files into GoPhast.

See miImportDXFFileClick.

Hierarchy

Overview

Fields

Implicit btnCancel: TBitBtn;
Implicit btnHelp: TBitBtn;
Implicit btnOK: TBitBtn;
Implicit cbEnclosedCells: TCheckBox;
Implicit cbInterpolation: TCheckBox;
Implicit cbIntersectedCells: TCheckBox;
Implicit comboDataSets: TComboBox;
Implicit comboInterpolators: TComboBox;
Implicit lblDataSet: TLabel;
Implicit lblInterpolator: TLabel;
Implicit OpenDialogDXF: TOpenDialog;
Implicit rgEvaluatedAt: TRadioGroup;
Private FDxfObject: DXF_Object;

Methods

Implicit procedure btnOKClick(Sender: TObject);
Implicit procedure cbEnclosedCellsClick(Sender: TObject);
Implicit procedure comboDataSetsChange(Sender: TObject);
Implicit procedure comboInterpolatorsChange(Sender: TObject);
Implicit procedure FormCreate(Sender: TObject); override;
Implicit procedure FormDestroy(Sender: TObject);
Implicit procedure rgEvaluatedAtClick(Sender: TObject);
Private function CoordConvert(P: Point3D; OCS: pMatrix): Point3D;
Private procedure GetDataSets;
Private procedure GetInterpolators;
Private procedure MakeNewDataSet;
Private procedure SetCheckBoxCaptions;
Private procedure SetData;
Private procedure Think(const Sender: TObject; Message: string);
Public function GetData: boolean;

Description

Fields

Implicit btnCancel: TBitBtn;

btnCancel: TBitBtn; Clicking btnCancel closes TfrmImportDXF without doing anything.

Implicit btnHelp: TBitBtn;

btnHelp: TBitBtn; Clicking btnHelp displays help about TfrmImportDXF.

Implicit btnOK: TBitBtn;

btnOK: TBitBtn; See btnOKClick.

Implicit cbEnclosedCells: TCheckBox;

cbEnclosedCells: TCheckBox; cbEnclosedCells indicates that the value of the imported TScreenObjects should set the value of enclosed cells or elements in the related TDataArray.

Implicit cbInterpolation: TCheckBox;

cbInterpolation: TCheckBox; cbInterpolation indicates that the value of the imported TScreenObjects should set the value of cells or elements in the related TDataArray by interpolation.

Implicit cbIntersectedCells: TCheckBox;

cbIntersectedCells: TCheckBox; cbIntersectedCells indicates that the value of the imported TScreenObjects should set the value of intersected cells or elements in the related TDataArray.

Implicit comboDataSets: TComboBox;

comboDataSets: TComboBox; comboDataSets is used to select the name of the TDataArray to be affected by the imported TScreenObjects.

Implicit comboInterpolators: TComboBox;

comboInterpolators: TComboBox; comboInterpolators is the name of the TCustom2DInterpolater that will be used with a new TDataArray.

Implicit lblDataSet: TLabel;

lblDataSet: TLabel; lblDataSet displays "Data Set".

Implicit lblInterpolator: TLabel;

lblInterpolator: TLabel; lblInterpolator displays "Interpolator".

Implicit OpenDialogDXF: TOpenDialog;

OpenDialogDXF: TOpenDialog; OpenDialogDXF is used to select the DXF file.

Implicit rgEvaluatedAt: TRadioGroup;

rgEvaluatedAt: TRadioGroup; rgEvaluatedAt indicates whether a new data set will be evaluated at elements or cells.

Private FDxfObject: DXF_Object;

FDxfObject: DXF_Object; FDxfObject represents the contents of the DXF file. DXF_Object is defined in DXF_Structs.

Methods

Implicit procedure btnOKClick(Sender: TObject);

btnOKClick calls SetData.

Implicit procedure cbEnclosedCellsClick(Sender: TObject);

cbEnclosedCellsClick makes sure that at least one of the following checkboxes is checked: cbEnclosedCells, cbIntersectedCells, and cbInterpolation. If not, their fonts are changed to emphasize them and btnOK is disabled.

Implicit procedure comboDataSetsChange(Sender: TObject);

comboDataSetsChange enables or disables comboInterpolators depending on whether a new TDataArray is to be created. comboInterpolators will be enabled if a new TDataArray is to be created.

Implicit procedure comboInterpolatorsChange(Sender: TObject);

comboInterpolatorsChange enables cbInterpolation if an interpolator is specified.

Implicit procedure FormCreate(Sender: TObject); override;

FormCreate calls GetInterpolators.

Implicit procedure FormDestroy(Sender: TObject);

FormDestroy frees FDxfObject.

Implicit procedure rgEvaluatedAtClick(Sender: TObject);

rgEvaluatedAtClick changes the captions of cbEnclosedCells, cbIntersectedCells, and cbInterpolation.

Private function CoordConvert(P: Point3D; OCS: pMatrix): Point3D;

CoordConvert is used to transform the coordinates of P based on OCS.

Private procedure GetDataSets;

GetDataSets fills comboDataSets with the names of TDataArrays that can be used the the imported TScreenObjects.

Private procedure GetInterpolators;

GetInterpolators fills comboInterpolators with a list of TCustom2DInterpolaters.

Private procedure MakeNewDataSet;

MakeNewDataSet creates a new TDataArray.

Private procedure SetCheckBoxCaptions;

Set the captions of cbEnclosedCells, cbIntersectedCells, and cbInterpolation based on rgEvaluatedAt.ItemIndex.

Private procedure SetData;

SetData converts the entities from FDxfObject to TScreenObjects.

Private procedure Think(const Sender: TObject; Message: string);

Think is used to update frmProgress.

Public function GetData: boolean;

GetData is used to open and read a DXF file. It returns True if it was able to do so and the file contains something it can use.


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