Medical Imaging Interaction Toolkit  2018.4.99-b7f3afaa
Medical Imaging Interaction Toolkit
MitkCoreTestDriver_main.cpp File Reference
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "/home/ubuntu/jenkins-agent/workspace/MITK/Nightly/Linux/build/MITK-build/Modules/Core/test/MitkCoreTestDriver_extras.h"

Go to the source code of this file.

Macros

#define CM_CAST(TYPE, EXPR)
 
#define CM_NULL
 

Typedefs

typedef int(* MainFuncPointer) (int, char *[])
 

Functions

int mitkAccessByItkTest (int, char *[])
 
int mitkCoreObjectFactoryTest (int, char *[])
 
int mitkDataNodeTest (int, char *[])
 
int mitkMaterialTest (int, char *[])
 
int mitkActionTest (int, char *[])
 
int mitkDispatcherTest (int, char *[])
 
int mitkEnumerationPropertyTest (int, char *[])
 
int mitkFileReaderRegistryTest (int, char *[])
 
int mitkFloatToStringTest (int, char *[])
 
int mitkGenericPropertyTest (int, char *[])
 
int mitkGeometry3DTest (int, char *[])
 
int mitkGeometry3DEqualTest (int, char *[])
 
int mitkGeometryDataIOTest (int, char *[])
 
int mitkGeometryDataToSurfaceFilterTest (int, char *[])
 
int mitkImageCastTest (int, char *[])
 
int mitkImageDataItemTest (int, char *[])
 
int mitkImageGeneratorTest (int, char *[])
 
int mitkIOUtilTest (int, char *[])
 
int mitkBaseDataTest (int, char *[])
 
int mitkImportItkImageTest (int, char *[])
 
int mitkGrabItkImageMemoryTest (int, char *[])
 
int mitkInstantiateAccessFunctionTest (int, char *[])
 
int mitkLevelWindowTest (int, char *[])
 
int mitkMessageTest (int, char *[])
 
int mitkPixelTypeTest (int, char *[])
 
int mitkPlaneGeometryTest (int, char *[])
 
int mitkPointSetTest (int, char *[])
 
int mitkPointSetEqualTest (int, char *[])
 
int mitkPointSetFileIOTest (int, char *[])
 
int mitkPointSetOnEmptyTest (int, char *[])
 
int mitkPointSetLocaleTest (int, char *[])
 
int mitkPointSetWriterTest (int, char *[])
 
int mitkPointSetPointOperationsTest (int, char *[])
 
int mitkProgressBarTest (int, char *[])
 
int mitkPropertyTest (int, char *[])
 
int mitkPropertyListTest (int, char *[])
 
int mitkPropertyPersistenceTest (int, char *[])
 
int mitkPropertyPersistenceInfoTest (int, char *[])
 
int mitkPropertyRelationRuleBaseTest (int, char *[])
 
int mitkPropertyRelationsTest (int, char *[])
 
int mitkSlicedGeometry3DTest (int, char *[])
 
int mitkSliceNavigationControllerTest (int, char *[])
 
int mitkSurfaceTest (int, char *[])
 
int mitkSurfaceEqualTest (int, char *[])
 
int mitkSurfaceToSurfaceFilterTest (int, char *[])
 
int mitkTimeGeometryTest (int, char *[])
 
int mitkProportionalTimeGeometryTest (int, char *[])
 
int mitkUndoControllerTest (int, char *[])
 
int mitkVtkWidgetRenderingTest (int, char *[])
 
int mitkVerboseLimitedLinearUndoTest (int, char *[])
 Test of the LimitedLinearUndo object. More...
 
int mitkWeakPointerTest (int, char *[])
 
int mitkTransferFunctionTest (int, char *[])
 
int mitkStepperTest (int, char *[])
 
int mitkRenderingManagerTest (int, char *[])
 
int mitkCompositePixelValueToStringTest (int, char *[])
 
int vtkMitkThickSlicesFilterTest (int, char *[])
 
