Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
QmitkSlicesInterpolator Class Reference

GUI for slices interpolation. More...

#include <QmitkSlicesInterpolator.h>

Inheritance diagram for QmitkSlicesInterpolator:
Collaboration diagram for QmitkSlicesInterpolator:

Public Slots

virtual void setEnabled (bool)
 
void EnableInterpolation (bool)
 
void Enable3DInterpolation (bool)
 
void FinishInterpolation (mitk::SliceNavigationController *slicer=nullptr)
 

Signals

void SignalRememberContourPositions (bool)
 
void SignalShowMarkerNodes (bool)
 

Public Member Functions

 QmitkSlicesInterpolator (QWidget *parent=nullptr, const char *name=nullptr)
 
void Initialize (mitk::ToolManager *toolManager, const QList< QmitkRenderWindow * > &windows)
 
void Uninitialize ()
 
 ~QmitkSlicesInterpolator () override
 
void SetDataStorage (mitk::DataStorage::Pointer storage)
 Set the Data Storage object. More...
 
mitk::DataStorageGetDataStorage ()
 Get the Data Storage object. More...
 
void OnToolManagerWorkingDataModified ()
 
void OnToolManagerReferenceDataModified ()
 
void OnTimeChanged (itk::Object *sender, const itk::EventObject &)
 Reacts to the time changed event. More...
 
void OnSliceChanged (itk::Object *sender, const itk::EventObject &)
 Reacts to the slice changed event. More...
 
void OnSliceNavigationControllerDeleted (const itk::Object *sender, const itk::EventObject &)
 
void OnInterpolationInfoChanged (const itk::EventObject &)
 
void OnInterpolationAborted (const itk::EventObject &)
 
void OnSurfaceInterpolationInfoChanged (const itk::EventObject &)
 

Protected Slots

void OnAcceptInterpolationClicked ()
 
void OnAcceptAllInterpolationsClicked ()
 
void OnAccept3DInterpolationClicked ()
 
void OnReinit3DInterpolation ()
 Reaction to reinit 3D Interpolation. Re-reads the plane geometries of the image that should have generated the. More...
 
void OnAcceptAllPopupActivated (QAction *action)
 
void OnInterpolationActivated (bool)
 
void On3DInterpolationActivated (bool)
 
void OnInterpolationMethodChanged (int index)
 
void On2DInterpolationEnabled (bool)
 
void On3DInterpolationEnabled (bool)
 
void OnInterpolationDisabled (bool)
 
void OnShowMarkers (bool)
 
void Run3DInterpolation ()
 
void OnSurfaceInterpolationFinished ()
 Function triggers when the surface interpolation thread completes running. It is responsible for retrieving the data, rendering it in the active color label, storing the surface information in the feedback node. More...
 
void StartUpdateInterpolationTimer ()
 
void StopUpdateInterpolationTimer ()
 
void ChangeSurfaceColor ()
 
void OnRemoveLabelSetConnection (mitk::LabelSetImage *labelSetImage, unsigned int layerID)
 Removes all observers to the labelSetImage at the layerID specified. Is used when changing the segmentation image. More...
 

Protected Member Functions

const std::map< QAction *, mitk::SliceNavigationController * > createActionToSlicer (const QList< QmitkRenderWindow * > &windows)
 
void AcceptAllInterpolations (mitk::SliceNavigationController *slicer)
 
bool TranslateAndInterpolateChangedSlice (const itk::EventObject &e, mitk::SliceNavigationController *slicer)
 
void Interpolate (mitk::PlaneGeometry *plane, mitk::TimePointType timePoint, mitk::SliceNavigationController *slicer)
 
void UpdateVisibleSuggestion ()
 
void SetCurrentContourListID ()
 

Protected Attributes

std::map< QAction *, mitk::SliceNavigationController * > m_ActionToSlicer
 

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, QmitkSlicesInterpolator 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.

Last contributor:

Author
maleike

Definition at line 80 of file QmitkSlicesInterpolator.h.

Constructor & Destructor Documentation

◆ QmitkSlicesInterpolator()

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

◆ ~QmitkSlicesInterpolator()

QmitkSlicesInterpolator::~QmitkSlicesInterpolator ( )
override

Member Function Documentation

◆ AcceptAllInterpolations()

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

◆ ChangeSurfaceColor

void QmitkSlicesInterpolator::ChangeSurfaceColor ( )
protectedslot

◆ createActionToSlicer()

const std::map<QAction *, mitk::SliceNavigationController *> QmitkSlicesInterpolator::createActionToSlicer ( const QList< QmitkRenderWindow * > &  windows)
protected

◆ Enable3DInterpolation

void QmitkSlicesInterpolator::Enable3DInterpolation ( bool  )
slot

◆ EnableInterpolation

void QmitkSlicesInterpolator::EnableInterpolation ( bool  )
slot

Call this from the outside to enable/disable interpolation

◆ FinishInterpolation

void QmitkSlicesInterpolator::FinishInterpolation ( mitk::SliceNavigationController slicer = nullptr)
slot

Call this from the outside to accept all interpolations

◆ GetDataStorage()

mitk::DataStorage* QmitkSlicesInterpolator::GetDataStorage ( )

Get the Data Storage object.

Returns
mitk::DataStorage*

◆ Initialize()

