|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
GUI for slices interpolation. More...
#include <QmitkSlicesInterpolator.h>


Public Slots | |
| virtual void | setEnabled (bool) |
| void | EnableInterpolation (bool) |
| void | Enable3DInterpolation (bool) |
| Enables or disables 3D surface interpolation. More... | |
| 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 () |
| Releases resources and disconnects from the tool manager and render windows. More... | |
| ~QmitkSlicesInterpolator () override | |
| void | SetDataStorage (mitk::DataStorage::Pointer storage) |
| Sets the data storage used for interpolation feedback nodes. More... | |
| mitk::DataStorage * | GetDataStorage () |
| Returns the current data storage. More... | |
| void | SetActiveLabelValue (mitk::MultiLabelSegmentation::LabelValueType labelValue) |
| Sets the active label value for which interpolation is performed. More... | |
| void | OnToolManagerWorkingDataModified () |
| void | OnToolManagerReferenceDataModified () |
| void | OnTimeChanged (itk::Object *sender, const itk::EventObject &) |
| Reacts to the time changed event. Public for itk::Command callbacks. More... | |
| void | OnSliceChanged (itk::Object *sender, const itk::EventObject &) |
| Reacts to the slice changed event. Public for itk::Command callbacks. More... | |
| void | OnSliceNavigationControllerDeleted (const itk::Object *sender, const itk::EventObject &) |
| Handles deletion of a SliceNavigationController. Public for itk::Command callbacks. More... | |
| void | OnInterpolationInfoChanged (const itk::EventObject &) |
| void | OnInterpolationAborted (const itk::EventObject &) |
| void | OnSurfaceInterpolationInfoChanged (const itk::EventObject &) |
Protected Types | |
| typedef std::map< QAction *, mitk::SliceNavigationController * > | ActionToSliceDimensionMapType |
Protected Slots | |
| void | OnAcceptInterpolationClicked () |
| void | OnAcceptAllInterpolationsClicked () |
| void | OnAccept3DInterpolationClicked () |
| void | OnReinit3DInterpolation () |
| Reinitializes 3D interpolation by re-reading the plane geometries of the segmentation image. More... | |
| void | OnAcceptAllPopupActivated (QAction *action) |
| void | OnInterpolationActivated (bool) |
| void | On3DInterpolationActivated (bool) |
| Called when 3D interpolation is activated or deactivated. More... | |
| void | OnInterpolationMethodChanged (int index) |
| Called when the interpolation method combo box selection changes. More... | |
| void | On2DInterpolationEnabled (bool) |
| Called when the 2D interpolation radio button is toggled. More... | |
| void | On3DInterpolationEnabled (bool) |
| Called when the 3D interpolation radio button is toggled. More... | |
| void | OnInterpolationDisabled (bool) |
| Called when the "no interpolation" radio button is toggled. More... | |
| void | OnShowMarkers (bool) |
| Called when the "show position markers" checkbox is toggled. More... | |
| void | Run3DInterpolation () |
| Triggers 3D surface interpolation in a background thread. More... | |
| void | OnSurfaceInterpolationFinished () |
| Called when the surface interpolation thread completes. More... | |
| void | StartUpdateInterpolationTimer () |
| Starts the timer that periodically triggers interpolation updates. More... | |
| void | StopUpdateInterpolationTimer () |
| Stops the interpolation update timer. More... | |
| void | ChangeSurfaceColor () |
| Updates the surface color to match the active label color. More... | |
Protected Member Functions | |
| const ActionToSliceDimensionMapType | CreateActionToSlicer (const QList< QmitkRenderWindow * > &windows) |
| void | AcceptAllInterpolations (mitk::SliceNavigationController *slicer) |
| void | AcceptAllInterpolationsWithErrorHandling (mitk::SliceNavigationController *slicer) |
| bool | TranslateAndInterpolateChangedSlice (const itk::EventObject &e, mitk::SliceNavigationController *sliceNavigationController) |
| bool | TranslateAndInterpolateChangedSlice (const mitk::TimeGeometry *timeGeometry) |
| void | Interpolate (mitk::PlaneGeometry *plane) |
| void | UpdateVisibleSuggestion () |
| void | SetCurrentContourListID () |
Protected Attributes | |
| ActionToSliceDimensionMapType | m_ActionToSlicerMap |
GUI for slices interpolation.
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.
Definition at line 65 of file QmitkSlicesInterpolator.h.
|
protected |
Definition at line 223 of file QmitkSlicesInterpolator.h.
| QmitkSlicesInterpolator::QmitkSlicesInterpolator | ( | QWidget * | parent = nullptr, |
| const char * | name = nullptr |
||
| ) |
|
override |
|
protected |
|
protected |
Calls AcceptAllInterpolations and reports a failure to the user in an error dialog instead of letting the exception escape into the Qt event loop.
|
protectedslot |
Updates the surface color to match the active label color.
|
protected |
|
slot |
Enables or disables 3D surface interpolation.
|
slot |
Call this from the outside to enable/disable interpolation
|
slot |
Call this from the outside to accept all interpolations
| mitk::DataStorage* QmitkSlicesInterpolator::GetDataStorage | ( | ) |
Returns the current data storage.
| void QmitkSlicesInterpolator::Initialize | ( | mitk::ToolManager * | toolManager, |
| const QList< QmitkRenderWindow * > & | windows | ||
| ) |
To be called once before real use.
|
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.
|
protectedslot |
Called when the 2D interpolation radio button is toggled.
|
protectedslot |
Called when 3D interpolation is activated or deactivated.
|
protectedslot |
Called when the 3D interpolation radio button is toggled.
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
Reaction to button clicks.
| void QmitkSlicesInterpolator::OnInterpolationAborted | ( | const itk::EventObject & | ) |
Just public because it is called by itk::Commands. You should not need to call this.
|
protectedslot |
Called on activation/deactivation
|
protectedslot |
Called when the "no interpolation" radio button is toggled.
| void QmitkSlicesInterpolator::OnInterpolationInfoChanged | ( | const itk::EventObject & | ) |
Just public because it is called by itk::Commands. You should not need to call this.
|
protectedslot |
Called when the interpolation method combo box selection changes.
|
protectedslot |
Reinitializes 3D interpolation by re-reading the plane geometries of the segmentation image.
|
protectedslot |
Called when the "show position markers" checkbox is toggled.
| void QmitkSlicesInterpolator::OnSliceChanged | ( | itk::Object * | sender, |
| const itk::EventObject & | |||
| ) |
Reacts to the slice changed event. Public for itk::Command callbacks.
| void QmitkSlicesInterpolator::OnSliceNavigationControllerDeleted | ( | const itk::Object * | sender, |
| const itk::EventObject & | |||
| ) |
Handles deletion of a SliceNavigationController. Public for itk::Command callbacks.
|
protectedslot |
Called when the surface interpolation thread completes.
Retrieves the interpolated surface data, renders it in the active color label, and stores the surface information in the feedback node.
| void QmitkSlicesInterpolator::OnSurfaceInterpolationInfoChanged | ( | const itk::EventObject & | ) |
Just public because it is called by itk::Commands. You should not need to call this.
| void QmitkSlicesInterpolator::OnTimeChanged | ( | itk::Object * | sender, |
| const itk::EventObject & | |||
| ) |
Reacts to the time changed event. Public for itk::Command callbacks.
| void QmitkSlicesInterpolator::OnToolManagerReferenceDataModified | ( | ) |
Just public because it is called by itk::Commands. You should not need to call this.
| void QmitkSlicesInterpolator::OnToolManagerWorkingDataModified | ( | ) |
Just public because it is called by itk::Commands. You should not need to call this.
|
protectedslot |
Triggers 3D surface interpolation in a background thread.
| void QmitkSlicesInterpolator::SetActiveLabelValue | ( | mitk::MultiLabelSegmentation::LabelValueType | labelValue | ) |
Sets the active label value for which interpolation is performed.
|
protected |
| void QmitkSlicesInterpolator::SetDataStorage | ( | mitk::DataStorage::Pointer | storage | ) |
Sets the data storage used for interpolation feedback nodes.
|
virtualslot |
|
signal |
|
signal |
|
protectedslot |
Starts the timer that periodically triggers interpolation updates.
|
protectedslot |
Stops the interpolation update timer.
|
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.
| e | is a actually a mitk::SliceNavigationController::GeometrySliceEvent, sent by a SliceNavigationController |
| sliceNavigationController | the SliceNavigationController |
|
protected |
| void QmitkSlicesInterpolator::Uninitialize | ( | ) |
Releases resources and disconnects from the tool manager and render windows.
|
protected |
Called internally to update the interpolation suggestion. Finds out about the focused render window and requests an interpolation.
|
protected |
Definition at line 225 of file QmitkSlicesInterpolator.h.