Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkFiducialRegistrationWidget Class Reference

IGT Fiducial Registration Widget. More...

#include <QmitkFiducialRegistrationWidget.h>

Inheritance diagram for QmitkFiducialRegistrationWidget:
Collaboration diagram for QmitkFiducialRegistrationWidget:

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 More...
 
void AddedImageFiducial ()
 signal if an image position was added to a image space fiducial More...
 
void PerformFiducialRegistration ()
 signal if all fiducial were added and registration can be performed More...
 
void FindFiducialCorrespondences (bool on)
 signal if automatic correspondences search is toggled More...
 

Public Member Functions

 QmitkFiducialRegistrationWidget (QWidget *parent)
 
virtual ~QmitkFiducialRegistrationWidget ()
 
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) More...
 
void SetMultiWidget (QmitkStdMultiWidget *multiWidget)
 (Deprecated method. Multiwidget is not required any more.) Set the default stdMultiWidget (needed for the PointListwidget) More...
 
void AddSliceNavigationController (mitk::SliceNavigationController *snc)
 add the slice navigation controller to be used to move the crosshair to the actual point position More...
 
void SetImageFiducialsNode (mitk::DataNode::Pointer imageFiducialsNode)
 specify data tree node for the image fiducials More...
 
void SetTrackerFiducialsNode (mitk::DataNode::Pointer trackerFiducialsNode)
 specify data tree node for the tracker fiducials More...
 
mitk::DataNode::Pointer GetImageFiducialsNode ()
 returns data tree node for the image fiducials More...
 
mitk::DataNode::Pointer GetTrackerFiducialsNode ()
 returns data tree node for the tracker fiducials More...
 
void SetQualityDisplayText (QString text)
 sets specific text on the UI (useful to display FRE/TRE...) More...
 
void SetSourceLandmarkName (QString sourceLandmarkName)
 Specify the name of the source landmarks. Will be used for label and button. More...
 
void SetTargetLandmarkName (QString targetLandmarkName)
 Specify the name of the source landmarks. Will be used for label and button. More...
 
bool UseICPIsChecked ()
 returns true if automatic correspondences search is activated else false More...
 
void HideStaticRegistrationRadioButton (bool on)
 show or hide "static Fiducial Registration" radio button in the UI More...
 
void HideContinousRegistrationRadioButton (bool on)
 show or hide "hybrid continuous Fiducial Registration" radio button in the UI More...
 
void HideFiducialRegistrationGroupBox ()
 show or hide "Fiducial Registration method" groupbox in the UI, depending on the visibility of the radio buttons More...
 
void HideUseICPRegistrationCheckbox (bool on)
 show or hide "Find fiducial correspondences (needs 6+ fiducial pairs)" check box in the UI More...
 
void HideImageFiducialButton (bool on)
 show or hide "Add image fiducial" button in the UI More...
 
void HideTrackingFiducialButton (bool on)
 show or hide "Add tracking fiducial" button in the UI More...
 
void AdjustButtonSpacing ()
 Rearrange spacing when buttons are turned on or off. More...
 

Protected Slots

void DisableEditButtonRegistrationImagePoints (bool)
 Disables the edit button of the widget RegistrationImagePoints if the activated variable is true. More...
 
void DisableEditButtonRegistrationTrackingPoints (bool)
 Disables the edit button of the widget RegistrationTrackingPoints if the activated variable is true. More...
 
void AddTrackerPoint ()
 
void Register ()
 

Protected Member Functions

void CreateQtPartControl (QWidget *parent)
 
void CreateConnections ()
 
bool CheckRegistrationInitialization ()
 

Protected Attributes

Ui::QmitkFiducialRegistrationWidget * m_Controls
 gui widget More...
 
QmitkStdMultiWidgetm_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
 

Detailed Description

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.

See also
IGT

Definition at line 38 of file QmitkFiducialRegistrationWidget.h.

Member Enumeration Documentation

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 62 of file QmitkFiducialRegistrationWidget.h.

Constructor & Destructor Documentation

QmitkFiducialRegistrationWidget::QmitkFiducialRegistrationWidget ( QWidget *  parent)

Definition at line 33 of file QmitkFiducialRegistrationWidget.cpp.

References CreateQtPartControl().

QmitkFiducialRegistrationWidget::~QmitkFiducialRegistrationWidget ( )
virtual

Member Function Documentation

