Medical Imaging Interaction Toolkit  2018.4.99-064ad45c
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 "mitkPlaneGeometry.h"
#include "mitkGeometry3D.h"
#include "mitkAbstractFileIO.h"
#include "mitkFileReaderRegistry.h"
#include "mitkFileWriterRegistry.h"
#include "mitkIOUtil.h"
#include <itksys/SystemTools.hxx>

Go to the source code of this file.

Functions

int mitkPlanarFigureIOTest (int, char *[])
 Test for PlanarFigure reader and writer classes. More...
 

Function Documentation

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