int mitkNodePredicateSourceTest (int, char *[])
 
int mitkNodePredicateDataPropertyTest (int, char *[])
 
int mitkNodePredicateFunctionTest (int, char *[])
 
int mitkVectorTest (int, char *[])
 
int mitkClippedSurfaceBoundsCalculatorTest (int, char *[])
 
int mitkExceptionTest (int, char *[])
 
int mitkExtractSliceFilterTest (int, char *[])
 
int mitkLogTest (int, char *[])
 
int mitkImageDimensionConverterTest (int, char *[])
 
int mitkLoggingAdapterTest (int, char *[])
 
int mitkUIDGeneratorTest (int, char *[])
 
int mitkPlanePositionManagerTest (int, char *[])
 
int mitkAffineTransformBaseTest (int, char *[])
 
int mitkPropertyAliasesTest (int, char *[])
 
int mitkPropertyDescriptionsTest (int, char *[])
 
int mitkPropertyExtensionsTest (int, char *[])
 
int mitkPropertyFiltersTest (int, char *[])
 
int mitkPropertyKeyPathTest (int, char *[])
 
int mitkTinyXMLTest (int, char *[])
 
int mitkRawImageFileReaderTest (int, char *[])
 
int mitkInteractionEventTest (int, char *[])
 
int mitkLookupTableTest (int, char *[])
 
int mitkSTLFileReaderTest (int, char *[])
 
int mitkPointTypeConversionTest (int, char *[])
 
int mitkVectorTypeConversionTest (int, char *[])
 
int mitkMatrixTypeConversionTest (int, char *[])
 
int mitkArrayTypeConversionTest (int, char *[])
 
int mitkSurfaceToImageFilterTest (int, char *[])
 
int mitkBaseGeometryTest (int, char *[])
 
int mitkImageToSurfaceFilterTest (int, char *[])
 
int mitkEqualTest (int, char *[])
 
int mitkLineTest (int, char *[])
 
int mitkArbitraryTimeGeometryTest (int, char *[])
 
int mitkItkImageIOTest (int, char *[])
 
int mitkLevelWindowManagerCppUnitTest (int, char *[])
 
int mitkVectorPropertyTest (int, char *[])
 
int mitkTemporoSpatialStringPropertyTest (int, char *[])
 
int mitkPropertyNameHelperTest (int, char *[])
 
int mitkNodePredicateGeometryTest (int, char *[])
 
int mitkPreferenceListReaderOptionsFunctorTest (int, char *[])
 
int mitkGenericIDRelationRuleTest (int, char *[])
 
int mitkSourceImageRelationRuleTest (int, char *[])
 
int mitkPointSetDataInteractorTest (int, char *[])
 
int mitkSurfaceVtkMapper2DTest (int, char *[])
 
int mitkSurfaceVtkMapper2D3DTest (int, char *[])
 
int mitkImageTimeSelectorTest (int, char *[])
 
int mitkImageAccessorTest (int, char *[])
 
int mitkSurfaceVtkWriterTest (int, char *[])
 
int mitkDataStorageTest (int, char *[])
 
int mitkEventConfigTest (int, char *[])
 
int mitkImageTest (int, char *[])
 
int mitkImageVtkMapper2DTest (int, char *[])
 
int mitkImageVtkMapper2DLevelWindowTest (int, char *[])
 
int mitkImageVtkMapper2DOpacityTest (int, char *[])
 
int mitkImageVtkMapper2DResliceInterpolationPropertyTest (int, char *[])
 
int mitkImageVtkMapper2DColorTest (int, char *[])
 
int mitkImageVtkMapper2DSwivelTest (int, char *[])
 
int mitkImageVtkMapper2DTransferFunctionTest (int, char *[])
 
int mitkImageVtkMapper2DOpacityTransferFunctionTest (int, char *[])
 
int mitkImageVtkMapper2DLookupTableTest (int, char *[])
 
int mitkSurfaceVtkMapper3DTest (int, char *[])
 
