Medical Imaging Interaction Toolkit  2021.02.99-e55a5d2f
Medical Imaging Interaction Toolkit
QmitkSliceBasedInterpolatorWidget Class Reference

GUI for slices interpolation. More...

#include <QmitkSliceBasedInterpolatorWidget.h>

Inheritance diagram for QmitkSliceBasedInterpolatorWidget:
Collaboration diagram for QmitkSliceBasedInterpolatorWidget:

Public Slots

void OnToggleWidgetActivation (bool)
 Reaction to "Start/Stop" button click. More...
 

Signals

void signalSliceBasedInterpolationEnabled (bool)
 

Public Member Functions

 QmitkSliceBasedInterpolatorWidget (QWidget *parent=nullptr, const char *name=nullptr)
 
 ~QmitkSliceBasedInterpolatorWidget () override
 
void SetDataStorage (mitk::DataStorage &storage)
 
void SetSliceNavigationControllers (const QList< mitk::SliceNavigationController *> &controllers)
 
void OnToolManagerWorkingDataModified ()
 
void OnTimeChanged (itk::Object *sender, const itk::EventObject &)
 
void OnSliceChanged (itk::Object *sender, const itk::EventObject &)
 
void OnSliceNavigationControllerDeleted (const itk::Object *sender, const itk::EventObject &)
 
void OnSliceInterpolationInfoChanged (const itk::EventObject &)
 

Public Attributes

Ui::QmitkSliceBasedInterpolatorWidgetGUIControls m_Controls
 

Protected Types

typedef std::map< QAction *, mitk::SliceNavigationController * > ActionToSliceDimensionMapType
 

Protected Slots

void OnAcceptInterpolationClicked ()
 Reaction to "Accept Current Slice" button click. More...
 
void OnAcceptAllInterpolationsClicked ()
 
void OnAcceptAllPopupActivated (QAction *action)
 

Protected Member Functions

const ActionToSliceDimensionMapType CreateActionToSliceDimension ()
 
void AcceptAllInterpolations (mitk::SliceNavigationController *slicer)
 
void WaitCursorOn ()
 
void WaitCursorOff ()
 
void RestoreOverrideCursor ()
 
mitk::Image::Pointer GetWorkingSlice (const mitk::PlaneGeometry *planeGeometry)
 
void TranslateAndInterpolateChangedSlice (const itk::EventObject &e, mitk::SliceNavigationController *slicer)
 
void Interpolate (mitk::PlaneGeometry *plane, mitk::TimePointType timePoint, mitk::SliceNavigationController *slicer)
 
void UpdateVisibleSuggestion ()
 

Protected Attributes

ActionToSliceDimensionMapType m_ActionToSliceDimensionMap
 

Detailed Description

GUI for slices interpolation.

See also
QmitkInteractiveSegmentation
mitk::SegmentationInterpolation

While mitk::SegmentationInterpolation does the bookkeeping of interpolation (keeping track of which slices contain how much segmentation) and the algorithmic work, QmitkSliceBasedInterpolatorWidget is responsible to watch the GUI, to notice, which slice is currently visible. It triggers generation of interpolation suggestions and also triggers acception of suggestions.

This class uses the mitk::ToolManagerProvider::MULTILABEL_SEGMENTATION context.

Last contributor:

Author
maleike

Definition at line 57 of file QmitkSliceBasedInterpolatorWidget.h.

Member Typedef Documentation

◆ ActionToSliceDimensionMapType

Constructor & Destructor Documentation

◆ QmitkSliceBasedInterpolatorWidget()

QmitkSliceBasedInterpolatorWidget::QmitkSliceBasedInterpolatorWidget ( QWidget *  parent = nullptr,
const char *  name = nullptr 
)

◆ ~QmitkSliceBasedInterpolatorWidget()

QmitkSliceBasedInterpolatorWidget::~QmitkSliceBasedInterpolatorWidget ( )
override

Member Function Documentation

◆ AcceptAllInterpolations()

void QmitkSliceBasedInterpolatorWidget::AcceptAllInterpolations ( mitk::SliceNavigationController slicer)
protected

◆ CreateActionToSliceDimension()

const ActionToSliceDimensionMapType QmitkSliceBasedInterpolatorWidget::CreateActionToSliceDimension ( )
protected

◆ GetWorkingSlice()

mitk::Image::Pointer QmitkSliceBasedInterpolatorWidget::GetWorkingSlice ( const mitk::PlaneGeometry planeGeometry)
protected