void QmitkFiducialRegistrationWidget::AddedImageFiducial ( )
signal

signal if an image position was added to a image space fiducial

Referenced by CreateConnections().

void QmitkFiducialRegistrationWidget::AddedTrackingFiducial ( )
signal

signal if a world instrument position was added to a tracking space fiducial

Referenced by CreateConnections().

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 175 of file QmitkFiducialRegistrationWidget.cpp.

References m_Controls.

void QmitkFiducialRegistrationWidget::AddTrackerPoint ( )
protectedslot
void QmitkFiducialRegistrationWidget::AdjustButtonSpacing ( )

Rearrange spacing when buttons are turned on or off.

Definition at line 233 of file QmitkFiducialRegistrationWidget.cpp.

References m_Controls.

Referenced by HideImageFiducialButton(), and HideTrackingFiducialButton().

bool QmitkFiducialRegistrationWidget::CheckRegistrationInitialization ( )
protected
void QmitkFiducialRegistrationWidget::CreateQtPartControl ( QWidget *  parent)
protected

Definition at line 53 of file QmitkFiducialRegistrationWidget.cpp.

References CreateConnections(), and m_Controls.

Referenced by QmitkFiducialRegistrationWidget().

void QmitkFiducialRegistrationWidget::DisableEditButtonRegistrationImagePoints ( bool  activated)
protectedslot

Disables the edit button of the widget RegistrationImagePoints if the activated variable is true.

Definition at line 86 of file QmitkFiducialRegistrationWidget.cpp.

References m_Controls.

Referenced by CreateConnections().

void QmitkFiducialRegistrationWidget::DisableEditButtonRegistrationTrackingPoints ( bool  activated)
protectedslot

Disables the edit button of the widget RegistrationTrackingPoints if the activated variable is true.

Definition at line 90 of file QmitkFiducialRegistrationWidget.cpp.

References m_Controls.

Referenced by CreateConnections().

void QmitkFiducialRegistrationWidget::FindFiducialCorrespondences ( bool  on)
signal

signal if automatic correspondences search is toggled

Referenced by CreateConnections().

mitk::DataNode::Pointer QmitkFiducialRegistrationWidget::GetImageFiducialsNode ( )

returns data tree node for the image fiducials

Definition at line 181 of file QmitkFiducialRegistrationWidget.cpp.

References m_ImageFiducialsNode.

mitk::DataNode::Pointer QmitkFiducialRegistrationWidget::GetTrackerFiducialsNode ( )

returns data tree node for the tracker fiducials

Definition at line 186 of file QmitkFiducialRegistrationWidget.cpp.

References m_TrackerFiducialsNode.

void QmitkFiducialRegistrationWidget::HideContinousRegistrationRadioButton ( bool  on)

show or hide "hybrid continuous Fiducial Registration" radio button in the UI

Definition at line 197 of file QmitkFiducialRegistrationWidget.cpp.

References HideFiducialRegistrationGroupBox(), and m_Controls.

Referenced by SetWidgetAppearanceMode().

void QmitkFiducialRegistrationWidget::HideFiducialRegistrationGroupBox ( )

show or hide "Fiducial Registration method" groupbox in the UI, depending on the visibility of the radio buttons

Definition at line 203 of file QmitkFiducialRegistrationWidget.cpp.

References m_Controls.

Referenced by HideContinousRegistrationRadioButton(), HideStaticRegistrationRadioButton(), and SetWidgetAppearanceMode().

void QmitkFiducialRegistrationWidget::HideImageFiducialButton ( bool  on)

show or hide "Add image fiducial" button in the UI

Definition at line 220 of file QmitkFiducialRegistrationWidget.cpp.

References AdjustButtonSpacing(), and m_Controls.

Referenced by SetWidgetAppearanceMode().

void QmitkFiducialRegistrationWidget::HideStaticRegistrationRadioButton ( bool  on)

show or hide "static Fiducial Registration" radio button in the UI

Definition at line 191 of file QmitkFiducialRegistrationWidget.cpp.

References HideFiducialRegistrationGroupBox(), and m_Controls.

Referenced by SetWidgetAppearanceMode().

void QmitkFiducialRegistrationWidget::HideTrackingFiducialButton ( bool  on)

show or hide "Add tracking fiducial" button in the UI

Definition at line 227 of file QmitkFiducialRegistrationWidget.cpp.

References AdjustButtonSpacing(), and m_Controls.

