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/PlanarFigure/test/MitkPlanarFigureTestDriver_extras.h"
Go to the source code of this file.
Macros | |
#define | CM_CAST(TYPE, EXPR) |
Typedefs | |
typedef int(* | MainFuncPointer) (int, char *[]) |
Functions | |
int | mitkPlanarCrossTest (int, char *[]) |
int | mitkPlanarPolygonTest (int, char *[]) |
int | mitkPlanarSubdivisionPolygonTest (int, char *[]) |
int | mitkPlanarFigureIOTest (int, char *[]) |
Test for PlanarFigure reader and writer classes. More... | |
int | mitkPlanarArrowTest (int, char *[]) |
int | mitkPlanarFigureInteractionTest (int, char *[]) |
int | mitkViewportRenderingTest (int, char *[]) |
static char * | lowercase (const char *string) |
int | main (int ac, char *av[]) |
Variables | |
static functionMapEntry | cmakeGeneratedFunctionMapEntries [] |
static const int | NumTests |
#define CM_CAST | ( | TYPE, | |
EXPR | |||
) |
Definition at line 26 of file MitkPlanarFigureTestDriver_main.cpp.
Referenced by lowercase().
typedef int(* MainFuncPointer) (int, char *[]) |
Definition at line 31 of file MitkPlanarFigureTestDriver_main.cpp.
|
static |
Definition at line 76 of file MitkPlanarFigureTestDriver_main.cpp.
References CM_CAST.
Referenced by main().
int main | ( | int | ac, |
char * | av[] | ||
) |
Definition at line 94 of file MitkPlanarFigureTestDriver_main.cpp.
References cmakeGeneratedFunctionMapEntries, globalCmdLineArgs, lowercase(), NumTests, mitk::LoggingBackend::Register(), and mitk::LoggingBackend::Unregister().
int mitkPlanarArrowTest | ( | int | , |
char * | [] | ||
) |
mitkPlanarArrowTest tests the methods and behavior of mitk::PlanarArrow with sub-tests:
Definition at line 64 of file mitkPlanarArrowTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), mitk::PlanarArrow::New(), and mitk::PlaneGeometry::New().
int mitkPlanarCrossTest | ( | int | , |
char * | [] | ||
) |
mitkPlanarCrossTest tests the methods and behavior of mitk::PlanarCross with four sub-tests:
Definition at line 345 of file mitkPlanarCrossTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), mitk::PlanarCross::New(), and mitk::PlaneGeometry::New().
int mitkPlanarFigureInteractionTest | ( | int | , |
char * | [] | ||
) |
int mitkPlanarFigureIOTest | ( | int | , |
char * | [] | ||
) |
Test for PlanarFigure reader and writer classes.
The test works as follows:
First, a number of PlanarFigure objects of different types are created and placed with various control points. These objects are the serialized to file, read again from file, and the retrieved objects are compared with their control points, properties, and geometry information to the original PlanarFigure objects.
Definition at line 524 of file mitkPlanarFigureIOTest.cpp.
References MITK_TEST_BEGIN(), and MITK_TEST_END().
int mitkPlanarPolygonTest | ( | int | , |
char * | [] | ||
) |
mitkplanarPolygonTest tests the methods and behavior of mitk::PlanarPolygon with sub-tests:
Definition at line 125 of file mitkPlanarPolygonTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), mitk::PlanarPolygon::New(), and mitk::PlaneGeometry::New().
int mitkPlanarSubdivisionPolygonTest | ( | int | , |
char * | [] | ||
) |
mitkplanarSubdivisionPolygonTest tests the methods and behavior of mitk::planarSubdivisionPolygon with sub-tests:
Definition at line 202 of file mitkPlanarSubdivisionPolygonTest.cpp.
References MITK_TEST_BEGIN(), MITK_TEST_CONDITION_REQUIRED, MITK_TEST_END(), mitk::PlanarSubdivisionPolygon::New(), and mitk::PlaneGeometry::New().
int mitkViewportRenderingTest | ( | int | , |
char * | [] | ||
) |
Definition at line 35 of file mitkViewportRenderingTest.cpp.
References mitk::SliceNavigationController::Axial, mitk::RenderingTestHelper::GetDataStorage(), mitk::RenderingManager::GetInstance(), mitk::RenderingTestHelper::GetVtkRenderer(), mitk::RenderingTestHelper::GetVtkRenderWindow(), images, mitk::RenderingManager::InitializeViews(), MITK_INFO, MITK_TEST_BEGIN(), MITK_TEST_CONDITION, MITK_TEST_END(), MITK_TEST_OUTPUT, MITK_WARN, mitk::BoolProperty::New(), mitk::LevelWindowProperty::New(), mitk::ColorProperty::New(), mitk::RenderingTestHelper::Render(), mitk::RenderingTestHelper::SaveAsPNG(), mitk::RenderingTestHelper::SetAutomaticallyCloseRenderWindow(), and mitk::RenderingTestHelper::SetViewDirection().
|
static |
Definition at line 38 of file MitkPlanarFigureTestDriver_main.cpp.
Referenced by main().
|
static |
Definition at line 71 of file MitkPlanarFigureTestDriver_main.cpp.
Referenced by main().