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

Function TestSelectVertexAtIndex

Modules/ContourModel/Testing/mitkContourModelTest.cpp:54–66  ·  view source on GitHub ↗

Select a vertex by index. successful if the selected vertex member of the contour is no longer set to null

Source from the content-addressed store, hash-verified

52
53// Select a vertex by index. successful if the selected vertex member of the contour is no longer set to null
54static void TestSelectVertexAtIndex()
55{
56 mitk::ContourModel::Pointer contour = mitk::ContourModel::New();
57
58 mitk::Point3D p;
59 p[0] = p[1] = p[2] = 0;
60
61 contour->AddVertex(p);
62
63 contour->SelectVertexAt(0);
64
65 MITK_TEST_CONDITION(contour->GetSelectedVertex() != nullptr, "Vertex was selected at index");
66}
67
68// Select a vertex by worldposition. successful if the selected vertex member of the contour is no longer set to null
69static void TestSelectVertexAtWorldposition()

Callers 1

mitkContourModelTestFunction · 0.85

Calls 3

SelectVertexAtMethod · 0.80
NewFunction · 0.50
AddVertexMethod · 0.45

Tested by

no test coverage detected