void QmitkFiducialRegistrationWidget::HideUseICPRegistrationCheckbox ( bool  on)

show or hide "Find fiducial correspondences (needs 6+ fiducial pairs)" check box in the UI

Definition at line 215 of file QmitkFiducialRegistrationWidget.cpp.

References m_Controls.

Referenced by SetWidgetAppearanceMode().

void QmitkFiducialRegistrationWidget::PerformFiducialRegistration ( )
signal

signal if all fiducial were added and registration can be performed

Referenced by CreateConnections().

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 279 of file QmitkFiducialRegistrationWidget.cpp.

References m_DataStorage, m_ImageFiducialsNode, m_TrackerFiducialsNode, mitk::DataNode::New(), mitk::PointSet::New(), SetImageFiducialsNode(), and SetTrackerFiducialsNode().

void QmitkFiducialRegistrationWidget::SetImageFiducialsNode ( mitk::DataNode::Pointer  imageFiducialsNode)

specify data tree node for the image fiducials

Definition at line 138 of file QmitkFiducialRegistrationWidget.cpp.

References FRW_WARN, m_Controls, m_MultiWidget, and MITK_DEBUG.

Referenced by setDataStorage().

void QmitkFiducialRegistrationWidget::setImageNode ( mitk::DataNode::Pointer  i)

Adds the image node which is transformed after "register" is clicked.

Definition at line 269 of file QmitkFiducialRegistrationWidget.cpp.

References m_ImageNode.

void QmitkFiducialRegistrationWidget::SetMultiWidget ( QmitkStdMultiWidget multiWidget)

(Deprecated method. Multiwidget is not required any more.) Set the default stdMultiWidget (needed for the PointListwidget)

Definition at line 170 of file QmitkFiducialRegistrationWidget.cpp.

References m_MultiWidget.

void QmitkFiducialRegistrationWidget::SetQualityDisplayText ( QString  text)

sets specific text on the UI (useful to display FRE/TRE...)

Definition at line 123 of file QmitkFiducialRegistrationWidget.cpp.

References m_Controls.

Referenced by Register().

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 247 of file QmitkFiducialRegistrationWidget.cpp.

References m_Controls.

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 258 of file QmitkFiducialRegistrationWidget.cpp.

References m_Controls.

void QmitkFiducialRegistrationWidget::SetTrackerFiducialsNode ( mitk::DataNode::Pointer  trackerFiducialsNode)

specify data tree node for the tracker fiducials

Definition at line 154 of file QmitkFiducialRegistrationWidget.cpp.

References FRW_WARN, m_Controls, m_MultiWidget, and MITK_DEBUG.

Referenced by setDataStorage().

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 274 of file QmitkFiducialRegistrationWidget.cpp.

References m_TrackerNavigationData.

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 95 of file QmitkFiducialRegistrationWidget.cpp.

References FIDUCIALMODE, HideContinousRegistrationRadioButton(), HideFiducialRegistrationGroupBox(), HideImageFiducialButton(), HideStaticRegistrationRadioButton(), HideUseICPRegistrationCheckbox(), LANDMARKMODE, and m_Controls.

bool QmitkFiducialRegistrationWidget::UseICPIsChecked ( )

returns true if automatic correspondences search is activated else false

Definition at line 130 of file QmitkFiducialRegistrationWidget.cpp.

References m_Controls.

Member Data Documentation

mitk::DataStorage::Pointer QmitkFiducialRegistrationWidget::m_DataStorage
protected
mitk::DataNode::Pointer QmitkFiducialRegistrationWidget::m_ImageFiducialsNode
protected
mitk::DataNode::Pointer QmitkFiducialRegistrationWidget::m_ImageNode
protected

Definition at line 132 of file QmitkFiducialRegistrationWidget.h.

Referenced by Register(), and setImageNode().

QmitkStdMultiWidget* QmitkFiducialRegistrationWidget::m_MultiWidget
protected
mitk::NavigationData::Pointer QmitkFiducialRegistrationWidget::m_T_ObjectReg
protected

Definition at line 133 of file QmitkFiducialRegistrationWidget.h.

Referenced by Register().

mitk::NavigationData::Pointer QmitkFiducialRegistrationWidget::m_TrackerNavigationData
protected

Definition at line 131 of file QmitkFiducialRegistrationWidget.h.

Referenced by AddTrackerPoint(), and setTrackerNavigationData().


The documentation for this class was generated from the following files: