#include "mitkDataNode.h"#include <vtkWindow.h>#include "mitkVtkPropRenderer.h"#include "mitkTestingMacros.h"#include "mitkGlobalInteraction.h"#include <iostream>#include <mitkContour.h>#include <mitkContourSet.h>#include <mitkItkBaseDataAdapter.h>#include <mitkPointData.h>#include <mitkMesh.h>#include <mitkSeedsImage.h>#include <mitkBoundingObject.h>#include <mitkUnstructuredGrid.h>#include <mitkMapper.h>#include <mitkMapper2D.h>#include <mitkVtkMapper2D.h>#include <mitkContourMapper2D.h>#include <mitkContourSetMapper2D.h>#include <mitkMeshMapper2D.h>#include <mitkUnstructuredGridMapper2D.h>#include <mitkLineMapper2D.h>#include <mitkSplineMapper2D.h>#include <mitkContourSetVtkMapper3D.h>#include <mitkContourVtkMapper3D.h>#include <mitkMeshVtkMapper3D.h>#include <mitkPointDataVtkMapper3D.h>#include <mitkUnstructuredGridVtkMapper3D.h>#include <mitkLineVtkMapper3D.h>#include <mitkSplineVtkMapper3D.h>#include <mitkConnectPointsInteractor.h>#include <mitkContourInteractor.h>#include <mitkExtrudedContourInteractor.h>#include <mitkPointInteractor.h>#include <mitkPointSelectorInteractor.h>#include <mitkSeedsInteractor.h>#include <mitkDisplayPointSetInteractor.h>#include <mitkAnnotationProperty.h>#include <mitkClippingProperty.h>#include <mitkColorProperty.h>#include <mitkEnumerationProperty.h>#include <mitkGridRepresentationProperty.h>#include <mitkGridVolumeMapperProperty.h>#include <mitkOrganTypeProperty.h>#include <mitkVtkInterpolationProperty.h>#include <mitkVtkRepresentationProperty.h>#include <mitkVtkResliceInterpolationProperty.h>#include <mitkVtkScalarModeProperty.h>Go to the source code of this file.
Classes | |
| class | mitkDataNodeExtTestClass |
Functions | |
| int | mitkDataNodeExtTest (int, char *[]) |
| int mitkDataNodeExtTest | ( | int | , |
| char * | [] | ||
| ) |
Definition at line 240 of file mitkDataNodeExtTest.cpp.
References mitk::GlobalInteraction::GetInstance(), MITK_TEST_BEGIN, MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END, mitk::DataNode::New(), mitkDataNodeExtTestClass::TestDataSetting(), mitkDataNodeExtTestClass::TestInteractorSetting(), and mitkDataNodeExtTestClass::TestMapperSetting().
{
// always start with this!
MITK_TEST_BEGIN("DataNode")
// Global interaction must(!) be initialized
mitk::GlobalInteraction::GetInstance()->Initialize("global");
// let's create an object of our class
mitk::DataNode::Pointer myDataNode = mitk::DataNode::New();
// first test: did this work?
// using MITK_TEST_CONDITION_REQUIRED makes the test stop after failure, since
// it makes no sense to continue without an object.
MITK_TEST_CONDITION_REQUIRED(myDataNode.IsNotNull(),"Testing instantiation")
//test setData() Method
mitkDataNodeExtTestClass::TestDataSetting(myDataNode);
mitkDataNodeExtTestClass::TestMapperSetting(myDataNode);
//note, that no data is set to the dataNode
mitkDataNodeExtTestClass::TestInteractorSetting(myDataNode);
// write your own tests here and use the macros from mitkTestingMacros.h !!!
// do not write to std::cout and do not return from this function yourself!
// always end with this!
MITK_TEST_END()
}
1.7.2