In file diagmain.h:

class DiagMainWindow : public TGMainFrame

Diagnostics main window

Inheritance:


Public Methods

DiagMainWindow (const TGWindow *p, basic_commandline* cmdline, Int_t meastype = 0, const char* filename = 0)
Constructor
virtual ~DiagMainWindow ()
Destructor.
virtual void CloseWindow ()
Close method
virtual Bool_t UpdatePlot (Int_t stepnum = -1, Bool_t updatePads = kTRUE)
Update plot method.
virtual Bool_t AddOtherData ()
Add data method.
virtual Bool_t UpdateData ()
Update data method.
virtual Bool_t SaveCalibrationData ()
Save calibration method.
virtual Bool_t RestoreCalibrationData ()
Restore calibration method.
virtual void ShowDefaultPlot (Bool_t updatePads = kTRUE, ligogui::TLGMultiPad* mpads = 0)
Show default plot method.
virtual Int_t GetMeasurementType () const
Get measurement type.
virtual Bool_t SetMeasurementType (Int_t type)
Set measurement type.
virtual Bool_t ClearResults (Bool_t askfirst = kFALSE, Bool_t all = kTRUE)
Remove results method.
virtual Bool_t TransferParameters (Bool_t toGUI = kTRUE, Bool_t newparam = kFALSE)
Transfer parameters.
virtual Bool_t TransferPlotSettings (Bool_t toGUI, Int_t index1, Int_t index2, ligogui::OptionAll_t* pset)
Transfer plot settings.
virtual Bool_t TransferCalibrationSettings (Bool_t toGUI, Int_t index, calrec_t* cal)
Transfer calibration settings.
virtual Bool_t SavePlotSettings ()
Save plot settings.
virtual Bool_t ShowPlots ()
Show plots.
virtual DiagState_t GetState () const
Get state method.
virtual void SetState (DiagState_t state)
Set state method.
virtual void SetStatusMsg (const char* msg)
Set state message method.
virtual Bool_t IsRunning () const
Is running method.
virtual Bool_t ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2)
Process message method.
virtual Bool_t ProcessMenu (Long_t parm1, Long_t)
Process menu method.
virtual Bool_t ProcessButton (Long_t parm1, Long_t)
Process button method.
virtual Bool_t ProcessStatus (Long_t parm1, Long_t)
Process status method.
virtual Bool_t ProcessNotify (Long_t parm1, Long_t parm2)
Process notification method.
virtual Bool_t HandleTimer (TTimer* timer)
Heartbeat method.
virtual Bool_t Notification (const char* msg)
Notify method.

Protected Fields

basic_commandline* fCmdLine
Pointer to command line interpreter
TestParam_t* fParam
Test parameters
char* fMeasChannelList
List of measurement channels
char* fExcChannelList
List of excitation channels
ligogui::PlotSet* fPlot
Plot set
TString fFilename
File name
Int_t fFileSaveFlag
File save flag
Int_t fFileRestoreFlag
File restore flag
Bool_t fSettingsSaveFlag
Settings save flag
Bool_t fSettingsRestoreFlag
Settings restore flag
Bool_t fCalibrationSaveFlag
Calibration save flag
Bool_t fCalibrationRestoreFlag
Calibration restore flag
DiagState_t fState
State of the diagnostics kernel
Int_t fCurMeasurement
current iteration/measurement number (while running)
Int_t fNewMeasurement
true if the next test result belongs to a new measurement
Int_t fCurAverage
current average number (while running)
TString fStatusMsg
last status message
TTimer* fHeartbeat
Heartbeat timer
NotificationList* fNotifyMsgs
Notification messages
ligogui::OptionAll_t** fStoreOptions
List of stored options
static const Int_t fStoreOptionsMax
Size of stored options list
ligogui::TLGPrintParam* fPrintDef
Printing defaults
ligogui::ImportOption_t* fImportDef
Import option defaults
ligogui::ExportOption_t* fExportDef
Export option defaults
ligogui::ReferenceTraceList_t* fRefTraces
List of reference traces
ligogui::MathTable_t* fMathTable
Math function table
ligogui::CalibrationTable* fCalTable
Calibration table
ligogui::TLGMultiPad::ResetPlotPads* fReset
reset plot settings
TGMenuBar* fMenuBar
Menu bar
TGPopupMenu* fMenuFile
File menu
TGPopupMenu* fMenuFileFlag [2]
Save/restore flag submenu
TGPopupMenu* fMenuFilePrintGraph
File print graph submenu
TGPopupMenu* fMenuEdit
Edit menu
TGPopupMenu* fMenuEditCopyGraph
Edit copy graph submenu
TGPopupMenu* fMenuMeas
Measurement menu
TGPopupMenu* fMenuPlot
Plot menu
TGPopupMenu* fMenuWindow
Window menu
TGPopupMenu* fMenuWindowZoom
Zoom window submenu
TGPopupMenu* fMenuWindowActive
Active window submenu
TGPopupMenu* fMenuHelp
Help menu
TGLayoutHints* fMenuBarLayout
Menu bar layout hint
TGLayoutHints* fMenuBarItemLayout
Menu items layout hint
TGLayoutHints* fMenuBarHelpLayout
Menu help item layout hint
TGButton* fStart
Start button
TGButton* fAbort
Abort button
TGButton* fPause
Pause button
TGButton* fResume
Resume button
TGStatusBar* fStatus
Status bar
TGLayoutHints* fStatusBarLayout
Status bar layout hint
static Cursor_t fWaitCursor
Busy cursor

Protected Methods

virtual Bool_t ReadParam ()
Read measurement parameters.
virtual Bool_t WriteParam ()
Write measurement parameters.

Documentation

Diagnostics main window. This is the main window of the diagnostics tools. It implements a menu, a status bar, a series of buttons and the main tab control center.

basic_commandline* fCmdLine
Pointer to command line interpreter

TestParam_t* fParam
Test parameters

char* fMeasChannelList
List of measurement channels

char* fExcChannelList
List of excitation channels

ligogui::PlotSet* fPlot
Plot set

TString fFilename
File name

Int_t fFileSaveFlag
File save flag

Int_t fFileRestoreFlag
File restore flag

Bool_t fSettingsSaveFlag
Settings save flag

Bool_t fSettingsRestoreFlag
Settings restore flag

Bool_t fCalibrationSaveFlag
Calibration save flag

Bool_t fCalibrationRestoreFlag
Calibration restore flag

DiagState_t fState
State of the diagnostics kernel

Int_t fCurMeasurement
current iteration/measurement number (while running)

Int_t fNewMeasurement
true if the next test result belongs to a new measurement

Int_t fCurAverage
current average number (while running)

TString fStatusMsg
last status message

TTimer* fHeartbeat
Heartbeat timer

NotificationList* fNotifyMsgs
Notification messages

ligogui::OptionAll_t** fStoreOptions
List of stored options

static const Int_t fStoreOptionsMax
Size of stored options list

ligogui::TLGPrintParam* fPrintDef
Printing defaults

ligogui::ImportOption_t* fImportDef
Import option defaults

ligogui::ExportOption_t* fExportDef
Export option defaults

ligogui::ReferenceTraceList_t* fRefTraces
List of reference traces

ligogui::MathTable_t* fMathTable
Math function table

ligogui::CalibrationTable* fCalTable
Calibration table

ligogui::TLGMultiPad::ResetPlotPads* fReset
reset plot settings

TGMenuBar* fMenuBar
Menu bar

TGPopupMenu* fMenuFile
File menu

TGPopupMenu* fMenuFileFlag[2]
Save/restore flag submenu

TGPopupMenu* fMenuFilePrintGraph
File print graph submenu

TGPopupMenu* fMenuEdit
Edit menu

TGPopupMenu* fMenuEditCopyGraph
Edit copy graph submenu

TGPopupMenu* fMenuMeas
Measurement menu

TGPopupMenu* fMenuPlot
Plot menu

TGPopupMenu* fMenuWindow
Window menu

TGPopupMenu* fMenuWindowZoom
Zoom window submenu

TGPopupMenu* fMenuWindowActive
Active window submenu

TGPopupMenu* fMenuHelp
Help menu

TGLayoutHints* fMenuBarLayout
Menu bar layout hint

TGLayoutHints* fMenuBarItemLayout
Menu items layout hint

TGLayoutHints* fMenuBarHelpLayout
Menu help item layout hint

TGButton* fStart
Start button

TGButton* fAbort
Abort button

TGButton* fPause
Pause button

TGButton* fResume
Resume button

TGStatusBar* fStatus
Status bar

TGLayoutHints* fStatusBarLayout
Status bar layout hint

static Cursor_t fWaitCursor
Busy cursor

virtual Bool_t ReadParam()
Read parameters from diagnostics kernel.
Returns:
true if successful
Parameters:
id - Measurement type

virtual Bool_t WriteParam()
Write parameters to diagnostics kernel.
Returns:
true if successful
Parameters:
id - Measurement type

DiagMainWindow(const TGWindow *p, basic_commandline* cmdline, Int_t meastype = 0, const char* filename = 0)
Constructs a main diagnostics window. Supported measurement types: 0 - FFT, 1 - Swept sine, 2 - Sine response, 3 - Triggered time series
Parameters:
p - Parent window
cmdline - Pointer to command line
meastype - Default measurement type

virtual ~DiagMainWindow()
Destructs the main diagnostics window.

virtual void CloseWindow()
Close the main window and exit the program.
Returns:
void

virtual Bool_t UpdatePlot(Int_t stepnum = -1, Bool_t updatePads = kTRUE)
Update plot method.
Returns:
true if successful
Parameters:
stepnum - Step number to update

