Public Member Functions | Protected Member Functions

Step8 Class Reference

#include <Step8.h>

Inheritance diagram for Step8:
Inheritance graph
[legend]
Collaboration diagram for Step8:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Step8 (int argc, char *argv[], QWidget *parent=0)
 As Step6, but with QmitkStdMultiWidget as widget.
 ~Step8 ()

Protected Member Functions

virtual void SetupWidgets ()

Detailed Description

Examples:

Step8.h, and Step8main.cpp.

Definition at line 24 of file Step8.h.


Constructor & Destructor Documentation

Step8::Step8 ( int  argc,
char *  argv[],
QWidget *  parent = 0 
)

As Step6, but with QmitkStdMultiWidget as widget.

Examples:
Step8.cpp, and Step8.h.

Definition at line 30 of file Step8.cpp.

                                                    :
        Step6(argc, argv, parent)
{
}
Step8::~Step8 (  ) [inline]
Examples:
Step8.h.

Definition at line 29 of file Step8.h.

{};

Member Function Documentation

void Step8::SetupWidgets (  ) [protected, virtual]

Reimplemented from Step6.

Examples:
Step8.cpp, and Step8.h.

Definition at line 35 of file Step8.cpp.

References QmitkStdMultiWidget::AddDisplayPlaneSubTree(), QmitkStdMultiWidget::AddPlanesToDataStorage(), QmitkStdMultiWidget::EnableNavigationControllerEventListening(), QmitkStdMultiWidget::EnableStandardLevelWindow(), mitk::GlobalInteraction::GetInstance(), mitk::RenderingManager::GetInstance(), QmitkStdMultiWidget::GetMoveAndZoomInteractor(), mitk::RenderWindowBase::GetRenderer(), QmitkStdMultiWidget::GetRenderWindow4(), Step6::m_DataStorage, QmitkStdMultiWidget::SetDataStorage(), mitk::VtkPropRenderer::SetMapperID(), QmitkStdMultiWidget::SetWidgetPlanesVisibility(), and mitk::BaseRenderer::Standard3D.

{
        //*************************************************************************
        // Part I: Create windows and pass the tree to it
        //*************************************************************************

        // Create toplevel widget with vertical layout
        QVBoxLayout* vlayout = new QVBoxLayout(this);
        vlayout->setMargin(0);
        vlayout->setSpacing(2);

        // Create viewParent widget with horizontal layout
        QWidget* viewParent = new QWidget(this);
        vlayout->addWidget(viewParent);
        QHBoxLayout* hlayout = new QHBoxLayout(viewParent);
        hlayout->setMargin(0);

        //*************************************************************************
        // Part Ia: create and initialize QmitkStdMultiWidget
        //*************************************************************************
        QmitkStdMultiWidget* multiWidget = new QmitkStdMultiWidget(viewParent);

        hlayout->addWidget(multiWidget);

        // Tell the multiWidget which DataStorage to render
        multiWidget->SetDataStorage(m_DataStorage);

        // Initialize views as transversal, sagittal, coronar (from
        // top-left to bottom)
        mitk::TimeSlicedGeometry::Pointer geo = m_DataStorage->ComputeBoundingGeometry3D(
                        m_DataStorage->GetAll());
        mitk::RenderingManager::GetInstance()->InitializeViews(geo);

        // Initialize bottom-right view as 3D view
        multiWidget->GetRenderWindow4()->GetRenderer()->SetMapperID(
                        mitk::BaseRenderer::Standard3D);

        // 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);

        //*************************************************************************
        // Part II: Setup standard interaction with the mouse
        //*************************************************************************

        // Moving the cut-planes to click-point
        multiWidget->EnableNavigationControllerEventListening();

        // Zooming and panning
        mitk::GlobalInteraction::GetInstance()->AddListener(
                        multiWidget->GetMoveAndZoomInteractor());
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines