CustusX  22.04-rc5
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
64  ActiveToolProxyPtr mActiveToolProxy;
65 
66 private slots:
67  void globalConfigurationFileChangedSlot(QString key);
68 private:
70 };
71 
72 } //cx
73 
74 #endif // CXPATIENTLANDMARKSWIDGET_H
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
Widget used as a tab in the ContexDockWidget for patient registration.
boost::shared_ptr< class RegServices > RegServicesPtr
Definition: cxRegServices.h:20
boost::shared_ptr< class ActiveToolProxy > ActiveToolProxyPtr
Definition: cxStatusBar.h:32
QPushButton * mToolSampleButton
the Sample Tool button
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
Definition: cxVector3D.h:42
std::map< QString, class Landmark > LandmarkMap
Namespace for all CustusX production code.