Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkFiducialRegistrationWidget.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef _QmitkFiducialRegistrationWidget_H_INCLUDED
18 #define _QmitkFiducialRegistrationWidget_H_INCLUDED
19 
20 #include "ui_QmitkFiducialRegistrationWidget.h"
21 #include "QmitkStdMultiWidget.h"
22 #include "MitkIGTUIExports.h"
23 #include "mitkNavigationData.h"
38 class MITKIGTUI_EXPORT QmitkFiducialRegistrationWidget : public QWidget
39 {
40  Q_OBJECT // this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
41 public:
42 
43  QmitkFiducialRegistrationWidget(QWidget* parent);
45 
47  void setImageNode(mitk::DataNode::Pointer i);
48 
50  void setTrackerNavigationData(mitk::NavigationData::Pointer t);
51 
55  void setDataStorage(mitk::DataStorage::Pointer d);
56 
63  {
65  LANDMARKMODE
66  };
67 
73  void SetWidgetAppearanceMode(WidgetAppearanceMode widgetMode);
74 
75  void SetMultiWidget(QmitkStdMultiWidget* multiWidget);
76  void AddSliceNavigationController(mitk::SliceNavigationController* snc);
77  void SetImageFiducialsNode(mitk::DataNode::Pointer imageFiducialsNode);
78  void SetTrackerFiducialsNode(mitk::DataNode::Pointer trackerFiducialsNode);
79  mitk::DataNode::Pointer GetImageFiducialsNode();
80  mitk::DataNode::Pointer GetTrackerFiducialsNode();
81  void SetQualityDisplayText(QString text);
82 
88  void SetSourceLandmarkName(QString sourceLandmarkName);
89 
95  void SetTargetLandmarkName(QString targetLandmarkName);
96 
97  bool UseICPIsChecked();
98  void HideStaticRegistrationRadioButton(bool on);
99  void HideContinousRegistrationRadioButton(bool on);
100  void HideFiducialRegistrationGroupBox();
101  void HideUseICPRegistrationCheckbox(bool on);
102  void HideImageFiducialButton(bool on);
103  void HideTrackingFiducialButton(bool on);
104  void AdjustButtonSpacing();
105 
106  signals:
107  void AddedTrackingFiducial();
108  void AddedImageFiducial();
109  void PerformFiducialRegistration();
110  void FindFiducialCorrespondences(bool on);
111 
112  protected slots:
113  void DisableEditButtonRegistrationImagePoints(bool);
114  void DisableEditButtonRegistrationTrackingPoints(bool);
115  void AddTrackerPoint();
116  void Register();
117 
118 protected:
119 
120  void CreateQtPartControl(QWidget *parent);
121 
122  void CreateConnections();
123 
124  bool CheckRegistrationInitialization();
125 
126  Ui::QmitkFiducialRegistrationWidget* m_Controls;
134 
135 };
136 #endif // _QmitkFiducialRegistrationWidget_H_INCLUDED
itk::SmartPointer< Self > Pointer
WidgetAppearanceMode
enumeration to specify the appearance of the widget. 'FIDUCIALMODE' is likely to be used for (trackin...
Ui::QmitkFiducialRegistrationWidget * m_Controls
gui widget
Controls the selection of the slice the associated BaseRenderer will display.
IGT Fiducial Registration Widget.
mitk::NavigationData::Pointer m_TrackerNavigationData