Class TFitViewer

Unit

Declaration

type TFitViewer = class(TComponent, IFitViewer)

Description

Component responsible for displaying client data by means of UI components. Supports correspondence between series of Chart and items of CheckListBox. On turning off CheckListBox item serie can be only hidden but not deleted because there is no direct connection between items of CheckListBox and items of PointsSetList.

Hierarchy

  • TComponent
  • TFitViewer

Overview

Fields

Private FFitClient: TFitClient;
Private FForm: TForm;
Private FMaxX: double;
Private FMaxY: double;
Private FMinX: double;
Private FMinY: double;
Private FPointsSetList: TComponentList;
Private FUpdateGrids: boolean;
Private FUpdateLegends: boolean;
Private FViewMarkers: boolean;
Private FXCoordMode: longint;

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public function GetActiveCurveIndex: longint;
Public function GetActivePointsSet: TNeutronPointsSet;
Public function GetMaxX: double;
Public function GetMaxY: double;
Public function GetMinX: double;
Public function GetMinY: double;
Public function GetPointsSet(ActiveCurveIndex: longint): TNeutronPointsSet;
Private function GetMaxCurveNum(CurvesList: TSelfCopiedCompList; RFactorBounds: TTitlePointsSet): longint;
Private function GetPointsNumInBounds(Profile: TTitlePointsSet; RFactorBounds: TTitlePointsSet): longint;
Private function ValToStr(Value: double): string;
Public procedure Clear(Sender: TObject);
Public procedure FillDatasheetTable(ExperimentalProfile: TTitlePointsSet; CurvesList: TSelfCopiedCompList; ComputedProfile: TTitlePointsSet; DeltaProfile: TTitlePointsSet; RFactorBounds: TTitlePointsSet);
Public procedure GetMinMax(var AMinX, AMaxX, AMinY, AMaxY: double);
Public procedure Hide(Sender: TObject; PointsSet: TNeutronPointsSet);
Public procedure HideBackground(Sender: TObject; BackgroundPoints: TTitlePointsSet);
Public procedure HideCurvePositions(Sender: TObject; CurvePositions: TTitlePointsSet);
Public procedure HideExpProfile(Sender: TObject; DataPoints: TTitlePointsSet);
Public procedure HideRFactorBounds(Sender: TObject; RFactorBounds: TTitlePointsSet);
Public procedure Plot;
Public procedure PlotBackground(Sender: TObject; BackgroundPoints: TTitlePointsSet);
Public procedure PlotComputedProfile(Sender: TObject; ComputedProfile: TTitlePointsSet);
Public procedure PlotCurvePositions(Sender: TObject; CurvePositions: TTitlePointsSet);
Public procedure PlotCurves(Sender: TObject; CurvePointsSetList: TSelfCopiedCompList; CurveList: TMSCRCurveList);
Public procedure PlotDeltaProfile(Sender: TObject; DeltaProfile: TTitlePointsSet);
Public procedure PlotExpProfile(Sender: TObject; ExpProfile: TTitlePointsSet);
Public procedure PlotRFactorBounds(Sender: TObject; RFactorBounds: TTitlePointsSet);
Public procedure PlotSelectedPoints(Sender: TObject; SelectedPoints: TTitlePointsSet);
Public procedure PlotSelectedProfileInterval(Sender: TObject; SelectedArea: TTitlePointsSet);
Public procedure Refresh(Sender: TObject);
Public procedure RefreshPointsSet(Sender: TObject; PointsSet: TNeutronPointsSet);
Public procedure SetFitClient(AFitClient: TFitClient);
Public procedure SetUpdateGrids(Update: boolean);
Public procedure SetUpdateLegends(Update: boolean);
Public procedure SetViewMarkers(AViewMarkers: boolean);
Public procedure ShowHint(Hint: string);
Public procedure ShowRFactor;
Public procedure ShowTime;
Public procedure ViewAllMarkers;
Private procedure AddSerieToChart(Serie: TTASerie);
Private procedure ClearBackgroundTable;
Private procedure ClearBoundsTable;
Private procedure ClearCurveTable;
Private procedure ClearDatasheetTable;
Private procedure ClearDataTable;
Private procedure ClearPositionsTable;
Private procedure FillBackgroundTable(BackgroundPoints: TTitlePointsSet);
Private procedure FillBoundsTable(RFactorBounds: TTitlePointsSet);
Private procedure FillCurveTable(CurveList: TMSCRCurveList);
Private procedure FillDataTable(Profile: TTitlePointsSet);
Private procedure FillPositionsTable(CurvePositions: TTitlePointsSet);
Private procedure PlotPointsSet(PointsSet: TNeutronPointsSet);
Private procedure SetXCoordMode(AMode: longint);

Properties

Public property Form: TForm read FForm write FForm;
Public property XCoordMode: longint read FXCoordMode write SetXCoordMode;

Description

Fields

Private FFitClient: TFitClient;
 
Private FForm: TForm;
 
Private FMaxX: double;
 
Private FMaxY: double;
 
Private FMinX: double;
 
Private FMinY: double;
 
Private FPointsSetList: TComponentList;

List of data sets for each item of which chart serie is related. The list is passive, it contains pointers to external data.

Private FUpdateGrids: boolean;

Enables updating grids. By default is true.

Private FUpdateLegends: boolean;

Enables updating legend. By default is true.

Private FViewMarkers: boolean;
 
