Medical Imaging Interaction Toolkit  2018.4.99-86eb38db
Medical Imaging Interaction Toolkit
MITK Tutorial - Step 8: Use QmitkStdMultiWidget as widget

In this step a QmitkStdMultiWidget is used. It offers four views of the data. From top left to bottom left the views are initialized as axial, sagittal and coronar. The bottom right view is initialized as 3D view.

step8_result.png

Step8 inherits from Step6. The method SetupWidgets() is changed: A QmitkStdMultiWidget is used instead of one QmitkRenderWindow and two instances of QmitkSliceWidget.

// Part Ia: create and initialize QmitkStdMultiWidget
//*************************************************************************
QmitkStdMultiWidget *multiWidget = new QmitkStdMultiWidget(viewParent);
hlayout->addWidget(multiWidget);
// Tell the multiWidget which DataStorage to render
// Initialize views as axial, sagittal, coronar (from
// top-left to bottom)
auto geo = m_DataStorage->ComputeBoundingGeometry3D(m_DataStorage->GetAll());
// Initialize bottom-right view as 3D view
// Enable standard handler for levelwindow-slider
multiWidget->EnableStandardLevelWindow();
// Add the displayed views to the DataStorage to see their positions in 2D and 3D
multiWidget->AddDisplayPlaneSubTree();
multiWidget->AddPlanesToDataStorage();
multiWidget->SetWidgetPlanesVisibility(true);

[Previous step] [Next step]