Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxManualImage2ImageRegistrationWidget.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 
12 #ifndef CXMANUALIMAGE2IMAGEREGISTRATIONWIDGET_H
13 #define CXMANUALIMAGE2IMAGEREGISTRATIONWIDGET_H
14 
15 #include "org_custusx_registration_method_manual_Export.h"
17 
18 class QLabel;
19 
20 namespace cx
21 {
22 
34 class org_custusx_registration_method_manual_EXPORT ManualImage2ImageRegistrationWidget : public ManualImageRegistrationWidget
35 {
36 public:
37  ManualImage2ImageRegistrationWidget(RegServicesPtr services, QWidget* parent, QString objectName);
38  virtual QString getDescription();
39  virtual Transform3D getMatrixFromBackend();
40  virtual void setMatrixFromWidget(Transform3D M);
41 
42  bool isValid() const;
43  double getAverageAccuracy(int& numActiveLandmarks);
44 
45 private:
46  QLabel* mAvarageAccuracyLabel;
47 
48  void updateAverageAccuracyLabel();
49  double getAccuracy(QString uid);
50  bool isAverageAccuracyValid(int& numberOfActiveLandmarks);
51 
52 };
53 
54 } //cx
55 
56 #endif // CXMANUALIMAGE2IMAGEREGISTRATIONWIDGET_H
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class RegServices > RegServicesPtr
Definition: cxRegServices.h:20
Namespace for all CustusX production code.