int mitkVolumeCalculatorTest (int, char *[])
 
int mitkLevelWindowManagerTest (int, char *[])
 
int mitkPointSetVtkMapper2DTest (int, char *[])
 
int mitkPointSetVtkMapper2DImageTest (int, char *[])
 
int mitkPointSetVtkMapper2DGlyphTypeTest (int, char *[])
 
int mitkPointSetVtkMapper2DTransformedPointsTest (int, char *[])
 
int mitkVTKRenderWindowSizeTest (int, char *[])
 
int mitkMultiComponentImageDataComparisonFilterTest (int, char *[])
 
int mitkImageToItkTest (int, char *[])
 
int mitkImageSliceSelectorTest (int, char *[])
 
int mitkPointSetReaderTest (int, char *[])
 
int mitkImageEqualTest (int, char *[])
 
int mitkRotatedSlice4DTest (int, char *[])
 
int mitkPlaneGeometryDataMapper2DTest (int, char *[])
 
int mitkSurfaceDepthSortingTest (int, char *[])
 
static char * lowercase (const char *string)
 
int main (int ac, char *av[])
 

Variables

static functionMapEntry cmakeGeneratedFunctionMapEntries []
 
static const int NumTests
 

Macro Definition Documentation

◆ CM_CAST

#define CM_CAST (   TYPE,
  EXPR 
)

Definition at line 158 of file MitkCoreTestDriver_main.cpp.

Referenced by lowercase().

◆ CM_NULL

#define CM_NULL

Definition at line 159 of file MitkCoreTestDriver_main.cpp.

Referenced by lowercase(), and main().

Typedef Documentation

◆ MainFuncPointer

typedef int(* MainFuncPointer) (int, char *[])

Definition at line 164 of file MitkCoreTestDriver_main.cpp.

Function Documentation

◆ lowercase()

static char* lowercase ( const char *  string)
static

Definition at line 717 of file MitkCoreTestDriver_main.cpp.

References CM_CAST, and CM_NULL.

Referenced by main().

◆ main()

◆ mitkAccessByItkTest()

int mitkAccessByItkTest ( int  ,
char *  [] 
)

Definition at line 284 of file mitkAccessByItkTest.cpp.

References MITK_TEST_BEGIN(), MITK_TEST_END(), and MITK_TEST_OUTPUT.

◆ mitkActionTest()

int mitkActionTest ( int  ,
char *  [] 
)

◆ mitkAffineTransformBaseTest()

int mitkAffineTransformBaseTest ( int  ,
char *  [] 
)

This test shall ensure and document the basic functionality of the itk AffineTransformation functionality and test some basic transformation functionalities provided by mitk.

Definition at line 184 of file mitkAffineTransformBaseTest.cpp.

References MITK_TEST_BEGIN(), MITK_TEST_END(), testIfBothTransformationsProduceSameResults(), testIfPointIsTransformedAsExpected(), and testTransferItkTransformToVtkMatrix().

◆ mitkArbitraryTimeGeometryTest()

int mitkArbitraryTimeGeometryTest ( int  ,
char *  [] 
)

◆ mitkArrayTypeConversionTest()

int mitkArrayTypeConversionTest ( int  ,
char *  [] 
)

◆ mitkBaseDataTest()

int mitkBaseDataTest ( int  ,
char *  [] 
)

◆ mitkBaseGeometryTest()

int mitkBaseGeometryTest ( int  ,
char *  [] 
)

◆ mitkClippedSurfaceBoundsCalculatorTest()

int mitkClippedSurfaceBoundsCalculatorTest ( int  ,
char *  [] 
)

The class mitkClippedSurfaceBoundsCalculator calculates the intersection points of a PlaneGeometry and a Geometry3D. This unit test checks if the correct min and max values for the three spatial directions (x, y, z) are calculated. To test this we define artificial PlaneGeometries and Geometry3Ds and test different scenarios:

  1. planes which are inside the bounding box of a 3D geometry but only on one slice
  2. planes which are outside of the bounding box
  3. planes which are inside the bounding box but over more than one slice

Note: Currently rotated geometries are not tested!

ToDo: test also rotated 3D geometry!

Definition at line 710 of file mitkClippedSurfaceBoundsCalculatorTest.cpp.

References CheckIntersectionPointsOfTwoGeometry3D(), CheckIntersectionWithPointCloud(), CheckIntersectionWithRotatedGeometry(), CheckIntersectionWithRotatedGeometry90(), CheckPlanesInsideBoundingBox(), CheckPlanesInsideBoundingBoxOnlyOnOneSlice(), CheckPlanesOutsideOfBoundingBox(), mitk::FillVector3D(), MITK_TEST_BEGIN(), MITK_TEST_END(), mitk::SlicedGeometry3D::New(), and mitk::PlaneGeometry::New().

◆ mitkCompositePixelValueToStringTest()

int mitkCompositePixelValueToStringTest ( int  ,
char *  [] 
)

◆ mitkCoreObjectFactoryTest()

int mitkCoreObjectFactoryTest ( int  ,
char *  [] 
)

◆ mitkDataNodeTest()

int mitkDataNodeTest ( int  ,
char *  [] 
)

◆ mitkDataStorageTest()

◆ mitkDispatcherTest()

int mitkDispatcherTest ( int  ,
char *  [] 
)

◆ mitkEnumerationPropertyTest()

int mitkEnumerationPropertyTest ( int  ,
char *  [] 
)

◆ mitkEqualTest()

int mitkEqualTest ( int  ,
char *  [] 
)

◆ mitkEventConfigTest()

◆ mitkExceptionTest()

int mitkExceptionTest ( int  ,
char *  [] 
)

◆ mitkExtractSliceFilterTest()

◆ mitkFileReaderRegistryTest()

int mitkFileReaderRegistryTest ( int  ,
char *  [] 
)

TODO

Definition at line 93 of file mitkFileReaderRegistryTest.cpp.

References MITK_TEST_BEGIN(), and MITK_TEST_END().

◆ mitkFloatToStringTest()

int mitkFloatToStringTest ( int  ,
char *  [] 
)

◆ mitkGenericIDRelationRuleTest()

int mitkGenericIDRelationRuleTest ( int  ,
char *  [] 
)

◆ mitkGenericPropertyTest()

int mitkGenericPropertyTest ( int  ,
char *  [] 
)

Definition at line 73 of file mitkGenericPropertyTest.cpp.

References MITK_TEST_BEGIN(), and MITK_TEST_END().

◆ mitkGeometry3DEqualTest()

int mitkGeometry3DEqualTest ( int  ,
char *  [] 
)

◆ mitkGeometry3DTest()

◆ mitkGeometryDataIOTest()

int mitkGeometryDataIOTest ( int  ,
char *  [] 
)

◆ mitkGeometryDataToSurfaceFilterTest()

◆ mitkGrabItkImageMemoryTest()

int mitkGrabItkImageMemoryTest ( int  ,
char *  [] 
)

Definition at line 110 of file mitkGrabItkImageMemoryTest.cpp.

References MITK_TEST_BEGIN(), and MITK_TEST_END().

◆ mitkImageAccessorTest()

◆ mitkImageCastTest()

int mitkImageCastTest ( int  ,
char *  [] 
)

◆ mitkImageDataItemTest()

int mitkImageDataItemTest ( int  ,
char *  [] 
)

◆ mitkImageDimensionConverterTest()

◆ mitkImageEqualTest()

int mitkImageEqualTest ( int  ,
char *  [] 
)

◆ mitkImageGeneratorTest()

int mitkImageGeneratorTest ( int  ,
char *  [] 
)

◆ mitkImageSliceSelectorTest()

int mitkImageSliceSelectorTest ( int  ,
char *  [] 
)

Definition at line 18 of file mitkImageSliceSelectorTest.cpp.

