Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
Step5.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 "mitkPointSet.h"
#include "mitkPointSetDataInteractor.h"
#include <QApplication>
#include <QHBoxLayout>
#include <itksys/SystemTools.hxx>
#include <mitkIOUtil.h>
#include "QtTesting.h"

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 Interactively add points. More...
 

Function Documentation

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

Interactively add points.

As in Step4, load one or more data sets (many image, surface and other formats) and create 3 views on the data. Additionally, we want to interactively add points. A node containing a PointSet as data is added to the data tree and a PointSetDataInteractor is associated with the node, which handles the interaction. The interaction pattern is defined in a state-machine, stored in an external XML file. Thus, we need to load a state-machine The interaction patterns defines the events, on which the interactor reacts (e.g., which mouse buttons are used to set a point), the transition to the next state (e.g., the initial may be "empty point set") and associated actions (e.g., add a point at the position where the mouse-click occured).

Examples:
Step5.cpp.

Definition at line 50 of file Step5.cpp.

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