21 class mitkPlanarArrowTestClass
27 MITK_TEST_CONDITION(PlanarArrow->GetMinimumNumberOfControlPoints() == 2,
"Minimum number of control points");
30 MITK_TEST_CONDITION(PlanarArrow->GetMaximumNumberOfControlPoints() == 2,
"Maximum number of control points");
36 PlanarArrow->PlaceFigure(p0);
42 PlanarArrow->SetControlPoint(1, p1);
45 MITK_TEST_CONDITION(PlanarArrow->GetNumberOfControlPoints() == 2,
"Number of control points after placement");
49 auto iter = polyLine0.begin();
50 MITK_TEST_CONDITION(PlanarArrow->GetPolyLinesSize() == 1,
"Number of polylines after placement");
75 planeGeometry->InitializeStandardPlane(100.0, 100.0);
80 PlanarArrow->SetPlaneGeometry(planeGeometry);
86 mitkPlanarArrowTestClass::TestPlanarArrowPlacement(PlanarArrow);
87 PlanarArrow->EvaluateFeatures();
92 identical &= clonedArrow->GetMinimumNumberOfControlPoints() == PlanarArrow->GetMinimumNumberOfControlPoints();
93 identical &= clonedArrow->GetMaximumNumberOfControlPoints() == PlanarArrow->GetMaximumNumberOfControlPoints();
94 identical &= clonedArrow->IsClosed() == PlanarArrow->IsClosed();
95 identical &= clonedArrow->IsPlaced() == PlanarArrow->IsPlaced();
96 identical &= clonedArrow->GetNumberOfControlPoints() == PlanarArrow->GetNumberOfControlPoints();
97 identical &= clonedArrow->GetNumberOfControlPoints() == PlanarArrow->GetNumberOfControlPoints();
98 identical &= clonedArrow->GetSelectedControlPoint() == PlanarArrow->GetSelectedControlPoint();
99 identical &= clonedArrow->IsPreviewControlPointVisible() == PlanarArrow->IsPreviewControlPointVisible();
100 identical &= clonedArrow->GetPolyLinesSize() == PlanarArrow->GetPolyLinesSize();
101 identical &= clonedArrow->GetHelperPolyLinesSize() == PlanarArrow->GetHelperPolyLinesSize();
102 identical &= clonedArrow->ResetOnPointSelect() == PlanarArrow->ResetOnPointSelect();
104 for (
unsigned int i = 0; i < clonedArrow->GetNumberOfControlPoints(); ++i)
106 identical &= clonedArrow->GetControlPoint(i) == PlanarArrow->GetControlPoint(i);
109 for (
unsigned int i = 0; i < clonedArrow->GetPolyLinesSize(); ++i)
112 for (
unsigned int j = 0; j < polyLine.size(); ++j)
114 identical &= polyLine.at(j) == PlanarArrow->GetPolyLine(i).at(j);
#define MITK_TEST_CONDITION_REQUIRED(COND, MSG)
section GeneralTestsDeprecatedOldTestingStyle Deprecated macros All tests with MITK_TEST_BEGIN()
#define MITK_TEST_CONDITION(COND, MSG)
int mitkPlanarArrowTest(int, char *[])