Gets the working slice based on the given plane geometry and last saved interaction

Parameters
planeGeometrya plane geometry

◆ Interpolate()

void QmitkSliceBasedInterpolatorWidget::Interpolate ( mitk::PlaneGeometry plane,
mitk::TimePointType  timePoint,
mitk::SliceNavigationController slicer 
)
protected

Given a PlaneGeometry, this method figures out which slice of the first working image (of the associated ToolManager) should be interpolated. The actual work is then done by our SegmentationInterpolation object.

◆ OnAcceptAllInterpolationsClicked

void QmitkSliceBasedInterpolatorWidget::OnAcceptAllInterpolationsClicked ( )
protectedslot

◆ OnAcceptAllPopupActivated

void QmitkSliceBasedInterpolatorWidget::OnAcceptAllPopupActivated ( QAction *  action)
protectedslot

◆ OnAcceptInterpolationClicked

void QmitkSliceBasedInterpolatorWidget::OnAcceptInterpolationClicked ( )
protectedslot

Reaction to "Accept Current Slice" button click.

◆ OnSliceChanged()

void QmitkSliceBasedInterpolatorWidget::OnSliceChanged ( itk::Object *  sender,
const itk::EventObject &   
)

◆ OnSliceInterpolationInfoChanged()

void QmitkSliceBasedInterpolatorWidget::OnSliceInterpolationInfoChanged ( const itk::EventObject &  )

Just public because it is called by itk::Commands. You should not need to call this.

◆ OnSliceNavigationControllerDeleted()

void QmitkSliceBasedInterpolatorWidget::OnSliceNavigationControllerDeleted ( const itk::Object *  sender,
const itk::EventObject &   
)

◆ OnTimeChanged()

void QmitkSliceBasedInterpolatorWidget::OnTimeChanged ( itk::Object *  sender,
const itk::EventObject &   
)

◆ OnToggleWidgetActivation

void QmitkSliceBasedInterpolatorWidget::OnToggleWidgetActivation ( bool  )
slot

Reaction to "Start/Stop" button click.

◆ OnToolManagerWorkingDataModified()

void QmitkSliceBasedInterpolatorWidget::OnToolManagerWorkingDataModified ( )

◆ RestoreOverrideCursor()

void QmitkSliceBasedInterpolatorWidget::RestoreOverrideCursor ( )
protected

◆ SetDataStorage()

void QmitkSliceBasedInterpolatorWidget::SetDataStorage ( mitk::DataStorage storage)

◆ SetSliceNavigationControllers()

void QmitkSliceBasedInterpolatorWidget::SetSliceNavigationControllers ( const QList< mitk::SliceNavigationController *> &  controllers)

Sets the slice navigation controllers for getting slice changed events from the views.

◆ signalSliceBasedInterpolationEnabled

void QmitkSliceBasedInterpolatorWidget::signalSliceBasedInterpolationEnabled ( bool  )
signal

◆ TranslateAndInterpolateChangedSlice()

void QmitkSliceBasedInterpolatorWidget::TranslateAndInterpolateChangedSlice ( const itk::EventObject &  e,
mitk::SliceNavigationController slicer 
)
protected

Retrieves the currently selected PlaneGeometry from a SlicedGeometry3D that is generated by a SliceNavigationController and calls Interpolate to further process this PlaneGeometry into an interpolation.

Parameters
eis a actually a mitk::SliceNavigationController::GeometrySliceEvent, sent by a SliceNavigationController
slicerthe SliceNavigationController

◆ UpdateVisibleSuggestion()

void QmitkSliceBasedInterpolatorWidget::UpdateVisibleSuggestion ( )
protected

Called internally to update the interpolation suggestion. Finds out about the focused render window and requests an interpolation.

◆ WaitCursorOff()

void QmitkSliceBasedInterpolatorWidget::WaitCursorOff ( )
protected

◆ WaitCursorOn()

void QmitkSliceBasedInterpolatorWidget::WaitCursorOn ( )
protected

Member Data Documentation

◆ m_ActionToSliceDimensionMap

ActionToSliceDimensionMapType QmitkSliceBasedInterpolatorWidget::m_ActionToSliceDimensionMap
protected

Definition at line 122 of file QmitkSliceBasedInterpolatorWidget.h.

◆ m_Controls

Ui::QmitkSliceBasedInterpolatorWidgetGUIControls QmitkSliceBasedInterpolatorWidget::m_Controls

Definition at line 85 of file QmitkSliceBasedInterpolatorWidget.h.


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