References image, and mitk::ImageSliceSelector::New().

◆ mitkImageTest()

◆ mitkImageTimeSelectorTest()

◆ mitkImageToItkTest()

int mitkImageToItkTest ( int  ,
char *  [] 
)

◆ mitkImageToSurfaceFilterTest()

int mitkImageToSurfaceFilterTest ( int  ,
char *  [] 
)

◆ mitkImageVtkMapper2DColorTest()

◆ mitkImageVtkMapper2DLevelWindowTest()

◆ mitkImageVtkMapper2DLookupTableTest()

◆ mitkImageVtkMapper2DOpacityTest()

◆ mitkImageVtkMapper2DOpacityTransferFunctionTest()

◆ mitkImageVtkMapper2DResliceInterpolationPropertyTest()

◆ mitkImageVtkMapper2DSwivelTest()

◆ mitkImageVtkMapper2DTest()

◆ mitkImageVtkMapper2DTransferFunctionTest()

◆ mitkImportItkImageTest()

int mitkImportItkImageTest ( int  ,
char *  [] 
)

◆ mitkInstantiateAccessFunctionTest()

int mitkInstantiateAccessFunctionTest ( int  ,
char *  [] 
)

◆ mitkInteractionEventTest()

int mitkInteractionEventTest ( int  ,
char *  [] 
)

◆ mitkIOUtilTest()

int mitkIOUtilTest ( int  ,
char *  [] 
)

◆ mitkItkImageIOTest()

int mitkItkImageIOTest ( int  ,
char *  [] 
)

◆ mitkLevelWindowManagerCppUnitTest()

int mitkLevelWindowManagerCppUnitTest ( int  ,
char *  [] 
)

◆ mitkLevelWindowManagerTest()

int mitkLevelWindowManagerTest ( int  ,
char *  [] 
)

◆ mitkLevelWindowTest()

◆ mitkLineTest()

int mitkLineTest ( int  ,
char *  [] 
)

◆ mitkLoggingAdapterTest()

int mitkLoggingAdapterTest ( int  ,
char *  [] 
)

Definition at line 72 of file mitkLoggingAdapterTest.cpp.

References MITK_TEST_BEGIN(), and MITK_TEST_END().

◆ mitkLogTest()

int mitkLogTest ( int  ,
char *  [] 
)

◆ mitkLookupTableTest()

int mitkLookupTableTest ( int  ,
char *  [] 
)

◆ mitkMaterialTest()

int mitkMaterialTest ( int  ,
char *  [] 
)

Definition at line 322 of file mitkMaterialTest.cpp.

References MITK_TEST_BEGIN(), and MITK_TEST_END().

◆ mitkMatrixTypeConversionTest()

int mitkMatrixTypeConversionTest ( int  ,
char *  [] 
)

◆ mitkMessageTest()

int mitkMessageTest ( int  ,
char *  [] 
)

◆ mitkMultiComponentImageDataComparisonFilterTest()

◆ mitkNodePredicateDataPropertyTest()

int mitkNodePredicateDataPropertyTest ( int  ,
char *  [] 
)

◆ mitkNodePredicateFunctionTest()

int mitkNodePredicateFunctionTest ( int  ,
char *  [] 
)

◆ mitkNodePredicateGeometryTest()

int mitkNodePredicateGeometryTest ( int  ,
char *  [] 
)

◆ mitkNodePredicateSourceTest()

◆ mitkPixelTypeTest()

int mitkPixelTypeTest ( int  ,
char *  [] 
)

◆ mitkPlaneGeometryDataMapper2DTest()

◆ mitkPlaneGeometryTest()

int mitkPlaneGeometryTest ( int  ,
char *  [] 
)

◆ mitkPlanePositionManagerTest()

◆ mitkPointSetDataInteractorTest()

int mitkPointSetDataInteractorTest ( int  ,
char *  [] 
)

◆ mitkPointSetEqualTest()

int mitkPointSetEqualTest ( int  ,
char *  [] 
)

