Fraxinus  18.10
An IGT application
cxManualRegistrationWidget.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 CXMANUALREGISTRATIONWIDGET_H_
13 #define CXMANUALREGISTRATIONWIDGET_H_
14 
15 #include "org_custusx_registration_method_manual_Export.h"
16 
17 #include "cxBaseWidget.h"
18 #include "cxTransform3D.h"
20 
21 class ctkPluginContext;
22 
23 namespace cx
24 {
25 class Transform3DWidget;
26 typedef boost::shared_ptr<class Data> DataPtr;
27 typedef boost::shared_ptr<class PatientModelService> PatientModelServicePtr;
28 typedef boost::shared_ptr<class RegistrationService> RegistrationServicePtr;
29 
30 //typedef boost::shared_ptr<class RegistrationManager> RegistrationManagerPtr;
31 
43 class org_custusx_registration_method_manual_EXPORT ManualImageRegistrationWidget: public BaseWidget
44 {
45 Q_OBJECT
46 public:
47  ManualImageRegistrationWidget(RegServicesPtr services, QWidget* parent, QString objectName, QString windowTitle);
49 
50 protected:
51  virtual void showEvent(QShowEvent* event);
53  QVBoxLayout* mVerticalLayout;
55 
56 private slots:
57  void matrixWidgetChanged();
58  void imageMatrixChanged();
59  void movingDataChanged();
60 
61 private:
62  virtual QString getDescription() = 0;
63  virtual Transform3D getMatrixFromBackend() = 0;
64  virtual void setMatrixFromWidget(Transform3D M) = 0;
65 
66  QLabel* mLabel;
67 
68  Transform3DWidget* mMatrixWidget;
69 };
70 
71 } /* namespace cx */
72 #endif /* CXMANUALREGISTRATIONWIDGET_H_ */
boost::shared_ptr< class RegistrationService > RegistrationServicePtr
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 Data > DataPtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
boost::shared_ptr< class RegServices > RegServicesPtr
Definition: cxRegServices.h:20
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
Namespace for all CustusX production code.