Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "/home/ubuntu/dcl1/Build-D-n/MITK-build/Modules/Core/test/MitkCoreTestDriver_extras.h"
Go to the source code of this file.
Macros | |
#define | CM_CAST(TYPE, EXPR) |
Typedefs | |
typedef int(* | MainFuncPointer) (int, char *[]) |
Variables | |
static functionMapEntry | cmakeGeneratedFunctionMapEntries [] |
static const int | NumTests |
#define CM_CAST | ( | TYPE, | |
EXPR | |||
) |
Definition at line 153 of file MitkCoreTestDriver_main.cpp.
Referenced by lowercase().
typedef int(* MainFuncPointer) (int, char *[]) |
Definition at line 158 of file MitkCoreTestDriver_main.cpp.
|
static |
Definition at line 711 of file MitkCoreTestDriver_main.cpp.
References CM_CAST.
Referenced by main().
int main | ( | int | ac, |
char * | av[] | ||
) |
Definition at line 729 of file MitkCoreTestDriver_main.cpp.
References cmakeGeneratedFunctionMapEntries, globalCmdLineArgs, lowercase(), NumTests, mitk::LoggingBackend::Register(), and mitk::LoggingBackend::Unregister().
int mitkAccessByItkTest | ( | int | , |
char * | [] | ||
) |
Definition at line 284 of file mitkAccessByItkTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_END(), and MITK_TEST_OUTPUT.
int mitkActionTest | ( | int | , |
char * | [] | ||
) |
Definition at line 17 of file mitkActionTest.cpp.
References mitk::BoolProperty::New(), mitk::IntProperty::New(), mitk::FloatProperty::New(), and mitk::Action::New().
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().
int mitkArbitraryTimeGeometryTest | ( | int | , |
char * | [] | ||
) |
int mitkArrayTypeConversionTest | ( | int | , |
char * | [] | ||
) |
int mitkBaseDataTest | ( | int | , |
char * | [] | ||
) |
int mitkBaseGeometryTest | ( | int | , |
char * | [] | ||
) |
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:
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().
int mitkCompositePixelValueToStringTest | ( | int | , |
char * | [] | ||
) |
int mitkCoreObjectFactoryTest | ( | int | , |
char * | [] | ||
) |
Definition at line 16 of file mitkCoreObjectFactoryTest.cpp.
References mitk::CoreObjectFactory::GetInstance(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_CONDITION_REQUIRED, and MITK_TEST_END().
int mitkDataNodeTest | ( | int | , |
char * | [] | ||
) |
Definition at line 300 of file mitkDataNodeTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), and mitk::DataNode::New().
int mitkDataStorageTest | ( | int | , |
char * | [] | ||
) |
Definition at line 111 of file mitkDataStorageTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), MITK_TEST_FAILED_MSG, MITK_TEST_OUTPUT, mitk::StandaloneDataStorage::New(), mitk::DataNode::New(), and TestDataStorage().
int mitkDispatcherTest | ( | int | , |
char * | [] | ||
) |
int mitkEnumerationPropertyTest | ( | int | , |
char * | [] | ||
) |
Definition at line 18 of file mitkEnumerationPropertyTest.cpp.
References mitk::VtkInterpolationProperty::New(), mitk::VtkRepresentationProperty::New(), and mitk::EnumerationProperty::New().
int mitkEqualTest | ( | int | , |
char * | [] | ||
) |
int mitkEventConfigTest | ( | int | , |
char * | [] | ||
) |
Definition at line 29 of file mitkEventConfigTest.cpp.
References mitk::InteractionEvent::AltKey, mitk::InteractionEvent::ControlKey, mitk::EventConfig::GetAttributes(), mitk::EventConfig::GetMappedEvent(), ModuleContext::GetModule(), us::GetModuleContext(), mitk::EventConfig::IsValid(), mitk::InteractionEvent::LeftMouseButton, mitk::InteractionEvent::MiddleMouseButton, MITK_ERROR, MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), mitk::MouseMoveEvent::New(), mitk::MousePressEvent::New(), mitk::MouseReleaseEvent::New(), mitk::MouseWheelEvent::New(), mitk::InteractionKeyEvent::New(), mitk::PropertyList::New(), mitk::InteractionEvent::NoButton, mitk::InteractionEvent::NoKey, mitk::InteractionEvent::RightMouseButton, mitk::InteractionEvent::ShiftKey, mitk::InteractionEventConst::xmlParameterEventClass(), and mitk::InteractionEventConst::xmlParameterEventVariant().
int mitkExceptionTest | ( | int | , |
char * | [] | ||
) |
int mitkExtractSliceFilterTest | ( | int | , |
char * | [] | ||
) |
Definition at line 822 of file mitkExtractSliceFilterTest.cpp.
References mitk::PlaneGeometry::Axial, mitk::PlaneGeometry::Frontal, MITK_INFO, MITK_TEST_BEGIN(), MITK_TEST_END(), mitk::PlaneGeometry::New(), mitk::OpROTATE, rotation, mitk::PlaneGeometry::Sagittal, and mitk::vnl2vtk().
int mitkFileReaderRegistryTest | ( | int | , |
char * | [] | ||
) |
TODO
Definition at line 93 of file mitkFileReaderRegistryTest.cpp.
References MITK_TEST_BEGIN(), and MITK_TEST_END().
int mitkFloatToStringTest | ( | int | , |
char * | [] | ||
) |
int mitkGenericIDRelationRuleTest | ( | int | , |
char * | [] | ||
) |
int mitkGenericPropertyTest | ( | int | , |
char * | [] | ||
) |
Definition at line 73 of file mitkGenericPropertyTest.cpp.
References MITK_TEST_BEGIN(), and MITK_TEST_END().
int mitkGeometry3DEqualTest | ( | int | , |
char * | [] | ||
) |
int mitkGeometry3DTest | ( | int | , |
char * | [] | ||
) |
Definition at line 602 of file mitkGeometry3DTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), MITK_TEST_OUTPUT, mitkGeometry3DTest(), testGeometry3D(), testGeometryAfterCasting(), and testItkImageIsCenterBased().
Referenced by mitkGeometry3DTest().
int mitkGeometryDataIOTest | ( | int | , |
char * | [] | ||
) |
int mitkGeometryDataToSurfaceFilterTest | ( | int | , |
char * | [] | ||
) |
Definition at line 163 of file mitkGeometryDataToSurfaceFilterTest.cpp.
References mitk::FillVector3D(), mitk::PlaneGeometryData::New(), mitk::PlaneGeometryDataToSurfaceFilter::New(), mitk::PlaneGeometry::New(), and testGeometryDataToSurfaceFilter().
int mitkGrabItkImageMemoryTest | ( | int | , |
char * | [] | ||
) |
Definition at line 110 of file mitkGrabItkImageMemoryTest.cpp.
References MITK_TEST_BEGIN(), and MITK_TEST_END().
int mitkImageAccessorTest | ( | int | , |
char * | [] | ||
) |
Definition at line 163 of file mitkImageAccessorTest.cpp.
References mitk::ImageAccessorBase::IgnoreLock, image, MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), MITK_TEST_FAILED_MSG, MITK_TEST_FOR_EXCEPTION_BEGIN, MITK_TEST_FOR_EXCEPTION_END, MITK_TEST_OUTPUT, and ThreadMethod().
int mitkImageCastTest | ( | int | , |
char * | [] | ||
) |
int mitkImageDataItemTest | ( | int | , |
char * | [] | ||
) |
int mitkImageDimensionConverterTest | ( | int | , |
char * | [] | ||
) |
Definition at line 36 of file mitkImageDimensionConverterTest.cpp.
References mitk::CastToMitkImage(), mitk::eps, MITK_INFO, MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), MITK_TEST_OUTPUT_DIR, mitkImageDimensionConverterTest(), mitk::Convert2Dto3DImageFilter::New(), mitk::OpROTATE, and mitk::IOUtil::Save().
Referenced by mitkImageDimensionConverterTest().
int mitkImageEqualTest | ( | int | , |
char * | [] | ||
) |
int mitkImageGeneratorTest | ( | int | , |
char * | [] | ||
) |
int mitkImageSliceSelectorTest | ( | int | , |
char * | [] | ||
) |
Definition at line 18 of file mitkImageSliceSelectorTest.cpp.
References image, and mitk::ImageSliceSelector::New().
int mitkImageTest | ( | int | , |
char * | [] | ||
) |
Definition at line 160 of file mitkImageTest.cpp.
References mitk::CastToItkImage(), mitk::Image::CopyMemory, mitk::Equal(), mitk::FillVector3D(), mitk::ImageAccessorBase::GetData(), image, ImageVtkDataReferenceCheck(), mitk::MatrixEqualElementWise(), MITK_ERROR, MITK_INFO, MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), MITK_TEST_FAILED_MSG, MITK_TEST_OUTPUT, MITK_WARN, mitkImageTest(), mitkPixelTypeMultiplex3, mitk::ImageTimeSelector::New(), mitk::PlaneGeometry::New(), mitk::Image::New(), TestRandomPixelAccess(), and mitk::vtk2itk().
Referenced by mitkImageTest().
int mitkImageTimeSelectorTest | ( | int | , |
char * | [] | ||
) |
Definition at line 99 of file mitkImageTimeSelectorTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_END(), mitkImageTimeSelectorTest(), Valid_AllInputTimesteps_ReturnsTrue(), and Valid_ImageExpandedByTimestep_ReturnsTrue().
Referenced by mitkImageTimeSelectorTest().
int mitkImageToItkTest | ( | int | , |
char * | [] | ||
) |
int mitkImageToSurfaceFilterTest | ( | int | , |
char * | [] | ||
) |
int mitkImageVtkMapper2DColorTest | ( | int | , |
char * | [] | ||
) |
Definition at line 20 of file mitkImageVtkMapper2DColorTest.cpp.
References mitk::RenderingTestHelper::CompareRenderWindowAgainstReference(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), MITK_WARN, mitk::ColorProperty::New(), mitk::SliceNavigationController::Sagittal, mitk::RenderingTestHelper::SaveReferenceScreenShot(), mitk::RenderingTestHelper::SetImageProperty(), and mitk::RenderingTestHelper::SetViewDirection().
int mitkImageVtkMapper2DLevelWindowTest | ( | int | , |
char * | [] | ||
) |
Definition at line 22 of file mitkImageVtkMapper2DLevelWindowTest.cpp.
References mitk::RenderingTestHelper::CompareRenderWindowAgainstReference(), mitk::LevelWindowPreset::getLevel(), mitk::LevelWindowPreset::getWindow(), mitk::LevelWindowPreset::LoadPreset(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), MITK_WARN, mitk::LevelWindowPreset::New(), mitk::LevelWindowProperty::New(), mitk::SliceNavigationController::Sagittal, mitk::RenderingTestHelper::SaveReferenceScreenShot(), mitk::RenderingTestHelper::SetImageProperty(), and mitk::RenderingTestHelper::SetViewDirection().
int mitkImageVtkMapper2DLookupTableTest | ( | int | , |
char * | [] | ||
) |
Definition at line 25 of file mitkImageVtkMapper2DLookupTableTest.cpp.
References mitk::RenderingTestHelper::CompareRenderWindowAgainstReference(), mitk::RenderingModeProperty::LOOKUPTABLE_COLOR, MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), MITK_WARN, mitk::LookupTable::New(), mitk::LookupTableProperty::New(), mitk::RenderingModeProperty::New(), mitk::RenderingTestHelper::SaveReferenceScreenShot(), and mitk::RenderingTestHelper::SetImageProperty().
int mitkImageVtkMapper2DOpacityTest | ( | int | , |
char * | [] | ||
) |
Definition at line 20 of file mitkImageVtkMapper2DOpacityTest.cpp.
References mitk::RenderingTestHelper::CompareRenderWindowAgainstReference(), mitk::SliceNavigationController::Frontal, MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), MITK_WARN, mitk::FloatProperty::New(), mitk::RenderingTestHelper::SaveReferenceScreenShot(), mitk::RenderingTestHelper::SetImageProperty(), and mitk::RenderingTestHelper::SetViewDirection().
int mitkImageVtkMapper2DOpacityTransferFunctionTest | ( | int | , |
char * | [] | ||
) |
Definition at line 23 of file mitkImageVtkMapper2DOpacityTransferFunctionTest.cpp.
References mitk::RenderingModeProperty::COLORTRANSFERFUNCTION_COLOR, mitk::RenderingTestHelper::CompareRenderWindowAgainstReference(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), MITK_WARN, mitk::TransferFunctionProperty::New(), mitk::TransferFunction::New(), mitk::RenderingModeProperty::New(), mitk::RenderingTestHelper::SaveReferenceScreenShot(), and mitk::RenderingTestHelper::SetImageProperty().
int mitkImageVtkMapper2DResliceInterpolationPropertyTest | ( | int | , |
char * | [] | ||
) |
Definition at line 24 of file mitkImageVtkMapper2DResliceInterpolationPropertyTest.cpp.
References mitk::RenderingTestHelper::CompareRenderWindowAgainstReference(), mitk::RenderingTestHelper::GetDataStorage(), image, MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), MITK_WARN, mitk::NodePredicateDataType::New(), mitk::VtkResliceInterpolationProperty::New(), mitk::RenderingTestHelper::Render(), mitk::RenderingTestHelper::ReorientSlices(), mitk::RenderingTestHelper::SaveReferenceScreenShot(), and mitk::RenderingTestHelper::SetImageProperty().
int mitkImageVtkMapper2DSwivelTest | ( | int | , |
char * | [] | ||
) |
Definition at line 22 of file mitkImageVtkMapper2DSwivelTest.cpp.
References mitk::RenderingTestHelper::CompareRenderWindowAgainstReference(), mitk::RenderingTestHelper::GetDataStorage(), image, MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), MITK_WARN, mitk::NodePredicateDataType::New(), mitk::RenderingTestHelper::ReorientSlices(), and mitk::RenderingTestHelper::SaveReferenceScreenShot().
int mitkImageVtkMapper2DTest | ( | int | , |
char * | [] | ||
) |
Definition at line 20 of file mitkImageVtkMapper2DTest.cpp.
References mitk::RenderingTestHelper::CompareRenderWindowAgainstReference(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), MITK_WARN, and mitk::RenderingTestHelper::SaveReferenceScreenShot().
int mitkImageVtkMapper2DTransferFunctionTest | ( | int | , |
char * | [] | ||
) |
Definition at line 23 of file mitkImageVtkMapper2DTransferFunctionTest.cpp.
References mitk::RenderingModeProperty::COLORTRANSFERFUNCTION_COLOR, mitk::RenderingTestHelper::CompareRenderWindowAgainstReference(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), MITK_WARN, mitk::TransferFunctionProperty::New(), mitk::TransferFunction::New(), mitk::RenderingModeProperty::New(), mitk::RenderingTestHelper::SaveReferenceScreenShot(), and mitk::RenderingTestHelper::SetImageProperty().
int mitkImportItkImageTest | ( | int | , |
char * | [] | ||
) |
Definition at line 284 of file mitkImportItkImageTest.cpp.
References Assert_ItkVectorImageImportAndCast_ReturnsTrue(), MITK_TEST_BEGIN(), and MITK_TEST_END().
int mitkInstantiateAccessFunctionTest | ( | int | , |
char * | [] | ||
) |
int mitkInteractionEventTest | ( | int | , |
char * | [] | ||
) |
int mitkIOUtilTest | ( | int | , |
char * | [] | ||
) |
int mitkItkImageIOTest | ( | int | , |
char * | [] | ||
) |
int mitkLevelWindowManagerCppUnitTest | ( | int | , |
char * | [] | ||
) |
int mitkLevelWindowManagerTest | ( | int | , |
char * | [] | ||
) |
Definition at line 602 of file mitkLevelWindowManagerTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, and MITK_TEST_END().
int mitkLevelWindowTest | ( | int | , |
char * | [] | ||
) |
Definition at line 32 of file mitkLevelWindowTest.cpp.
References mitk::ImageWriteAccessor::GetData(), mitk::LevelWindow::GetLevel(), mitk::LevelWindow::GetLowerWindowBound(), mitk::LevelWindow::GetRange(), mitk::LevelWindow::GetUpperWindowBound(), mitk::LevelWindow::GetWindow(), image, mitk::Image::New(), resetLevelWindow(), mitk::LevelWindow::SetAuto(), mitk::LevelWindow::SetLevelWindow(), mitk::LevelWindow::SetRangeMinMax(), and mitk::LevelWindow::SetWindowBounds().
int mitkLineTest | ( | int | , |
char * | [] | ||
) |
int mitkLoggingAdapterTest | ( | int | , |
char * | [] | ||
) |
Definition at line 72 of file mitkLoggingAdapterTest.cpp.
References MITK_TEST_BEGIN(), and MITK_TEST_END().
int mitkLogTest | ( | int | , |
char * | [] | ||
) |
Definition at line 293 of file mitkLogTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_END(), MITK_TEST_OUTPUT, and TestThreadSaveLog().
int mitkLookupTableTest | ( | int | , |
char * | [] | ||
) |
int mitkMaterialTest | ( | int | , |
char * | [] | ||
) |
Definition at line 322 of file mitkMaterialTest.cpp.
References MITK_TEST_BEGIN(), and MITK_TEST_END().
int mitkMatrixTypeConversionTest | ( | int | , |
char * | [] | ||
) |
int mitkMessageTest | ( | int | , |
char * | [] | ||
) |
Definition at line 229 of file mitkMessageTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_CONDITION_REQUIRED, and MITK_TEST_END().
int mitkMultiComponentImageDataComparisonFilterTest | ( | int | , |
char * | [] | ||
) |
Definition at line 21 of file mitkMultiComponentImageDataComparisonFilterTest.cpp.
References mitk::Equal(), mitk::CompareFilterResults::m_MaximumDifference, max(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), and mitk::ImageToImageFilter::New().
int mitkNodePredicateDataPropertyTest | ( | int | , |
char * | [] | ||
) |
int mitkNodePredicateFunctionTest | ( | int | , |
char * | [] | ||
) |
int mitkNodePredicateGeometryTest | ( | int | , |
char * | [] | ||
) |
int mitkNodePredicateSourceTest | ( | int | , |
char * | [] | ||
) |
Definition at line 17 of file mitkNodePredicateSourceTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), mitk::NodePredicateSource::New(), mitk::StandaloneDataStorage::New(), and mitk::DataNode::New().
int mitkPixelTypeTest | ( | int | , |
char * | [] | ||
) |
int mitkPlaneGeometryDataMapper2DTest | ( | int | , |
char * | [] | ||
) |
Definition at line 43 of file mitkPlaneGeometryDataMapper2DTest.cpp.
References addPlaneToDataStorage(), mitk::RenderingTestHelper::CompareRenderWindowAgainstReference(), mitk::PlaneGeometry::Frontal, mitk::RenderingTestHelper::GetDataStorage(), image, MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), MITK_WARN, mitk::PlaneGeometry::Sagittal, and mitk::RenderingTestHelper::SaveReferenceScreenShot().
int mitkPlaneGeometryTest | ( | int | , |
char * | [] | ||
) |
int mitkPlanePositionManagerTest | ( | int | , |
char * | [] | ||
) |
Definition at line 261 of file mitkPlanePositionManagerTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), SetUpBeforeTest(), testAddPlanePosition(), testGetPlanePosition(), testRemoveAll(), and testRemovePlanePosition().
int mitkPointSetDataInteractorTest | ( | int | , |
char * | [] | ||
) |
int mitkPointSetEqualTest | ( | int | , |
char * | [] | ||
) |
int mitkPointSetFileIOTest | ( | int | , |
char * | [] | ||
) |
Definition at line 140 of file mitkPointSetFileIOTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), mitk::Geometry3D::New(), and offset.
int mitkPointSetLocaleTest | ( | int | , |
char * | [] | ||
) |
int mitkPointSetOnEmptyTest | ( | int | , |
char * | [] | ||
) |
int mitkPointSetPointOperationsTest | ( | int | , |
char * | [] | ||
) |
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.
int mitkPointSetTest | ( | int | , |
char * | [] | ||
) |
int mitkPointSetVtkMapper2DGlyphTypeTest | ( | int | , |
char * | [] | ||
) |
Definition at line 24 of file mitkPointSetVtkMapper2DGlyphTypeTest.cpp.
References mitk::RenderingTestHelper::CompareRenderWindowAgainstReference(), mitk::RenderingTestHelper::GetDataStorage(), mitk::RenderingTestHelper::GetVtkRenderWindow(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), MITK_WARN, mitk::NodePredicateDataType::New(), mitk::SliceNavigationController::Sagittal, mitk::RenderingTestHelper::SaveReferenceScreenShot(), mitk::EnumerationProperty::SetValue(), and mitk::RenderingTestHelper::SetViewDirection().
int mitkPointSetVtkMapper2DImageTest | ( | int | , |
char * | [] | ||
) |
Definition at line 20 of file mitkPointSetVtkMapper2DImageTest.cpp.
References mitk::RenderingTestHelper::CompareRenderWindowAgainstReference(), mitk::RenderingTestHelper::GetVtkRenderWindow(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), MITK_WARN, and mitk::RenderingTestHelper::SaveReferenceScreenShot().
int mitkPointSetVtkMapper2DTest | ( | int | , |
char * | [] | ||
) |
Definition at line 20 of file mitkPointSetVtkMapper2DTest.cpp.
References mitk::RenderingTestHelper::CompareRenderWindowAgainstReference(), mitk::RenderingTestHelper::GetVtkRenderWindow(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), MITK_WARN, mitk::SliceNavigationController::Sagittal, mitk::RenderingTestHelper::SaveReferenceScreenShot(), and mitk::RenderingTestHelper::SetViewDirection().
int mitkPointSetVtkMapper2DTransformedPointsTest | ( | int | , |
char * | [] | ||
) |
Definition at line 24 of file mitkPointSetVtkMapper2DTransformedPointsTest.cpp.
References mitk::RenderingTestHelper::CompareRenderWindowAgainstReference(), mitk::DataNode::GetData(), mitk::RenderingTestHelper::GetDataStorage(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), MITK_WARN, mitk::NodePredicateDataType::New(), mitk::SliceNavigationController::Sagittal, mitk::RenderingTestHelper::SaveReferenceScreenShot(), and mitk::RenderingTestHelper::SetViewDirection().
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().
int mitkPointTypeConversionTest | ( | int | , |
char * | [] | ||
) |
int mitkPreferenceListReaderOptionsFunctorTest | ( | int | , |
char * | [] | ||
) |
int mitkProgressBarTest | ( | int | , |
char * | [] | ||
) |
int mitkPropertyAliasesTest | ( | int | , |
char * | [] | ||
) |
int mitkPropertyDescriptionsTest | ( | int | , |
char * | [] | ||
) |
int mitkPropertyExtensionsTest | ( | int | , |
char * | [] | ||
) |
int mitkPropertyFiltersTest | ( | int | , |
char * | [] | ||
) |
int mitkPropertyKeyPathTest | ( | int | , |
char * | [] | ||
) |
int mitkPropertyListTest | ( | int | , |
char * | [] | ||
) |
Definition at line 21 of file mitkPropertyListTest.cpp.
References mitk::GenericLookupTable< T >::GetTableValue(), mitk::BoolProperty::New(), mitk::IntProperty::New(), mitk::FloatProperty::New(), mitk::BoolLookupTableProperty::New(), mitk::StringProperty::New(), mitk::PropertyList::New(), and mitk::GenericLookupTable< T >::SetTableValue().
int mitkPropertyNameHelperTest | ( | int | , |
char * | [] | ||
) |
int mitkPropertyPersistenceInfoTest | ( | int | , |
char * | [] | ||
) |
int mitkPropertyPersistenceTest | ( | int | , |
char * | [] | ||
) |
int mitkPropertyRelationRuleBaseTest | ( | int | , |
char * | [] | ||
) |
int mitkPropertyRelationsTest | ( | int | , |
char * | [] | ||
) |
int mitkPropertyTest | ( | int | , |
char * | [] | ||
) |
int mitkProportionalTimeGeometryTest | ( | int | , |
char * | [] | ||
) |
int mitkRawImageFileReaderTest | ( | int | , |
char * | [] | ||
) |
int mitkRenderingManagerTest | ( | int | , |
char * | [] | ||
) |
Definition at line 161 of file mitkRenderingManagerTest.cpp.
References mitk::BaseRenderer::AddInstance(), mitk::RenderingManager::GetInstance(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), mitk::StandaloneDataStorage::New(), mitk::VtkPropRenderer::New(), and mitk::RenderingManager::New().
int mitkRotatedSlice4DTest | ( | int | , |
char * | [] | ||
) |
Definition at line 25 of file mitkRotatedSlice4DTest.cpp.
References mitk::PlaneGeometry::Frontal, MITK_INFO, MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), mitk::ImageTimeSelector::New(), mitk::ExtractSliceFilter::New(), mitk::PlaneGeometry::New(), and mitk::OpROTATE.
int mitkSlicedGeometry3DTest | ( | int | , |
char * | [] | ||
) |
Definition at line 135 of file mitkSlicedGeometry3DTest.cpp.
References createEvenlySpacedSlicedGeometry(), createPoint(), createVector(), mitk::Equal(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_OUTPUT, mitkSlicedGeometry3D_ChangeImageGeometryConsideringOriginOffset_Test(), mitk::PlaneGeometry::New(), and slicedGeometryEps.
int mitkSliceNavigationControllerTest | ( | int | , |
char * | [] | ||
) |
int mitkSourceImageRelationRuleTest | ( | int | , |
char * | [] | ||
) |
int mitkStepperTest | ( | int | , |
char * | [] | ||
) |
Definition at line 16 of file mitkStepperTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), and mitk::Stepper::New().
int mitkSTLFileReaderTest | ( | int | , |
char * | [] | ||
) |
int mitkSurfaceDepthSortingTest | ( | int | , |
char * | [] | ||
) |
Definition at line 23 of file mitkSurfaceDepthSortingTest.cpp.
References mitk::RenderingTestHelper::CompareRenderWindowAgainstReference(), mitk::RenderingTestHelper::GetDataStorage(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), MITK_WARN, mitk::NodePredicateDataType::New(), mitk::DataNode::SetBoolProperty(), mitk::RenderingTestHelper::SetMapperIDToRender3D(), and mitk::DataNode::SetOpacity().
int mitkSurfaceEqualTest | ( | int | , |
char * | [] | ||
) |
int mitkSurfaceTest | ( | int | , |
char * | [] | ||
) |
int mitkSurfaceToImageFilterTest | ( | int | , |
char * | [] | ||
) |
int mitkSurfaceToSurfaceFilterTest | ( | int | , |
char * | [] | ||
) |
Definition at line 22 of file mitkSurfaceToSurfaceFilterTest.cpp.
References MITK_ASSERT_EQUAL, MITK_TEST_CONDITION, MITK_TEST_FOR_EXCEPTION, MITK_TEST_OUTPUT, mitk::Surface::New(), and mitk::SurfaceToSurfaceFilter::New().
int mitkSurfaceVtkMapper2D3DTest | ( | int | , |
char * | [] | ||
) |
int mitkSurfaceVtkMapper2DTest | ( | int | , |
char * | [] | ||
) |
int mitkSurfaceVtkMapper3DTest | ( | int | , |
char * | [] | ||
) |
Definition at line 43 of file mitkSurfaceVtkMapper3DTest.cpp.
References AddGeneratedDataToStorage(), mitk::RenderingTestHelper::CompareRenderWindowAgainstReference(), mitk::RenderingTestHelper::GetDataStorage(), mitk::RenderingManager::GetInstance(), mitk::RenderingTestHelper::GetVtkRenderer(), mitk::RenderingManager::InitializeViewsByBoundingObjects(), MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), MITK_WARN, mitk::NodePredicateDataType::New(), mitk::SmartPointerProperty::New(), mitk::RenderingTestHelper::SaveReferenceScreenShot(), mitk::RenderingTestHelper::SetMapperID(), and mitk::BaseRenderer::Standard3D.
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().
int mitkTemporoSpatialStringPropertyTest | ( | int | , |
char * | [] | ||
) |
int mitkTimeGeometryTest | ( | int | , |
char * | [] | ||
) |
Definition at line 708 of file mitkTimeGeometryTest.cpp.
References image, MITK_TEST_BEGIN(), MITK_TEST_END(), MITK_TEST_OUTPUT, mitkTimeGeometryTest(), and mitk::PointSet::New().
Referenced by mitkTimeGeometryTest().
int mitkTinyXMLTest | ( | int | , |
char * | [] | ||
) |
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().
int mitkUIDGeneratorTest | ( | int | , |
char * | [] | ||
) |
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.
int mitkVectorPropertyTest | ( | int | , |
char * | [] | ||
) |
int mitkVectorTest | ( | int | , |
char * | [] | ||
) |
int mitkVectorTypeConversionTest | ( | int | , |
char * | [] | ||
) |
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.
int mitkVolumeCalculatorTest | ( | int | , |
char * | [] | ||
) |
Definition at line 19 of file mitkVolumeCalculatorTest.cpp.
References image, MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), and mitk::VolumeCalculator::New().
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().
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().
int mitkWeakPointerTest | ( | int | , |
char * | [] | ||
) |
int vtkMitkThickSlicesFilterTest | ( | int | , |
char * | [] | ||
) |
Test for vtkMitkThickSlicesFilter.
Definition at line 65 of file vtkMitkThickSlicesFilterTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_END(), vtkMitkThickSlicesFilter::New(), and vtkMitkThickSlicesFilter::SetThickSliceMode().
|
static |
Definition at line 165 of file MitkCoreTestDriver_main.cpp.
Referenced by main().
|
static |
Definition at line 706 of file MitkCoreTestDriver_main.cpp.
Referenced by main().