MITK-IGT
IGT Extension of MITK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
QmitkFiducialRegistrationWidget.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef QmitkFiducialRegistrationWidget_h
14#define QmitkFiducialRegistrationWidget_h
15
16#include "ui_QmitkFiducialRegistrationWidget.h"
17#include "QmitkAbstractMultiWidget.h"
18#include "MitkIGTUIExports.h"
19#include "mitkNavigationData.h"
34class 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)
37public:
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:
107
108 protected slots:
109 void DisableEditButtonRegistrationImagePoints(bool);
110 void DisableEditButtonRegistrationTrackingPoints(bool);
111 void AddTrackerPoint();
112 void Register();
113
114protected:
115
116 void CreateQtPartControl(QWidget *parent);
117
118 void CreateConnections();
119
120 bool CheckRegistrationInitialization();
121
122 Ui::QmitkFiducialRegistrationWidget* m_Controls;
123 QmitkAbstractMultiWidget* m_MultiWidget;
124 mitk::DataNode::Pointer m_ImageFiducialsNode;
125 mitk::DataNode::Pointer m_TrackerFiducialsNode;
126 mitk::DataStorage::Pointer m_DataStorage;
127 mitk::NavigationData::Pointer m_TrackerNavigationData;
128 mitk::DataNode::Pointer m_ImageNode;
129 mitk::NavigationData::Pointer m_T_ObjectReg;
130
131};
132#endif
void AddedImageFiducial()
signal if an image position was added to a image space fiducial
mitk::NavigationData::Pointer m_TrackerNavigationData
Ui::QmitkFiducialRegistrationWidget * m_Controls
gui widget
void FindFiducialCorrespondences(bool on)
signal if automatic correspondences search is toggled
void AddedTrackingFiducial()
signal if a world instrument position was added to a tracking space fiducial
void PerformFiducialRegistration()
signal if all fiducial were added and registration can be performed
WidgetAppearanceMode
enumeration to specify the appearance of the widget. 'FIDUCIALMODE' is likely to be used for (trackin...