Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
GUI for slices interpolation. More...
#include <QmitkSliceBasedInterpolatorWidget.h>
Public Slots | |
void | OnToggleWidgetActivation (bool) |
Reaction to "Start/Stop" button click. More... | |
Signals | |
void | signalSliceBasedInterpolationEnabled (bool) |
Public Member Functions | |
QmitkSliceBasedInterpolatorWidget (QWidget *parent=0, const char *name=0) | |
virtual | ~QmitkSliceBasedInterpolatorWidget () |
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, unsigned int timeStep, mitk::SliceNavigationController *slicer) |
void | UpdateVisibleSuggestion () |
Protected Attributes | |
ActionToSliceDimensionMapType | m_ActionToSliceDimensionMap |
GUI for slices interpolation.
There is a separate page describing the general design of QmitkInteractiveSegmentation: QmitkInteractiveSegmentationTechnicalPage
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.
Last contributor:
Definition at line 62 of file QmitkSliceBasedInterpolatorWidget.h.
|
protected |
Definition at line 123 of file QmitkSliceBasedInterpolatorWidget.h.
QmitkSliceBasedInterpolatorWidget::QmitkSliceBasedInterpolatorWidget | ( | QWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
Definition at line 47 of file QmitkSliceBasedInterpolatorWidget.cpp.
References mitk::ToolManagerProvider::GetInstance(), mitk::ToolManagerProvider::GetToolManager(), m_Controls, mitk::BoolProperty::New(), mitk::IntProperty::New(), mitk::New(), mitk::DataNode::New(), OnAcceptAllInterpolationsClicked(), OnAcceptInterpolationClicked(), OnSliceInterpolationInfoChanged(), OnToggleWidgetActivation(), OnToolManagerWorkingDataModified(), and mitk::ToolManager::WorkingDataChanged.
|
virtual |
Definition at line 92 of file QmitkSliceBasedInterpolatorWidget.cpp.
References m_ActionToSliceDimensionMap, OnToolManagerWorkingDataModified(), and mitk::ToolManager::WorkingDataChanged.
|
protected |
Definition at line 531 of file QmitkSliceBasedInterpolatorWidget.cpp.
References AccessFixedDimensionByItk_2, mitk::ProgressBar::AddStepsToDo(), mitk::PlaneGeometry::Clone(), mitk::SegTool2D::DetermineAffectedImageSlice(), mitk::SliceNavigationController::GetCurrentPlaneGeometry(), mitk::ProgressBar::GetInstance(), mitk::RenderingManager::GetInstance(), mitk::Stepper::GetPos(), mitk::BaseController::GetTime(), GetWorkingSlice(), MITK_ERROR, mitk::New(), mitk::ExtractSliceFilter::New(), mitk::ProgressBar::Progress(), mitk::RenderingManager::REQUEST_UPDATE_2DWINDOWS, mitk::RenderingManager::RequestUpdateAll(), and mitk::ProgressBar::Reset().
Referenced by OnAcceptAllPopupActivated().
|
protected |
Definition at line 111 of file QmitkSliceBasedInterpolatorWidget.cpp.
References mitk::BaseRenderer::GetName(), and mitk::SliceNavigationController::GetRenderer().
Referenced by SetSliceNavigationControllers().
|
protected |
Gets the working slice based on the given plane geometry and last saved interaction
planeGeometry | a plane geometry |
Definition at line 282 of file QmitkSliceBasedInterpolatorWidget.cpp.
References mitk::Stepper::GetPos(), mitk::BaseController::GetTime(), MITK_ERROR, mitk::New(), and mitk::ExtractSliceFilter::New().
Referenced by AcceptAllInterpolations(), and OnAcceptInterpolationClicked().
|
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.
Definition at line 259 of file QmitkSliceBasedInterpolatorWidget.cpp.
References mitk::SegTool2D::DetermineAffectedImageSlice().
Referenced by TranslateAndInterpolateChangedSlice().
|
protectedslot |
Definition at line 612 of file QmitkSliceBasedInterpolatorWidget.cpp.
References m_ActionToSliceDimensionMap, and OnAcceptAllPopupActivated().
Referenced by QmitkSliceBasedInterpolatorWidget().
|
protectedslot |
Definition at line 624 of file QmitkSliceBasedInterpolatorWidget.cpp.
References AcceptAllInterpolations(), and m_ActionToSliceDimensionMap.
Referenced by OnAcceptAllInterpolationsClicked().
|
protectedslot |
Reaction to "Accept Current Slice" button click.
Definition at line 445 of file QmitkSliceBasedInterpolatorWidget.cpp.
References AccessFixedDimensionByItk_2, mitk::SegTool2D::DetermineAffectedImageSlice(), mitk::SliceNavigationController::GetCurrentPlaneGeometry(), mitk::UndoController::GetCurrentUndoModel(), mitk::RenderingManager::GetInstance(), mitk::Stepper::GetPos(), mitk::BaseController::GetTime(), GetWorkingSlice(), MITK_ERROR, mitk::New(), mitk::ExtractSliceFilter::New(), mitk::RenderingManager::RequestUpdateAll(), and mitk::UndoModel::SetOperationEvent().
Referenced by QmitkSliceBasedInterpolatorWidget().
void QmitkSliceBasedInterpolatorWidget::OnSliceChanged | ( | itk::Object * | sender, |
const itk::EventObject & | e | ||
) |
Definition at line 216 of file QmitkSliceBasedInterpolatorWidget.cpp.
References mitk::RenderingManager::GetInstance(), mitk::RenderingManager::RequestUpdateAll(), and TranslateAndInterpolateChangedSlice().
Referenced by SetSliceNavigationControllers().
void QmitkSliceBasedInterpolatorWidget::OnSliceInterpolationInfoChanged | ( | const itk::EventObject & | ) |
Just public because it is called by itk::Commands. You should not need to call this.
Definition at line 655 of file QmitkSliceBasedInterpolatorWidget.cpp.
References UpdateVisibleSuggestion().
Referenced by QmitkSliceBasedInterpolatorWidget().
void QmitkSliceBasedInterpolatorWidget::OnSliceNavigationControllerDeleted | ( | const itk::Object * | sender, |
const itk::EventObject & | |||
) |
Definition at line 661 of file QmitkSliceBasedInterpolatorWidget.cpp.
Referenced by SetSliceNavigationControllers().
void QmitkSliceBasedInterpolatorWidget::OnTimeChanged | ( | itk::Object * | sender, |
const itk::EventObject & | e | ||
) |
Definition at line 198 of file QmitkSliceBasedInterpolatorWidget.cpp.
References mitk::SliceNavigationController::SendSlice().
Referenced by SetSliceNavigationControllers().
|
slot |
Reaction to "Start/Stop" button click.
Definition at line 329 of file QmitkSliceBasedInterpolatorWidget.cpp.
References mitk::UndoModel::Clear(), mitk::UndoController::GetCurrentUndoModel(), mitk::RenderingManager::GetInstance(), mitk::ToolManager::GetTools(), mitk::ToolManager::GetWorkingData(), m_Controls, mitk::RenderingManager::RequestUpdateAll(), and UpdateVisibleSuggestion().
Referenced by QmitkSliceBasedInterpolatorWidget().
void QmitkSliceBasedInterpolatorWidget::OnToolManagerWorkingDataModified | ( | ) |
Definition at line 169 of file QmitkSliceBasedInterpolatorWidget.cpp.
References mitk::DataNode::GetData(), mitk::Image::GetDimension(), and mitk::ToolManager::GetWorkingData().
Referenced by QmitkSliceBasedInterpolatorWidget(), and ~QmitkSliceBasedInterpolatorWidget().
|
protected |
Definition at line 685 of file QmitkSliceBasedInterpolatorWidget.cpp.
Referenced by WaitCursorOff().
void QmitkSliceBasedInterpolatorWidget::SetDataStorage | ( | mitk::DataStorage & | storage | ) |
Definition at line 129 of file QmitkSliceBasedInterpolatorWidget.cpp.
void QmitkSliceBasedInterpolatorWidget::SetSliceNavigationControllers | ( | const QList< mitk::SliceNavigationController * > & | controllers | ) |
Sets the slice navigation controllers for getting slice changed events from the views.
Definition at line 134 of file QmitkSliceBasedInterpolatorWidget.cpp.
References CreateActionToSliceDimension(), mitk::Stepper::GetPos(), mitk::BaseController::GetTime(), m_ActionToSliceDimensionMap, mitk::New(), OnSliceChanged(), OnSliceNavigationControllerDeleted(), and OnTimeChanged().
|
signal |
|
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 |
slice | the SliceNavigationController |
Definition at line 234 of file QmitkSliceBasedInterpolatorWidget.cpp.
References mitk::TimeGeometry::GetGeometryForTimeStep(), mitk::SlicedGeometry3D::GetPlaneGeometry(), mitk::SliceNavigationController::TimeGeometryEvent::GetPos(), mitk::SliceNavigationController::TimeGeometryEvent::GetTimeGeometry(), and Interpolate().
Referenced by OnSliceChanged(), and UpdateVisibleSuggestion().
|
protected |
Called internally to update the interpolation suggestion. Finds out about the focused render window and requests an interpolation.
Definition at line 634 of file QmitkSliceBasedInterpolatorWidget.cpp.
References mitk::RenderingManager::GetInstance(), mitk::BaseRenderer::GetMapperID(), mitk::SliceNavigationController::GetRenderer(), mitk::BaseRenderer::GetSlice(), mitk::BaseRenderer::GetWorldTimeGeometry(), mitk::RenderingManager::RequestUpdateAll(), mitk::BaseRenderer::Standard2D, and TranslateAndInterpolateChangedSlice().
Referenced by OnSliceInterpolationInfoChanged(), and OnToggleWidgetActivation().
|
protected |
Definition at line 680 of file QmitkSliceBasedInterpolatorWidget.cpp.
References RestoreOverrideCursor().
|
protected |
Definition at line 675 of file QmitkSliceBasedInterpolatorWidget.cpp.
|
protected |
Definition at line 127 of file QmitkSliceBasedInterpolatorWidget.h.
Referenced by OnAcceptAllInterpolationsClicked(), OnAcceptAllPopupActivated(), SetSliceNavigationControllers(), and ~QmitkSliceBasedInterpolatorWidget().
Ui::QmitkSliceBasedInterpolatorWidgetGUIControls QmitkSliceBasedInterpolatorWidget::m_Controls |
Definition at line 90 of file QmitkSliceBasedInterpolatorWidget.h.
Referenced by OnToggleWidgetActivation(), and QmitkSliceBasedInterpolatorWidget().