◆ mitkPointSetFileIOTest()

int mitkPointSetFileIOTest ( int  ,
char *  [] 
)

◆ mitkPointSetLocaleTest()

int mitkPointSetLocaleTest ( int  ,
char *  [] 
)

◆ mitkPointSetOnEmptyTest()

int mitkPointSetOnEmptyTest ( int  ,
char *  [] 
)

◆ mitkPointSetPointOperationsTest()

int mitkPointSetPointOperationsTest ( int  ,
char *  [] 
)

◆ mitkPointSetReaderTest()

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

Test for the class "mitkPointSetReader".

argc and argv are the command line parameters which were passed to the ADD_TEST command in the CMakeLists.txt file. For the automatic tests, argv is either empty for the simple tests or contains the filename of a test data set for the tests (see CMakeLists.txt).

Definition at line 26 of file mitkPointSetReaderTest.cpp.

References mitk::IFileIO::GetConfidenceLevel(), mitk::FileReaderRegistry::GetMimeTypeForFile(), mitk::FileReaderRegistry::GetReaders(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), mitk::IFileReader::Read(), mitk::IFileReader::SetInput(), mitk::IFileIO::Supported, and mitk::IFileIO::Unsupported.

◆ mitkPointSetTest()

int mitkPointSetTest ( int  ,
char *  [] 
)

◆ mitkPointSetVtkMapper2DGlyphTypeTest()

◆ mitkPointSetVtkMapper2DImageTest()

◆ mitkPointSetVtkMapper2DTest()

◆ mitkPointSetVtkMapper2DTransformedPointsTest()

◆ mitkPointSetWriterTest()

int mitkPointSetWriterTest ( int  ,
char *  [] 
)

Test for the class "mitkPointSetFileWriter".

argc and argv are the command line parameters which were passed to the ADD_TEST command in the CMakeLists.txt file. For the automatic tests, argv is either empty for the simple tests or contains the filename of a test image for the image tests (see CMakeLists.txt).

Definition at line 29 of file mitkPointSetWriterTest.cpp.

References mitk::FileWriterSelector::Get(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), MITK_TEST_FAILED_MSG, mitk::PointSet::New(), mitk::IFileWriter::SetInput(), and mitk::IFileWriter::SetOutputLocation().

◆ mitkPointTypeConversionTest()

int mitkPointTypeConversionTest ( int  ,
char *  [] 
)

◆ mitkPreferenceListReaderOptionsFunctorTest()

int mitkPreferenceListReaderOptionsFunctorTest ( int  ,
char *  [] 
)

◆ mitkProgressBarTest()

int mitkProgressBarTest ( int  ,
char *  [] 
)

◆ mitkPropertyAliasesTest()

int mitkPropertyAliasesTest ( int  ,
char *  [] 
)

◆ mitkPropertyDescriptionsTest()

int mitkPropertyDescriptionsTest ( int  ,
char *  [] 
)

◆ mitkPropertyExtensionsTest()

int mitkPropertyExtensionsTest ( int  ,
char *  [] 
)

◆ mitkPropertyFiltersTest()

int mitkPropertyFiltersTest ( int  ,
char *  [] 
)

◆ mitkPropertyKeyPathTest()

int mitkPropertyKeyPathTest ( int  ,
char *  [] 
)

◆ mitkPropertyListTest()

◆ mitkPropertyNameHelperTest()

int mitkPropertyNameHelperTest ( int  ,
char *  [] 
)

◆ mitkPropertyPersistenceInfoTest()

int mitkPropertyPersistenceInfoTest ( int  ,
char *  [] 
)

◆ mitkPropertyPersistenceTest()

int mitkPropertyPersistenceTest ( int  ,
char *  [] 
)

◆ mitkPropertyRelationRuleBaseTest()

int mitkPropertyRelationRuleBaseTest ( int  ,
char *  [] 
)

◆ mitkPropertyRelationsTest()

int mitkPropertyRelationsTest ( int  ,
char *  [] 
)

