Fraxinus  18.10
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 
48 protected:
49  virtual void showEvent(QShowEvent* event);
50  virtual void hideEvent(QHideEvent* event);
51  virtual void prePaintEvent();
52  virtual LandmarkMap getTargetLandmarks() const;
53  virtual Transform3D getTargetTransform() const;
54  virtual void setTargetLandmark(QString uid, Vector3D p_target);
55  virtual QString getTargetName() const;
56  virtual void performRegistration(); // no registration in this widget - only definition of pts.
57 
58  //gui
59  QPushButton* mToolSampleButton;
60  QPushButton* mRemoveLandmarkButton;
61 
62  //data
63  ActiveToolProxyPtr mActiveToolProxy;
64 
65 private slots:
66  void globalConfigurationFileChangedSlot(QString key);
67 private:
69 };
70 
71 } //cx
72 
73 #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.