Medical Imaging Interaction Toolkit  2023.04.00
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkFiducialRegistrationWidget_h
14 #define QmitkFiducialRegistrationWidget_h
15 
16 #include "ui_QmitkFiducialRegistrationWidget.h"
18 #include "MitkIGTUIExports.h"
19 #include "mitkNavigationData.h"
34 class MITKIGTUI_EXPORT QmitkFiducialRegistrationWidget : public QWidget
35 {
36  Q_OBJECT // this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
37 public:
38 
39  QmitkFiducialRegistrationWidget(QWidget* parent);
41 
43  void setImageNode(mitk::DataNode::Pointer i);
44 
46  void setTrackerNavigationData(mitk::NavigationData::Pointer t);
47 
51  void setDataStorage(mitk::DataStorage::Pointer d);
52 
59  {
61  LANDMARKMODE
62  };
63 
69  void SetWidgetAppearanceMode(WidgetAppearanceMode widgetMode);
70 
71  void SetMultiWidget(QmitkAbstractMultiWidget* multiWidget);
72  void AddSliceNavigationController(mitk::SliceNavigationController* snc);
73  void SetImageFiducialsNode(mitk::DataNode::Pointer imageFiducialsNode);
74  void SetTrackerFiducialsNode(mitk::DataNode::Pointer trackerFiducialsNode);
75  mitk::DataNode::Pointer GetImageFiducialsNode();
76  mitk::DataNode::Pointer GetTrackerFiducialsNode();
77  void SetQualityDisplayText(QString text);
78 
84  void SetSourceLandmarkName(QString sourceLandmarkName);
85 
91  void SetTargetLandmarkName(QString targetLandmarkName);
92 
93  bool UseICPIsChecked();
94  void HideStaticRegistrationRadioButton(bool on);
95  void HideContinousRegistrationRadioButton(bool on);
96  void HideFiducialRegistrationGroupBox();
97  void HideUseICPRegistrationCheckbox(bool on);
98  void HideImageFiducialButton(bool on);
99  void HideTrackingFiducialButton(bool on);
100  void AdjustButtonSpacing();
101 
102  signals:
103  void AddedTrackingFiducial();
104  void AddedImageFiducial();
105  void PerformFiducialRegistration();
106  void FindFiducialCorrespondences(bool on);
107 
108  protected slots:
109  void DisableEditButtonRegistrationImagePoints(bool);
110  void DisableEditButtonRegistrationTrackingPoints(bool);
111  void AddTrackerPoint();
112  void Register();
113 
114 protected:
115 
116  void CreateQtPartControl(QWidget *parent);
117 
118  void CreateConnections();
119 
120  bool CheckRegistrationInitialization();
121 
122  Ui::QmitkFiducialRegistrationWidget* m_Controls;
127  mitk::NavigationData::Pointer m_TrackerNavigationData;
129  mitk::NavigationData::Pointer m_T_ObjectReg;
130 
131 };
132 #endif
QmitkFiducialRegistrationWidget::m_ImageFiducialsNode
mitk::DataNode::Pointer m_ImageFiducialsNode
Definition: QmitkFiducialRegistrationWidget.h:124
mitkNavigationData.h
itk::SmartPointer< Self >
QmitkFiducialRegistrationWidget::m_DataStorage
mitk::DataStorage::Pointer m_DataStorage
Definition: QmitkFiducialRegistrationWidget.h:126
QmitkFiducialRegistrationWidget::m_TrackerNavigationData
mitk::NavigationData::Pointer m_TrackerNavigationData
Definition: QmitkFiducialRegistrationWidget.h:127
QmitkFiducialRegistrationWidget::FIDUCIALMODE
@ FIDUCIALMODE
Definition: QmitkFiducialRegistrationWidget.h:60
mitk::SliceNavigationController
Controls the selection of the slice the associated BaseRenderer will display.
Definition: mitkSliceNavigationController.h:132
QmitkFiducialRegistrationWidget::WidgetAppearanceMode
WidgetAppearanceMode
enumeration to specify the appearance of the widget. 'FIDUCIALMODE' is likely to be used for (trackin...
Definition: QmitkFiducialRegistrationWidget.h:58
QmitkFiducialRegistrationWidget::m_MultiWidget
QmitkAbstractMultiWidget * m_MultiWidget
Definition: QmitkFiducialRegistrationWidget.h:123
QmitkFiducialRegistrationWidget
IGT Fiducial Registration Widget.
Definition: QmitkFiducialRegistrationWidget.h:34
QmitkAbstractMultiWidget.h
QmitkFiducialRegistrationWidget::m_TrackerFiducialsNode
mitk::DataNode::Pointer m_TrackerFiducialsNode
Definition: QmitkFiducialRegistrationWidget.h:125
QmitkFiducialRegistrationWidget::m_Controls
Ui::QmitkFiducialRegistrationWidget * m_Controls
gui widget
Definition: QmitkFiducialRegistrationWidget.h:122
QmitkFiducialRegistrationWidget::m_T_ObjectReg
mitk::NavigationData::Pointer m_T_ObjectReg
Definition: QmitkFiducialRegistrationWidget.h:129
QmitkFiducialRegistrationWidget::m_ImageNode
mitk::DataNode::Pointer m_ImageNode
Definition: QmitkFiducialRegistrationWidget.h:128
QmitkAbstractMultiWidget
The 'QmitkAbstractMultiWidget' is a 'QWidget' that can be subclassed to display multiple render windo...
Definition: QmitkAbstractMultiWidget.h:53