Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkPlanarFigureIOTest.cpp File Reference
#include "mitkTestingMacros.h"
#include "mitkPlanarAngle.h"
#include "mitkPlanarCircle.h"
#include "mitkPlanarCross.h"
#include "mitkPlanarFourPointAngle.h"
#include "mitkPlanarLine.h"
#include "mitkPlanarPolygon.h"
#include "mitkPlanarRectangle.h"
#include "mitkPlanarSubdivisionPolygon.h"
#include "mitkPlanarFigureReader.h"
#include "mitkPlanarFigureWriter.h"
#include "mitkPlaneGeometry.h"
#include <itksys/SystemTools.hxx>

Go to the source code of this file.

Functions

static mitk::PlanarFigure::Pointer Clone (mitk::PlanarFigure::Pointer original)
 
int mitkPlanarFigureIOTest (int, char *[])
 Test for PlanarFigure reader and writer classes. More...
 

Function Documentation

static mitk::PlanarFigure::Pointer Clone ( mitk::PlanarFigure::Pointer  original)
static

Definition at line 35 of file mitkPlanarFigureIOTest.cpp.

Referenced by ConvertLabelSetImageToImage().

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

References MITK_TEST_BEGIN(), and MITK_TEST_END().