◆ mitkPropertyTest()

int mitkPropertyTest ( int  ,
char *  [] 
)

◆ mitkProportionalTimeGeometryTest()

int mitkProportionalTimeGeometryTest ( int  ,
char *  [] 
)

◆ mitkRawImageFileReaderTest()

int mitkRawImageFileReaderTest ( int  ,
char *  [] 
)

◆ mitkRenderingManagerTest()

◆ mitkRotatedSlice4DTest()

◆ mitkSlicedGeometry3DTest()

◆ mitkSliceNavigationControllerTest()

int mitkSliceNavigationControllerTest ( int  ,
char *  [] 
)

◆ mitkSourceImageRelationRuleTest()

int mitkSourceImageRelationRuleTest ( int  ,
char *  [] 
)

◆ mitkStepperTest()

int mitkStepperTest ( int  ,
char *  [] 
)

◆ mitkSTLFileReaderTest()

int mitkSTLFileReaderTest ( int  ,
char *  [] 
)

◆ mitkSurfaceDepthSortingTest()

◆ mitkSurfaceEqualTest()

int mitkSurfaceEqualTest ( int  ,
char *  [] 
)

◆ mitkSurfaceTest()

int mitkSurfaceTest ( int  ,
char *  [] 
)

◆ mitkSurfaceToImageFilterTest()

int mitkSurfaceToImageFilterTest ( int  ,
char *  [] 
)

◆ mitkSurfaceToSurfaceFilterTest()

int mitkSurfaceToSurfaceFilterTest ( int  ,
char *  [] 
)

◆ mitkSurfaceVtkMapper2D3DTest()

int mitkSurfaceVtkMapper2D3DTest ( int  ,
char *  [] 
)

◆ mitkSurfaceVtkMapper2DTest()

int mitkSurfaceVtkMapper2DTest ( int  ,
char *  [] 
)

◆ mitkSurfaceVtkMapper3DTest()

◆ mitkSurfaceVtkWriterTest()

int mitkSurfaceVtkWriterTest ( int  ,
char *  argv[] 
)

Simple example for a test for the (non-existent) class "ClassName".

argc and argv are the command line parameters which were passed to the ADD_TEST command in the CMakeLists.txt file. For the automatic tests, argv is either empty for the simple tests or contains the filename of a test image for the image tests (see CMakeLists.txt).

Definition at line 30 of file mitkSurfaceVtkWriterTest.cpp.

References MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), MITK_TEST_FAILED_MSG, mitk::Surface::New(), and mitk::IOUtil::Save().

◆ mitkTemporoSpatialStringPropertyTest()

int mitkTemporoSpatialStringPropertyTest ( int  ,
char *  [] 
)

◆ mitkTimeGeometryTest()

int mitkTimeGeometryTest ( int  ,
char *  [] 
)

◆ mitkTinyXMLTest()

int mitkTinyXMLTest ( int  ,
char *  [] 
)

◆ mitkTransferFunctionTest()

int mitkTransferFunctionTest ( int  ,
char *  [] 
)

Unit test for class mitk::TransferFunction.

argc and argv are the command line parameters which were passed to the ADD_TEST command in the CMakeLists.txt file. For the automatic tests, argv is either empty for the simple tests or contains the filename of a test image for the image tests (see CMakeLists.txt).

Definition at line 28 of file mitkTransferFunctionTest.cpp.

References MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), mitk::TransferFunctionInitializer::New(), and mitk::TransferFunction::New().

◆ mitkUIDGeneratorTest()

int mitkUIDGeneratorTest ( int  ,
char *  [] 
)

◆ mitkUndoControllerTest()

int mitkUndoControllerTest ( int  ,
char *  [] 
)

Simple example for a test for the (non-existent) class "UndoController".

argc and argv are the command line parameters which were passed to the ADD_TEST command in the CMakeLists.txt file. For the automatic tests, argv is either empty for the simple tests or contains the filename of a test image for the image tests (see CMakeLists.txt).

