MITK-IGT
IGT Extension of MITK
|
IGT Fiducial Registration Widget. More...
#include <QmitkFiducialRegistrationWidget.h>
Public Types | |
enum | WidgetAppearanceMode { FIDUCIALMODE , LANDMARKMODE } |
enumeration to specify the appearance of the widget. 'FIDUCIALMODE' is likely to be used for (tracking) fiducial based registration purposes 'LANDMARKMODE' can be used for any kind of landmark based registration (source landmarks -> target/reference landmarks) More... | |
Signals | |
void | AddedTrackingFiducial () |
signal if a world instrument position was added to a tracking space fiducial | |
void | AddedImageFiducial () |
signal if an image position was added to a image space fiducial | |
void | PerformFiducialRegistration () |
signal if all fiducial were added and registration can be performed | |
void | FindFiducialCorrespondences (bool on) |
signal if automatic correspondences search is toggled | |
Public Member Functions | |
QmitkFiducialRegistrationWidget (QWidget *parent) | |
~QmitkFiducialRegistrationWidget () override | |
void | setImageNode (mitk::DataNode::Pointer i) |
void | setTrackerNavigationData (mitk::NavigationData::Pointer t) |
void | setDataStorage (mitk::DataStorage::Pointer d) |
void | SetWidgetAppearanceMode (WidgetAppearanceMode widgetMode) |
set the appearance mode of this widget 'FIDUCIALMODE' adapts the widget for (tracking) fiducial based registration purposes 'LANDMARKMODE' adapts the widget for landmark based registration (source landmarks -> target/reference landmarks) | |
void | SetMultiWidget (QmitkAbstractMultiWidget *multiWidget) |
(Deprecated method. Multiwidget is not required any more.) Set the default MultiWidget (needed for the PointListwidget) | |
void | AddSliceNavigationController (mitk::SliceNavigationController *snc) |
add the slice navigation controller to be used to move the crosshair to the actual point position | |
void | SetImageFiducialsNode (mitk::DataNode::Pointer imageFiducialsNode) |
specify data tree node for the image fiducials | |
void | SetTrackerFiducialsNode (mitk::DataNode::Pointer trackerFiducialsNode) |
specify data tree node for the tracker fiducials | |
mitk::DataNode::Pointer | GetImageFiducialsNode () |
returns data tree node for the image fiducials | |
mitk::DataNode::Pointer | GetTrackerFiducialsNode () |
returns data tree node for the tracker fiducials | |
void | SetQualityDisplayText (QString text) |
sets specific text on the UI (useful to display FRE/TRE...) | |
void | SetSourceLandmarkName (QString sourceLandmarkName) |
Specify the name of the source landmarks. Will be used for label and button. | |
void | SetTargetLandmarkName (QString targetLandmarkName) |
Specify the name of the source landmarks. Will be used for label and button. | |
bool | UseICPIsChecked () |
returns true if automatic correspondences search is activated else false | |
void | HideStaticRegistrationRadioButton (bool on) |
show or hide "static Fiducial Registration" radio button in the UI | |
void | HideContinousRegistrationRadioButton (bool on) |
show or hide "hybrid continuous Fiducial Registration" radio button in the UI | |
void | HideFiducialRegistrationGroupBox () |
show or hide "Fiducial Registration method" groupbox in the UI, depending on the visibility of the radio buttons | |
void | HideUseICPRegistrationCheckbox (bool on) |
show or hide "Find fiducial correspondences (needs 6+ fiducial pairs)" check box in the UI | |
void | HideImageFiducialButton (bool on) |
show or hide "Add image fiducial" button in the UI | |
void | HideTrackingFiducialButton (bool on) |
show or hide "Add tracking fiducial" button in the UI | |
void | AdjustButtonSpacing () |
Rearrange spacing when buttons are turned on or off. | |
Protected Slots | |
void | DisableEditButtonRegistrationImagePoints (bool) |
Disables the edit button of the widget RegistrationImagePoints if the activated variable is true. | |
void | DisableEditButtonRegistrationTrackingPoints (bool) |
Disables the edit button of the widget RegistrationTrackingPoints if the activated variable is true. | |
void | AddTrackerPoint () |
void | Register () |
Protected Member Functions | |
void | CreateQtPartControl (QWidget *parent) |
void | CreateConnections () |
bool | CheckRegistrationInitialization () |
Protected Attributes | |
Ui::QmitkFiducialRegistrationWidget * | m_Controls |
gui widget | |
QmitkAbstractMultiWidget * | m_MultiWidget |
mitk::DataNode::Pointer | m_ImageFiducialsNode |
mitk::DataNode::Pointer | m_TrackerFiducialsNode |
mitk::DataStorage::Pointer | m_DataStorage |
mitk::NavigationData::Pointer | m_TrackerNavigationData |
mitk::DataNode::Pointer | m_ImageNode |
mitk::NavigationData::Pointer | m_T_ObjectReg |
IGT Fiducial Registration Widget.
Widget used to set fiducial landmarks in the image and to confirm the corresponding landmarks on the world object (patient/phantom).
The widget can add tracker fiducials and perform the registration internally. To enable this functionaltity the methods SetDataStorage(), setTrackerNavigationData() and setImageNode() needs to be called before.
If Registration should be handled from outside the class the methods SetImageFiducialsNode() and SetTrackerFiducialsNode() must be called, otherwise the QmitkPointListWidget can not work. If SetDataStorage() is not called the widget does nothing internally.
Definition at line 34 of file QmitkFiducialRegistrationWidget.h.
enumeration to specify the appearance of the widget. 'FIDUCIALMODE' is likely to be used for (tracking) fiducial based registration purposes 'LANDMARKMODE' can be used for any kind of landmark based registration (source landmarks -> target/reference landmarks)
Enumerator | |
---|---|
FIDUCIALMODE | |
LANDMARKMODE |
Definition at line 58 of file QmitkFiducialRegistrationWidget.h.
QmitkFiducialRegistrationWidget::QmitkFiducialRegistrationWidget | ( | QWidget * | parent | ) |
Definition at line 29 of file QmitkFiducialRegistrationWidget.cpp.
|
override |
Definition at line 36 of file QmitkFiducialRegistrationWidget.cpp.
|
signal |
signal if an image position was added to a image space fiducial
|
signal |
signal if a world instrument position was added to a tracking space fiducial
void QmitkFiducialRegistrationWidget::AddSliceNavigationController | ( | mitk::SliceNavigationController * | snc | ) |
add the slice navigation controller to be used to move the crosshair to the actual point position
Definition at line 171 of file QmitkFiducialRegistrationWidget.cpp.
|
protectedslot |
Definition at line 296 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::AdjustButtonSpacing | ( | ) |
Rearrange spacing when buttons are turned on or off.
Definition at line 229 of file QmitkFiducialRegistrationWidget.cpp.
|
protected |
Definition at line 304 of file QmitkFiducialRegistrationWidget.cpp.
|
protected |
Definition at line 68 of file QmitkFiducialRegistrationWidget.cpp.
|
protected |
Definition at line 49 of file QmitkFiducialRegistrationWidget.cpp.
|
protectedslot |
Disables the edit button of the widget RegistrationImagePoints if the activated variable is true.
Definition at line 82 of file QmitkFiducialRegistrationWidget.cpp.
|
protectedslot |
Disables the edit button of the widget RegistrationTrackingPoints if the activated variable is true.
Definition at line 86 of file QmitkFiducialRegistrationWidget.cpp.
|
signal |
signal if automatic correspondences search is toggled
mitk::DataNode::Pointer QmitkFiducialRegistrationWidget::GetImageFiducialsNode | ( | ) |
returns data tree node for the image fiducials
Definition at line 177 of file QmitkFiducialRegistrationWidget.cpp.
mitk::DataNode::Pointer QmitkFiducialRegistrationWidget::GetTrackerFiducialsNode | ( | ) |
returns data tree node for the tracker fiducials
Definition at line 182 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::HideContinousRegistrationRadioButton | ( | bool | on | ) |
show or hide "hybrid continuous Fiducial Registration" radio button in the UI
Definition at line 193 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::HideFiducialRegistrationGroupBox | ( | ) |
show or hide "Fiducial Registration method" groupbox in the UI, depending on the visibility of the radio buttons
Definition at line 199 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::HideImageFiducialButton | ( | bool | on | ) |
show or hide "Add image fiducial" button in the UI
Definition at line 216 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::HideStaticRegistrationRadioButton | ( | bool | on | ) |
show or hide "static Fiducial Registration" radio button in the UI
Definition at line 187 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::HideTrackingFiducialButton | ( | bool | on | ) |
show or hide "Add tracking fiducial" button in the UI
Definition at line 223 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::HideUseICPRegistrationCheckbox | ( | bool | on | ) |
show or hide "Find fiducial correspondences (needs 6+ fiducial pairs)" check box in the UI
Definition at line 211 of file QmitkFiducialRegistrationWidget.cpp.
|
signal |
signal if all fiducial were added and registration can be performed
|
protectedslot |
Definition at line 313 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::setDataStorage | ( | mitk::DataStorage::Pointer | d | ) |
Sets the data storage. This is required is the widget shoul add tracker points and perform registrations internally. When not setting the data storage the widget can still be used by reacting on the signals and do custom actions outside.
Definition at line 275 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::SetImageFiducialsNode | ( | mitk::DataNode::Pointer | imageFiducialsNode | ) |
specify data tree node for the image fiducials
Definition at line 134 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::setImageNode | ( | mitk::DataNode::Pointer | i | ) |
Adds the image node which is transformed after "register" is clicked.
Definition at line 265 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::SetMultiWidget | ( | QmitkAbstractMultiWidget * | multiWidget | ) |
(Deprecated method. Multiwidget is not required any more.) Set the default MultiWidget (needed for the PointListwidget)
Definition at line 166 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::SetQualityDisplayText | ( | QString | text | ) |
sets specific text on the UI (useful to display FRE/TRE...)
Definition at line 119 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::SetSourceLandmarkName | ( | QString | sourceLandmarkName | ) |
Specify the name of the source landmarks. Will be used for label and button.
Example: sourceLandmarkName="CT" will result in group box title "CT landmarks" and button text "Add CT landmark".
Definition at line 243 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::SetTargetLandmarkName | ( | QString | targetLandmarkName | ) |
Specify the name of the source landmarks. Will be used for label and button.
Example: targetLandmarkName="CT" will result in group box title "CT landmarks" and button text "Add CT landmark".
Definition at line 254 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::SetTrackerFiducialsNode | ( | mitk::DataNode::Pointer | trackerFiducialsNode | ) |
specify data tree node for the tracker fiducials
Definition at line 150 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::setTrackerNavigationData | ( | mitk::NavigationData::Pointer | t | ) |
Adds the tracker navigation data which is used when "add current instrument position" is clicked.
Definition at line 270 of file QmitkFiducialRegistrationWidget.cpp.
void QmitkFiducialRegistrationWidget::SetWidgetAppearanceMode | ( | WidgetAppearanceMode | widgetMode | ) |
set the appearance mode of this widget 'FIDUCIALMODE' adapts the widget for (tracking) fiducial based registration purposes 'LANDMARKMODE' adapts the widget for landmark based registration (source landmarks -> target/reference landmarks)
Definition at line 91 of file QmitkFiducialRegistrationWidget.cpp.
bool QmitkFiducialRegistrationWidget::UseICPIsChecked | ( | ) |
returns true if automatic correspondences search is activated else false
Definition at line 126 of file QmitkFiducialRegistrationWidget.cpp.
|
protected |
gui widget
Definition at line 122 of file QmitkFiducialRegistrationWidget.h.
|
protected |
Definition at line 126 of file QmitkFiducialRegistrationWidget.h.
|
protected |
Definition at line 124 of file QmitkFiducialRegistrationWidget.h.
|
protected |
Definition at line 128 of file QmitkFiducialRegistrationWidget.h.
|
protected |
Definition at line 123 of file QmitkFiducialRegistrationWidget.h.
|
protected |
Definition at line 129 of file QmitkFiducialRegistrationWidget.h.
|
protected |
Definition at line 125 of file QmitkFiducialRegistrationWidget.h.
|
protected |
Definition at line 127 of file QmitkFiducialRegistrationWidget.h.