Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
Step4.cpp File Reference
#include "QmitkRegisterClasses.h"
#include "QmitkRenderWindow.h"
#include "QmitkSliceWidget.h"
#include "mitkNodePredicateDataType.h"
#include "mitkProperties.h"
#include "mitkRenderingManager.h"
#include "mitkStandaloneDataStorage.h"
#include <mitkIOUtil.h>
#include <QApplication>
#include <QHBoxLayout>
#include <itksys/SystemTools.hxx>
#include <mitkImage.h>
#include "QtTesting.h"

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 Use several views to explore data. More...
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Use several views to explore data.

As in Step2 and Step3, load one or more data sets (many image, surface and other formats), but create 3 views on the data. The QmitkRenderWindow is used for displaying a 3D view as in Step3, but without volume-rendering. Furthermore, we create two 2D views for slicing through the data. We use the class QmitkSliceWidget, which is based on the class QmitkRenderWindow, but additionally provides sliders to slice through the data. We create two instances of QmitkSliceWidget, one for axial and one for sagittal slicing. The two slices are also shown at their correct position in 3D as well as intersection-line, each in the other 2D view.

Examples:
Step4.cpp.

Definition at line 46 of file Step4.cpp.

References mitk::SliceNavigationController::Axial, mitk::BaseRenderer::GetCurrentWorldGeometry2DNode(), QmitkSliceWidget::GetRenderer(), mitk::RenderWindowBase::GetRenderer(), mitk::BaseRenderer::GetVtkRenderer(), mitk::IOUtil::Load(), mitk::StandaloneDataStorage::New(), QmitkRegisterClasses(), QtTesting(), mitk::SliceNavigationController::Sagittal, QmitkSliceWidget::SetData(), QmitkSliceWidget::SetDataStorage(), mitk::VtkPropRenderer::SetDataStorage(), QmitkSliceWidget::SetLevelWindowEnabled(), mitk::VtkPropRenderer::SetMapperID(), and mitk::BaseRenderer::Standard3D.