Class CalibrationControlWindow
Defined in File CalibrationControlWindow.h
Inheritance Relationships
Base Type
public QMainWindow
Class Documentation
-
class CalibrationControlWindow : public QMainWindow
Main control window of all calibration GUIs.
This holds the push buttons to add or remove an observation, to finalize and visualize the calibration. It also hold useful meta information to the calibration, as well as the text box in which the ROS log message appear.
Public Functions
-
CalibrationControlWindow(QWidget *parent = nullptr)
Constructor.
-
~CalibrationControlWindow()
Destructor.
-
void attachPlacementGuidanceDialog(QDialog *pDialog, Qt::CheckState buttonInitialCheckState = Qt::Checked)
Method to attach placement guidance dialog to the window and connect the corresponding display buttons to the dialog visibility state.
- Parameters:
pDialog – [in] Pointer to the dialog object that is to be attached.
buttonInitialCheckState – [in] Initial check state of push button.
-
void attachReferenceDialog(QDialog *pDialog, Qt::CheckState buttonInitialCheckState = Qt::Checked)
Method to attach dialog for the reference data to the window and connect the corresponding display buttons to the dialog visibility state.
- Parameters:
pDialog – [in] Pointer to the dialog object that is to be attached.
buttonInitialCheckState – [in] Initial check state of push button.
-
void attachSourceDialog(QDialog *pDialog, Qt::CheckState buttonInitialCheckState = Qt::Checked)
Method to attach dialog for the source data to the window and connect the corresponding display buttons to the dialog visibility state.
- Parameters:
pDialog – [in] Pointer to the dialog object that is to be attached.
buttonInitialCheckState – [in] Initial check state of push button.
-
void clearLogMessages()
Method to clear log messages.
-
void closeEvent(QCloseEvent *closeEvent) override
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
-
void showEvent(QShowEvent *showEvent) override
-
QAction *actionResetCalibrationPtr()
Get pointer to action to reset calibration.
-
QAction *actionOpenPreferencesPtr()
Get pointer to action to open preferences.
-
QAction *actionOpenCalibWsPtr()
Get pointer to action to open robot workspace.
-
QAction *actionOpenRobotWsPtr()
Get pointer to action to open robot workspace.
-
QAction *actionAddObservationPtr()
Get pointer to action to add observation.
-
QAction *actionImportObservationPtr()
Get pointer to import to add observation.
-
QPushButton *pbCaptureTargetPtr()
Get pointer to push button to trigger capturing of target.
-
QPushButton *pbFinalizeCalibrationPtr()
Get pointer to push button to finalize calibration.
-
QPushButton *pbRemoveObservationPtr()
Get pointer to push button to remove observation.
-
QPushButton *pbVisCalibrationPtr()
Get pointer to push button to handle calibration visualization.
Callback method to print log message in log text edit.
- Parameters:
pLogMsg – [in] Pointer to log message.
-
CalibrationControlWindow(QWidget *parent = nullptr)