virtual Bool_t AddOtherData()
Add other data. Add reference traces, auxiliary data and raw data objects.
Returns:
true if successful

virtual Bool_t UpdateData()
Update data. This method updates the data in the diagnostics kernel for all 'dirty' plot descriptors in the plot set.
Returns:
true if successful

virtual Bool_t SaveCalibrationData()
Save calibration method.
Returns:
true if successful

virtual Bool_t RestoreCalibrationData()
Restore calibration method.
Returns:
true if successful

virtual void ShowDefaultPlot(Bool_t updatePads = kTRUE, ligogui::TLGMultiPad* mpads = 0)
Show the default plot for the current measurement type.
Returns:
void
Parameters:
updatePads - if true update plot pads

virtual Int_t GetMeasurementType() const
Returns the currently selected measurement type in the diagnostics kernel.
Returns:
0 - FFT, 1 - Swept sine, 2 - Sine response, 3 - Triggered time series, -1 Unknown

virtual Bool_t SetMeasurementType(Int_t type)
Sets a new measurement type in the diagnostics kernel.
Returns:
true if changed from before
Parameters:
type - : 0 - FFT, 1 - Swept sine, 2 - Sine response, 3 - Triggered time series, -1 Unknown

virtual Bool_t ClearResults(Bool_t askfirst = kFALSE, Bool_t all = kTRUE)
Remove results from plot set. If askfirst is true a popup dialog box will ask the user and only change clear results if the user confirms.
Returns:
true if results were removed
Parameters:
askfirst - Ask the user before removing
all - clear all traces including references

virtual Bool_t TransferParameters(Bool_t toGUI = kTRUE, Bool_t newparam = kFALSE)
Transferes parameter between GUI (data structure) and diagnostics kernel.
Returns:
true if successful
Parameters:
toGUI - if true read from kernel, otherwise write
newparam - If false parameters are not read from kernel when transferring to the GUI

virtual Bool_t TransferPlotSettings(Bool_t toGUI, Int_t index1, Int_t index2, ligogui::OptionAll_t* pset)
Transferes plot settings between GUI (data structure) and diagnostics kernel.
Returns:
true if successful
Parameters:
toGUI - if true read from kernel, otherwise write
index1 - first index of plot settings
index2 - second index of plot settings
opt - plot settings

virtual Bool_t TransferCalibrationSettings(Bool_t toGUI, Int_t index, calrec_t* cal)
Transferes calibration settings between GUI (data structure) and diagnostics kernel.
Returns:
true if successful
Parameters:
toGUI - if true read from kernel, otherwise write
index - index of calibration record
cal - calibration record

virtual Bool_t SavePlotSettings()
Saves the plot settings of all currently open plot pads.
Returns:
true if successful

virtual Bool_t ShowPlots()
Shows the plots with the settings which were previously saved. This function will create plot windows as necessary.
Returns:
true if successful

virtual DiagState_t GetState() const
Get state. This method will returns the state flag for the diagnostics kernel.
Returns:
test state

virtual void SetState(DiagState_t state)
Set state. This method will set the state flag for the diagnostics kernel. (It will not change the state itself!)
Parameters:
state - New test state

virtual void SetStatusMsg(const char* msg)
Set status message. This method will set the message string in status bar.
Parameters:
msg - message string

virtual Bool_t IsRunning() const
Returns true if a test is running.
Returns:
true if test is running

virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process message method.
Returns:
true if successful
Parameters:
msg - Message id
parm1 - First message parameter
parm2 - Second message parameter

virtual Bool_t ProcessMenu(Long_t parm1, Long_t)
Process menu method.
Returns:
true if successful
Parameters:
parm1 - First message parameter
parm2 - Second message parameter

virtual Bool_t ProcessButton(Long_t parm1, Long_t)
Process button method.
Returns:
true if successful
Parameters:
parm1 - First message parameter
parm2 - Second message parameter

virtual Bool_t ProcessStatus(Long_t parm1, Long_t)
Process status method.
Returns:
true if successful
Parameters:
parm1 - First message parameter
parm2 - Second message parameter

virtual Bool_t ProcessNotify(Long_t parm1, Long_t parm2)
Process notification method.
Returns:
true if successful
Parameters:
parm1 - First message parameter
parm2 - Second message parameter

virtual Bool_t HandleTimer(TTimer* timer)
Heartbeat timer handler.
Returns:
true if successful
Parameters:
timer - Timer

virtual Bool_t Notification(const char* msg)
This method is called by the diagnostics kernel to notify the GUI interface.
Returns:
true if successful
Parameters:
msg - Notification mssage


This class has no child classes.
Author:
Written November 1999 by Daniel Sigg
Version:
1.0

alphabetic index hierarchy of classes


Please send questions and comments to sigg_d@ligo-wa.caltech.edu


generated by doc++