Select a vertex by index. successful if the selected vertex member of the contour is no longer set to null
| 52 | |
| 53 | // Select a vertex by index. successful if the selected vertex member of the contour is no longer set to null |
| 54 | static 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 |
| 69 | static void TestSelectVertexAtWorldposition() |
no test coverage detected