Medical Imaging Interaction Toolkit  2018.4.99-b20efe7f
Medical Imaging Interaction Toolkit
MitkPlanarFigureTestDriver_main.cpp File Reference
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "/home/ubuntu/jenkins-agent/MITK/Nightly/Ubuntu18.04/build/MITK-build/Modules/PlanarFigure/test/MitkPlanarFigureTestDriver_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 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
 

Macro Definition Documentation

◆ CM_CAST

#define CM_CAST (   TYPE,
  EXPR 
)

Definition at line 31 of file MitkPlanarFigureTestDriver_main.cpp.

Referenced by lowercase().

◆ CM_NULL

#define CM_NULL

Definition at line 32 of file MitkPlanarFigureTestDriver_main.cpp.

Referenced by lowercase(), and main().

Typedef Documentation

◆ MainFuncPointer

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

Definition at line 37 of file MitkPlanarFigureTestDriver_main.cpp.

Function Documentation

◆ lowercase()

static char* lowercase ( const char *  string)
static

Definition at line 82 of file MitkPlanarFigureTestDriver_main.cpp.

References CM_CAST, and CM_NULL.

Referenced by main().

◆ main()

◆ mitkPlanarArrowTest()

int mitkPlanarArrowTest ( int  ,
char *  [] 
)

mitkPlanarArrowTest tests the methods and behavior of mitk::PlanarArrow with sub-tests:

  1. Instantiation and basic 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().

◆ mitkPlanarCrossTest()

int mitkPlanarCrossTest ( int  ,
char *  [] 
)

mitkPlanarCrossTest tests the methods and behavior of mitk::PlanarCross with four sub-tests:

  1. Double-line mode instantiation and basic tests
  2. Single-line mode instantiation and basic tests
  3. Tests of application of spatial constraints for double-line mode
  4. Tests if editing of PlanarCross works as intended

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().

◆ mitkPlanarFigureInteractionTest()

int mitkPlanarFigureInteractionTest ( int  ,
char *  [] 
)

◆ mitkPlanarFigureIOTest()

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 459 of file mitkPlanarFigureIOTest.cpp.

References mitk::IOUtil::CreateTemporaryFile(), MITK_TEST_BEGIN(), MITK_TEST_END(), and mitk::IOUtil::Save().

◆ mitkPlanarPolygonTest()

int mitkPlanarPolygonTest ( int  ,
char *  [] 
)

mitkplanarPolygonTest tests the methods and behavior of mitk::PlanarPolygon with sub-tests:

  1. Instantiation and basic tests, including feature evaluation

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().

◆ mitkPlanarSubdivisionPolygonTest()

int mitkPlanarSubdivisionPolygonTest ( int  ,
char *  [] 
)

mitkplanarSubdivisionPolygonTest tests the methods and behavior of mitk::planarSubdivisionPolygon with sub-tests:

  1. Instantiation and basic tests, including feature evaluation

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().

◆ mitkViewportRenderingTest()

Variable Documentation

◆ cmakeGeneratedFunctionMapEntries

functionMapEntry cmakeGeneratedFunctionMapEntries[]
static

Definition at line 44 of file MitkPlanarFigureTestDriver_main.cpp.

Referenced by main().

◆ NumTests

const int NumTests
static

Definition at line 77 of file MitkPlanarFigureTestDriver_main.cpp.

Referenced by main().