Private FXCoordMode: longint;
 

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public function GetActiveCurveIndex: longint;

Returns number of the first visible curve from curve list. This function actually gives the number of active curve when only single curve is visible in the chart. This should be checked separately.

Public function GetActivePointsSet: TNeutronPointsSet;
 
Public function GetMaxX: double;

Return boundary values among all curves.

Public function GetMaxY: double;
 
Public function GetMinX: double;
 
Public function GetMinY: double;
 
Public function GetPointsSet(ActiveCurveIndex: longint): TNeutronPointsSet;
 
Private function GetMaxCurveNum(CurvesList: TSelfCopiedCompList; RFactorBounds: TTitlePointsSet): longint;

Returns maximum number of curves in one of given R-factor intervals.

Private function GetPointsNumInBounds(Profile: TTitlePointsSet; RFactorBounds: TTitlePointsSet): longint;

Returns total number of profile points belonging to any of intervals.

Private function ValToStr(Value: double): string;
 
Public procedure Clear(Sender: TObject);

Method of IFitViewer interface.

Public procedure FillDatasheetTable(ExperimentalProfile: TTitlePointsSet; CurvesList: TSelfCopiedCompList; ComputedProfile: TTitlePointsSet; DeltaProfile: TTitlePointsSet; RFactorBounds: TTitlePointsSet);

Method of IFitViewer interface.

Public procedure GetMinMax(var AMinX, AMaxX, AMinY, AMaxY: double);
 
Public procedure Hide(Sender: TObject; PointsSet: TNeutronPointsSet);

Method of IFitViewer interface.

Public procedure HideBackground(Sender: TObject; BackgroundPoints: TTitlePointsSet);

Method of IFitViewer interface.

Public procedure HideCurvePositions(Sender: TObject; CurvePositions: TTitlePointsSet);

Method of IFitViewer interface.

Public procedure HideExpProfile(Sender: TObject; DataPoints: TTitlePointsSet);

Method of IFitViewer interface.

Public procedure HideRFactorBounds(Sender: TObject; RFactorBounds: TTitlePointsSet);

Method of IFitViewer interface.

Public procedure Plot;

Clears all series and fills them again saving parameter values.

Public procedure PlotBackground(Sender: TObject; BackgroundPoints: TTitlePointsSet);

Method of IFitViewer interface.

Public procedure PlotComputedProfile(Sender: TObject; ComputedProfile: TTitlePointsSet);

Method of IFitViewer interface.

Public procedure PlotCurvePositions(Sender: TObject; CurvePositions: TTitlePointsSet);

Method of IFitViewer interface.

Public procedure PlotCurves(Sender: TObject; CurvePointsSetList: TSelfCopiedCompList; CurveList: TMSCRCurveList);

Method of IFitViewer interface.

Public procedure PlotDeltaProfile(Sender: TObject; DeltaProfile: TTitlePointsSet);

Method of IFitViewer interface.

Public procedure PlotExpProfile(Sender: TObject; ExpProfile: TTitlePointsSet);

Method of IFitViewer interface.

Public procedure PlotRFactorBounds(Sender: TObject; RFactorBounds: TTitlePointsSet);

Method of IFitViewer interface.

Public procedure PlotSelectedPoints(Sender: TObject; SelectedPoints: TTitlePointsSet);

Method of IFitViewer interface.

Public procedure PlotSelectedProfileInterval(Sender: TObject; SelectedArea: TTitlePointsSet);

Method of IFitViewer interface.

Public procedure Refresh(Sender: TObject);

Method of IFitViewer interface.

Public procedure RefreshPointsSet(Sender: TObject; PointsSet: TNeutronPointsSet);

Does not clear series but only refreshes intencities.

Public procedure SetFitClient(AFitClient: TFitClient);
 
Public procedure SetUpdateGrids(Update: boolean);

Method of IFitViewer interface.

Public procedure SetUpdateLegends(Update: boolean);

Method of IFitViewer interface.

Public procedure SetViewMarkers(AViewMarkers: boolean);
 
Public procedure ShowHint(Hint: string);

Method of IFitViewer interface.

Public procedure ShowRFactor;

Method of IFitViewer interface.

Public procedure ShowTime;

Method of IFitViewer interface.

Public procedure ViewAllMarkers;
 
Private procedure AddSerieToChart(Serie: TTASerie);
 
Private procedure ClearBackgroundTable;
 
Private procedure ClearBoundsTable;
 
Private procedure ClearCurveTable;
 
Private procedure ClearDatasheetTable;
 
Private procedure ClearDataTable;
 
Private procedure ClearPositionsTable;
 
Private procedure FillBackgroundTable(BackgroundPoints: TTitlePointsSet);
 
Private procedure FillBoundsTable(RFactorBounds: TTitlePointsSet);
 
Private procedure FillCurveTable(CurveList: TMSCRCurveList);
 
Private procedure FillDataTable(Profile: TTitlePointsSet);
 
Private procedure FillPositionsTable(CurvePositions: TTitlePointsSet);
 
Private procedure PlotPointsSet(PointsSet: TNeutronPointsSet);

Clears serie set and fills it again.

Private procedure SetXCoordMode(AMode: longint);
 

Properties

Public property Form: TForm read FForm write FForm;
 
Public property XCoordMode: longint read FXCoordMode write SetXCoordMode;
 

Generated by PasDoc 0.15.0.