Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
GUI for slices interpolation. More...
#include <QmitkSlicesInterpolator.h>
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::DataStorage * | GetDataStorage () |
Get the Data Storage object. More... | |
void | SetActiveLabelValue (mitk::LabelSetImage::LabelValueType labelValue) |
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 Types | |
typedef std::map< QAction *, mitk::SliceNavigationController * > | ActionToSliceDimensionMapType |
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 () |
Protected Member Functions | |
const ActionToSliceDimensionMapType | CreateActionToSlicer (const QList< QmitkRenderWindow * > &windows) |
void | AcceptAllInterpolations (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 66 of file QmitkSlicesInterpolator.h.
|
protected |
Definition at line 240 of file QmitkSlicesInterpolator.h.
QmitkSlicesInterpolator::QmitkSlicesInterpolator | ( | QWidget * | parent = nullptr , |
const char * | name = nullptr |
||
) |
|
override |
|
protected |
|
protectedslot |
|
protected |
|
slot |
|
slot |
Call this from the outside to enable/disable interpolation
|
slot |
Call this from the outside to accept all interpolations
mitk::DataStorage* QmitkSlicesInterpolator::GetDataStorage | ( | ) |
Get the Data Storage object.
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 |
|
protectedslot |
|
protectedslot |
|
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 |
void QmitkSlicesInterpolator::OnInterpolationInfoChanged | ( | const itk::EventObject & | ) |
Just public because it is called by itk::Commands. You should not need to call this.
|
protectedslot |
|
protectedslot |
Reaction to reinit 3D Interpolation. Re-reads the plane geometries of the image that should have generated the.
|
protectedslot |
void QmitkSlicesInterpolator::OnSliceChanged | ( | itk::Object * | sender, |
const itk::EventObject & | |||
) |
Reacts to the slice changed event.
sender |
void QmitkSlicesInterpolator::OnSliceNavigationControllerDeleted | ( | const itk::Object * | sender, |
const itk::EventObject & | |||
) |
|
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.
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.
sender |
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 |
void QmitkSlicesInterpolator::SetActiveLabelValue | ( | mitk::LabelSetImage::LabelValueType | labelValue | ) |
|
protected |
void QmitkSlicesInterpolator::SetDataStorage | ( | mitk::DataStorage::Pointer | storage | ) |
Set the Data Storage object.
storage |
|
virtualslot |
|
signal |
|
signal |
|
protectedslot |
|
protectedslot |
|
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 | ( | ) |
|
protected |
Called internally to update the interpolation suggestion. Finds out about the focused render window and requests an interpolation.
|
protected |
Definition at line 242 of file QmitkSlicesInterpolator.h.