NorMIT-nav  2023.01.05-dev+develop.0da12
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_ */
cx::RegistrationServicePtr
boost::shared_ptr< class RegistrationService > RegistrationServicePtr
Definition: cxRegistrationProperties.h:25
cx::Transform3DWidget
Widget for displaying and manipulating an affine matrix, i.e. a rotation+translation matrix.
Definition: cxTransform3DWidget.h:38
cxBaseWidget.h
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::BaseWidget
Interface for QWidget which handles widgets uniformly for the system.
Definition: cxBaseWidget.h:88
cxRegistrationMethodService.h
cx::ManualImageRegistrationWidget::mConnectedMovingImage
DataPtr mConnectedMovingImage
Definition: cxManualRegistrationWidget.h:52
cx::Transform3D
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
Definition: cxLandmarkPatientRegistrationWidget.h:33
cx::PatientModelServicePtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Definition: cxLogicManager.h:25
cx::ManualImageRegistrationWidget::~ManualImageRegistrationWidget
virtual ~ManualImageRegistrationWidget()
Definition: cxManualRegistrationWidget.h:48
cx::DataPtr
boost::shared_ptr< class Data > DataPtr
Definition: cxRegistrationApplicator.h:22
cx::ManualImageRegistrationWidget::mServices
RegServicesPtr mServices
Definition: cxManualRegistrationWidget.h:54
cx::ManualImageRegistrationWidget::mVerticalLayout
QVBoxLayout * mVerticalLayout
Definition: cxManualRegistrationWidget.h:53
cx::RegServicesPtr
boost::shared_ptr< class RegServices > RegServicesPtr
Definition: cxRegServices.h:20
cx::ManualImageRegistrationWidget
Definition: cxManualRegistrationWidget.h:43
cxTransform3D.h