void QmitkSlicesInterpolator::Initialize ( mitk::ToolManager toolManager,
const QList< QmitkRenderWindow * > &  windows 
)

To be called once before real use.

◆ Interpolate()

void QmitkSlicesInterpolator::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.

◆ On2DInterpolationEnabled

void QmitkSlicesInterpolator::On2DInterpolationEnabled ( bool  )
protectedslot

◆ On3DInterpolationActivated

void QmitkSlicesInterpolator::On3DInterpolationActivated ( bool  )
protectedslot

◆ On3DInterpolationEnabled

void QmitkSlicesInterpolator::On3DInterpolationEnabled ( bool  )
protectedslot

◆ OnAccept3DInterpolationClicked

void QmitkSlicesInterpolator::OnAccept3DInterpolationClicked ( )
protectedslot

◆ OnAcceptAllInterpolationsClicked

void QmitkSlicesInterpolator::OnAcceptAllInterpolationsClicked ( )
protectedslot

◆ OnAcceptAllPopupActivated

void QmitkSlicesInterpolator::OnAcceptAllPopupActivated ( QAction *  action)
protectedslot

◆ OnAcceptInterpolationClicked

void QmitkSlicesInterpolator::OnAcceptInterpolationClicked ( )
protectedslot

Reaction to button clicks.

◆ OnInterpolationAborted()

void QmitkSlicesInterpolator::OnInterpolationAborted ( const itk::EventObject &  )

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

◆ OnInterpolationActivated

void QmitkSlicesInterpolator::OnInterpolationActivated ( bool  )
protectedslot

Called on activation/deactivation

◆ OnInterpolationDisabled

void QmitkSlicesInterpolator::OnInterpolationDisabled ( bool  )
protectedslot

◆ OnInterpolationInfoChanged()

void QmitkSlicesInterpolator::OnInterpolationInfoChanged ( const itk::EventObject &  )

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

◆ OnInterpolationMethodChanged

void QmitkSlicesInterpolator::OnInterpolationMethodChanged ( int  index)
protectedslot

◆ OnReinit3DInterpolation

void QmitkSlicesInterpolator::OnReinit3DInterpolation ( )
protectedslot

Reaction to reinit 3D Interpolation. Re-reads the plane geometries of the image that should have generated the.

◆ OnRemoveLabelSetConnection

void QmitkSlicesInterpolator::OnRemoveLabelSetConnection ( mitk::LabelSetImage labelSetImage,
unsigned int  layerID 
)
protectedslot

Removes all observers to the labelSetImage at the layerID specified. Is used when changing the segmentation image.

Parameters
labelSetImage
layerID

◆ OnShowMarkers

void QmitkSlicesInterpolator::OnShowMarkers ( bool  )
protectedslot

◆ OnSliceChanged()

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

Reacts to the slice changed event.

Parameters
sender

◆ OnSliceNavigationControllerDeleted()

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

◆ OnSurfaceInterpolationFinished

void QmitkSlicesInterpolator::OnSurfaceInterpolationFinished ( )
protectedslot

Function triggers when the surface interpolation thread completes running. It is responsible for retrieving the data, rendering it in the active color label, storing the surface information in the feedback node.

◆ OnSurfaceInterpolationInfoChanged()

void QmitkSlicesInterpolator::OnSurfaceInterpolationInfoChanged ( const itk::EventObject &  )

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

◆ OnTimeChanged()

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

Reacts to the time changed event.

Parameters
sender

◆ OnToolManagerReferenceDataModified()

void QmitkSlicesInterpolator::OnToolManagerReferenceDataModified ( )

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

◆ OnToolManagerWorkingDataModified()

void QmitkSlicesInterpolator::OnToolManagerWorkingDataModified ( )

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

◆ Run3DInterpolation

void QmitkSlicesInterpolator::Run3DInterpolation ( )
protectedslot

◆ SetCurrentContourListID()

void QmitkSlicesInterpolator::SetCurrentContourListID ( )
protected

◆ SetDataStorage()

void QmitkSlicesInterpolator::SetDataStorage ( mitk::DataStorage::Pointer  storage)

Set the Data Storage object.

Parameters
storage

◆ setEnabled

virtual void QmitkSlicesInterpolator::setEnabled ( bool  )
virtualslot

◆ SignalRememberContourPositions

void QmitkSlicesInterpolator::SignalRememberContourPositions ( bool  )
signal

◆ SignalShowMarkerNodes

void QmitkSlicesInterpolator::SignalShowMarkerNodes ( bool  )
signal

◆ StartUpdateInterpolationTimer

void QmitkSlicesInterpolator::StartUpdateInterpolationTimer ( )
protectedslot

◆ StopUpdateInterpolationTimer

void QmitkSlicesInterpolator::StopUpdateInterpolationTimer ( )
protectedslot

◆ TranslateAndInterpolateChangedSlice()

bool QmitkSlicesInterpolator::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

◆ Uninitialize()

void QmitkSlicesInterpolator::Uninitialize ( )

◆ UpdateVisibleSuggestion()

void QmitkSlicesInterpolator::UpdateVisibleSuggestion ( )
protected

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

Member Data Documentation

◆ m_ActionToSlicer

std::map<QAction *, mitk::SliceNavigationController *> QmitkSlicesInterpolator::m_ActionToSlicer
protected

Definition at line 317 of file QmitkSlicesInterpolator.h.


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