Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
Step3.cpp File Reference
#include "QmitkRegisterClasses.h"
#include "QmitkRenderWindow.h"
#include <mitkIOUtil.h>
#include <mitkProperties.h>
#include <mitkRenderingManager.h>
#include <mitkStandaloneDataStorage.h>
#include <mitkTransferFunction.h>
#include <mitkTransferFunctionProperty.h>
#include <itksys/SystemTools.hxx>
#include <QApplication>
#include "QtTesting.h"

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 Change the type of display to 3D. More...
 

Function Documentation

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

Change the type of display to 3D.

As in Step2, load one or more data sets (many image, surface and other formats), but display it in a 3D view. The QmitkRenderWindow is now used for displaying a 3D view, by setting the used mapper-slot to Standard3D. Since volume-rendering is a (rather) slow procedure, the default is that images are not displayed in the 3D view. For this example, we want volume-rendering, thus we switch it on by setting the Boolean-property "volumerendering" to "true".

Examples:
Step3.cpp.

Definition at line 42 of file Step3.cpp.

References mitk::RenderingManager::GetInstance(), mitk::RenderWindowBase::GetRenderer(), mitk::BaseRenderer::GetVtkRenderer(), mitk::IOUtil::Load(), mitk::BoolProperty::New(), mitk::StandaloneDataStorage::New(), mitk::TransferFunctionProperty::New(), mitk::TransferFunction::New(), QmitkRegisterClasses(), QtTesting(), mitk::RenderingManager::RequestUpdateAll(), mitk::VtkPropRenderer::SetDataStorage(), mitk::VtkPropRenderer::SetMapperID(), and mitk::BaseRenderer::Standard3D.