CustusX  22.04
An IGT application
cxManualPatientRegistrationWidget.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 CXMANUALPATIENTREGISTRATIONWIDGET_H
13 #define CXMANUALPATIENTREGISTRATIONWIDGET_H
14 
16 #include "cxPatientModelService.h"
17 
18 namespace cx
19 {
20 
34 {
35 Q_OBJECT
36 public:
37 ManualPatientRegistrationWidget(RegServicesPtr services, QWidget* parent, QString objectName);
39  {
40  }
41 protected:
42  void showEvent(QShowEvent *event);
44 
45 private slots:
46  void matrixWidgetChanged();
47  void patientMatrixChanged();
48 
49 private:
50  QString getDescription();
51  bool isValid() const;
52  Transform3D getMatrixFromBackend();
53  void setMatrixFromWidget(Transform3D M);
54 
55  QVBoxLayout* mVerticalLayout;
56  QLabel* mLabel;
57  Transform3DWidget* mMatrixWidget;
58 };
59 } //cx
60 #endif // CXMANUALPATIENTREGISTRATIONWIDGET_H
Widget for displaying and manipulating an affine matrix, i.e. a rotation+translation matrix...
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class RegServices > RegServicesPtr
Definition: cxRegServices.h:20
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
ManualPatientRegistrationWidget(RegServicesPtr services, QWidget *parent, QString objectName)
Namespace for all CustusX production code.