CustusX  2021.09.21-dev+develop.e3cd0
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_ */
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
boost::shared_ptr< class StringPropertyRegistrationFixedImage > StringPropertyRegistrationFixedImagePtr
virtual Transform3D getTargetTransform() const
Return transform from target space to reference space.
boost::shared_ptr< class RegServices > RegServicesPtr
Definition: cxRegServices.h:20
LandmarkPatientRegistrationWidget(RegServicesPtr services, QWidget *parent, QString objectName, QString windowTitle)
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Definition: cxVector3D.h:42
std::map< QString, class Landmark > LandmarkMap
virtual void setTargetLandmark(QString uid, Vector3D p_target)
virtual void showEvent(QShowEvent *event)
updates internal info before showing the widget
Namespace for all CustusX production code.