MCPcopy Create free account
hub / github.com/MITK/MITK / mitkPlanarPolygonTest

Function mitkPlanarPolygonTest

Modules/PlanarFigure/test/mitkPlanarPolygonTest.cpp:125–149  ·  view source on GitHub ↗

* mitkplanarPolygonTest tests the methods and behavior of mitk::PlanarPolygon with sub-tests: * * 1. Instantiation and basic tests, including feature evaluation * */

Source from the content-addressed store, hash-verified

123 *
124 */
125int mitkPlanarPolygonTest(int /* argc */, char * /*argv*/ [])
126{
127 // always start with this!
128 MITK_TEST_BEGIN("planarPolygon")
129
130 // create PlaneGeometry on which to place the planarPolygon
131 mitk::PlaneGeometry::Pointer planeGeometry = mitk::PlaneGeometry::New();
132 planeGeometry->InitializeStandardPlane(100.0, 100.0);
133
134 // **************************************************************************
135 // 1. Instantiation and basic tests, including feature evaluation
136 mitk::PlanarPolygon::Pointer planarPolygon = mitk::PlanarPolygon::New();
137 planarPolygon->SetPlaneGeometry(planeGeometry);
138
139 // first test: did this work?
140 MITK_TEST_CONDITION_REQUIRED(planarPolygon.IsNotNull(), "Testing instantiation");
141
142 // Test placement of planarPolygon by control points
143 mitkPlanarPolygonTestClass::TestPlanarPolygonPlacement(planarPolygon);
144
145 mitkPlanarPolygonTestClass::TestPlanarPolygonEditing(planarPolygon);
146
147 // always end with this!
148 MITK_TEST_END();
149}

Callers

nothing calls this directly

Calls 4

IsNotNullMethod · 0.80
NewFunction · 0.50
SetPlaneGeometryMethod · 0.45

Tested by

no test coverage detected