NorMIT-nav  22.09
An IGT application
cxPatientLandMarksWidget.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 CXPATIENTLANDMARKSWIDGET_H
13 #define CXPATIENTLANDMARKSWIDGET_H
14 
16 #include "org_custusx_registration_method_landmark_Export.h"
17 
18 namespace cx
19 {
20 
21 typedef boost::shared_ptr<class ActiveToolProxy> ActiveToolProxyPtr;
22 
31 class org_custusx_registration_method_landmark_EXPORT PatientLandMarksWidget: public LandmarkRegistrationWidget
32 {
33 Q_OBJECT
34 
35 public:
36  PatientLandMarksWidget(RegServicesPtr services, QWidget* parent, QString objectName,
37  QString windowTitle);
38  virtual ~PatientLandMarksWidget();
39 
40 protected slots:
41 
42 // void registerSlot();
43  void toolSampleButtonClickedSlot();
44  virtual void cellClickedSlot(int row, int column);
45  void removeLandmarkButtonClickedSlot();
46  void updateToolSampleButton();
47  virtual void pointSampled(Vector3D p_r);
48 
49 protected:
50  virtual void showEvent(QShowEvent* event);
51  virtual void hideEvent(QHideEvent* event);
52  virtual void prePaintEvent();
53  virtual LandmarkMap getTargetLandmarks() const;
54  virtual Transform3D getTargetTransform() const;
55  virtual void setTargetLandmark(QString uid, Vector3D p_target);
56  virtual QString getTargetName() const;
57  virtual void performRegistration(); // no registration in this widget - only definition of pts.
58 
59  //gui
60  QPushButton* mToolSampleButton;
61  QPushButton* mRemoveLandmarkButton;
62 
63  //data
65 
66 private slots:
67  void globalConfigurationFileChangedSlot(QString key);
68 private:
70 };
71 
72 } //cx
73 
74 #endif // CXPATIENTLANDMARKSWIDGET_H
cx::LandmarkRegistrationWidget
Definition: cxLandmarkRegistrationWidget.h:45
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::LandmarkMap
std::map< QString, class Landmark > LandmarkMap
Definition: cxLandmarkRegistrationWidget.h:31
cx::ActiveToolProxyPtr
boost::shared_ptr< class ActiveToolProxy > ActiveToolProxyPtr
Definition: cxStatusBar.h:32
cx::PatientLandMarksWidget::mActiveToolProxy
ActiveToolProxyPtr mActiveToolProxy
Definition: cxPatientLandMarksWidget.h:64
cx::Transform3D
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
Definition: cxLandmarkPatientRegistrationWidget.h:33
cx::PatientLandMarksWidget::mRemoveLandmarkButton
QPushButton * mRemoveLandmarkButton
Definition: cxPatientLandMarksWidget.h:61
cx::RegServicesPtr
boost::shared_ptr< class RegServices > RegServicesPtr
Definition: cxRegServices.h:20
cx::PatientLandMarksWidget::mToolSampleButton
QPushButton * mToolSampleButton
the Sample Tool button
Definition: cxPatientLandMarksWidget.h:60
cxLandmarkRegistrationWidget.h
cx::PatientLandMarksWidget
Widget used as a tab in the ContexDockWidget for patient registration.
Definition: cxPatientLandMarksWidget.h:31
cx::Vector3D
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Definition: cxVector3D.h:42