NorMIT-nav  22.09
An IGT application
cxLandmarkPatientRegistrationWidget.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 CXLANDMARKPATIENTREGISTRATIONWIDGET_H_
13 #define CXLANDMARKPATIENTREGISTRATIONWIDGET_H_
14 
17 
18 #include "cxImage.h"
19 #include "cxTransform3D.h"
20 
21 class QVBoxLayout;
22 class QComboBox;
23 class QTableWidget;
24 class QPushButton;
25 class QString;
26 class QLabel;
27 class QSlider;
28 class QGridLayout;
29 class QSpinBox;
30 
31 namespace cx
32 {
34 
43 {
44 Q_OBJECT
45 
46 public:
47  LandmarkPatientRegistrationWidget(RegServicesPtr services, QWidget* parent, QString objectName, QString windowTitle);
48 
49 protected slots:
50  void registerSlot();
51 // virtual void fixedDataChanged(); ///< listens to the datamanager for when the active image is changed
52 
53 protected:
54  virtual void showEvent(QShowEvent* event);
55  virtual void hideEvent(QHideEvent* event);
56  virtual LandmarkMap getTargetLandmarks() const;
57  virtual Transform3D getTargetTransform() const;
58  virtual void setTargetLandmark(QString uid, Vector3D p_target);
59  virtual QString getTargetName() const;
60  virtual void performRegistration();
61 
62 private:
63  QPushButton* mRegisterButton;
64 
66 };
67 
68 
72 }//namespace cx
73 
74 #endif /* CXLANDMARKPATIENTREGISTRATIONWIDGET_H_ */
cx::LandmarkRegistrationWidget
Definition: cxLandmarkRegistrationWidget.h:45
cx::LandmarkPatientRegistrationWidget::hideEvent
virtual void hideEvent(QHideEvent *event)
Definition: cxLandmarkPatientRegistrationWidget.cpp:74
cx::LandmarkPatientRegistrationWidget::getTargetLandmarks
virtual LandmarkMap getTargetLandmarks() const
Definition: cxLandmarkPatientRegistrationWidget.cpp:97
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxImage.h
cx::LandmarkPatientRegistrationWidget::getTargetTransform
virtual Transform3D getTargetTransform() const
Return transform from target space to reference space.
Definition: cxLandmarkPatientRegistrationWidget.cpp:102
cx::LandmarkPatientRegistrationWidget::performRegistration
virtual void performRegistration()
Definition: cxLandmarkPatientRegistrationWidget.cpp:81
cx::LandmarkMap
std::map< QString, class Landmark > LandmarkMap
Definition: cxLandmarkRegistrationWidget.h:31
cx::StringPropertyRegistrationFixedImagePtr
boost::shared_ptr< class StringPropertyRegistrationFixedImage > StringPropertyRegistrationFixedImagePtr
Definition: cxRegistrationProperties.h:28
cx::Transform3D
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
Definition: cxLandmarkPatientRegistrationWidget.h:33
cx::LandmarkPatientRegistrationWidget::registerSlot
void registerSlot()
Definition: cxLandmarkPatientRegistrationWidget.cpp:62
cx::LandmarkPatientRegistrationWidget::showEvent
virtual void showEvent(QShowEvent *event)
updates internal info before showing the widget
Definition: cxLandmarkPatientRegistrationWidget.cpp:67
cx::LandmarkPatientRegistrationWidget
Definition: cxLandmarkPatientRegistrationWidget.h:42
cx::RegServicesPtr
boost::shared_ptr< class RegServices > RegServicesPtr
Definition: cxRegServices.h:20
cx::LandmarkPatientRegistrationWidget::setTargetLandmark
virtual void setTargetLandmark(QString uid, Vector3D p_target)
Definition: cxLandmarkPatientRegistrationWidget.cpp:108
cxRegistrationProperties.h
cxLandmarkRegistrationWidget.h
cx::LandmarkPatientRegistrationWidget::LandmarkPatientRegistrationWidget
LandmarkPatientRegistrationWidget(RegServicesPtr services, QWidget *parent, QString objectName, QString windowTitle)
Definition: cxLandmarkPatientRegistrationWidget.cpp:37
cxTransform3D.h
cx::Vector3D
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Definition: cxVector3D.h:42
cx::LandmarkPatientRegistrationWidget::getTargetName
virtual QString getTargetName() const
Definition: cxLandmarkPatientRegistrationWidget.cpp:114