CustusX  22.04-rc5
An IGT application
cxTemporalCalibrationWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 #ifndef CXTEMPORALCALIBRATIONWIDGET_H_
12 #define CXTEMPORALCALIBRATIONWIDGET_H_
13 
14 #include "org_custusx_calibration_Export.h"
15 
16 #include "cxBaseWidget.h"
17 #include "cxRecordSessionWidget.h"
18 #include <QFuture>
19 #include <QFutureWatcher>
20 #include "cxFileSelectWidget.h"
21 #include <cxTemporalCalibration.h>
22 #include "cxUSAcqusitionWidget.h"
23 
24 namespace cx
25 {
26 typedef boost::shared_ptr<class VisServices> VisServicesPtr;
27 
37 class org_custusx_calibration_EXPORT TemporalCalibrationWidget : public BaseWidget
38 {
39  Q_OBJECT
40 public:
41  TemporalCalibrationWidget(VisServicesPtr services, AcquisitionServicePtr acquisitionService, QWidget* parent);
42  virtual ~TemporalCalibrationWidget();
43 
44 private slots:
45  void patientChangedSlot();
46  void selectData(QString filename);
47  void calibrateSlot();
48 
49 protected:
50  void showEvent(QShowEvent* event);
51 private:
52  TemporalCalibrationPtr mAlgorithm;
53 
54  VisServicesPtr mServices;
55  FileSelectWidget* mFileSelectWidget;
56  QLineEdit* mResult;
57  QCheckBox* mVerbose;
58  RecordSessionWidget* mRecordSessionWidget;
59  QLabel* mInfoLabel;
60 };
61 
62 
66 }
67 
68 #endif /* CXTEMPORALCALIBRATIONWIDGET_H_ */
boost::shared_ptr< class AcquisitionService > AcquisitionServicePtr
boost::shared_ptr< class VisServices > VisServicesPtr
Definition: cxMainWindow.h:40
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
boost::shared_ptr< TemporalCalibration > TemporalCalibrationPtr
Widget for displaying and selecting a single file.
Namespace for all CustusX production code.