Definition at line 28 of file mitkUndoControllerTest.cpp.

References mitk::UndoController::LIMITEDLINEARUNDO, MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), and mitk::UndoController::VERBOSE_LIMITEDLINEARUNDO.

◆ mitkVectorPropertyTest()

int mitkVectorPropertyTest ( int  ,
char *  [] 
)

◆ mitkVectorTest()

int mitkVectorTest ( int  ,
char *  [] 
)

◆ mitkVectorTypeConversionTest()

int mitkVectorTypeConversionTest ( int  ,
char *  [] 
)

◆ mitkVerboseLimitedLinearUndoTest()

int mitkVerboseLimitedLinearUndoTest ( int  ,
char *  [] 
)

Test of the LimitedLinearUndo object.

This test was motivated by bug 3248 which had to check memory leakage while using mitkOperations within the UndoMechanism. OperationObjects are added to the UndoController and stored within two lists (m_UndoList and m_RedoList) inside LimitedLinearUndo and derived from this VerboseLimitedLinearUndo. When using Undo during runtime operations are moved from UndoList to RedoList. In case of a new interaction, causing new operations to be stored in the UndoList the RedoList needs to be cleared. For this, the operations and all connected objects need to be deleted and memory to be freed. And this what this test checks!

argc and argv are the command line parameters which were passed to the ADD_TEST command in the CMakeLists.txt file. For the automatic tests, argv is either empty for the simple tests or contains the filename of a test image for the image tests (see CMakeLists.txt).

Definition at line 56 of file mitkVerboseLimitedLinearUndoTest.cpp.

References g_GlobalCounter, mitk::UndoStackItem::IncCurrObjectEventId(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), mitk::OpTEST, and mitk::UndoController::VERBOSE_LIMITEDLINEARUNDO.

◆ mitkVolumeCalculatorTest()

int mitkVolumeCalculatorTest ( int  ,
char *  [] 
)

◆ mitkVTKRenderWindowSizeTest()

int mitkVTKRenderWindowSizeTest ( int  ,
char *  [] 
)

Check if a patch to VTK is applied as in http://paraview.org/Bug/view.php?id=14122

Bug description from there:

" After moving over to Visual Studio 2012, we found a strange problem where vtkRenderWindow GetSize() returns something different than what was provided to SetSize(). Specifically, width and height are 8 pixels less than expected. I found a problem report which appears to describe what we are seeing. The problem goes away if we change the desktop theme to Windows Classic. "

the patch from this bug should be applied to MITK's default VTK version.

Test can be removed with VTK 6.

Definition at line 50 of file mitkVTKRenderWindowSizeTest.cpp.

References CheckRWSize(), MITK_TEST_BEGIN(), and MITK_TEST_END().

◆ mitkVtkWidgetRenderingTest()

int mitkVtkWidgetRenderingTest ( int  ,
char *  [] 
)

Test for class mitk::VtkWidgetRendering (for rendering vtkWidgets on the screen)

argc and argv are the command line parameters which were passed to the ADD_TEST command in the CMakeLists.txt file. For the automatic tests, argv is either empty for the simple tests or contains the filename of a test image for the image tests (see CMakeLists.txt).

Definition at line 30 of file mitkVtkWidgetRenderingTest.cpp.

References MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), and mitk::VtkWidgetRendering::New().

◆ mitkWeakPointerTest()

int mitkWeakPointerTest ( int  ,
char *  [] 
)

◆ vtkMitkThickSlicesFilterTest()

int vtkMitkThickSlicesFilterTest ( int  ,
char *  [] 
)

Variable Documentation

◆ cmakeGeneratedFunctionMapEntries

functionMapEntry cmakeGeneratedFunctionMapEntries[]
static

Definition at line 171 of file MitkCoreTestDriver_main.cpp.

Referenced by main().

◆ NumTests

const int NumTests
static

Definition at line 712 of file MitkCoreTestDriver_main.cpp.

Referenced by main().