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

Method SelectVertexAt

Modules/ContourModel/src/DataManagement/mitkContourModel.cpp:393–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393bool mitk::ContourModel::SelectVertexAt(const Point3D &point, float eps, TimeStepType timestep)
394{
395 if (!this->IsEmptyTimeStep(timestep))
396 {
397 this->m_SelectedVertex = this->m_ContourSeries[timestep]->GetVertexAt(point, eps);
398 }
399 return this->m_SelectedVertex != nullptr;
400}
401
402bool mitk::ContourModel::SelectVertexAt(int index, TimeStepType timestep)
403{

Callers 7

OnAddPointMethod · 0.80
OnMovePointMethod · 0.80
TestSelectVertexAtIndexFunction · 0.80
TestMoveSelectedVertexFunction · 0.80
TestInvalidTimeStepFunction · 0.80

Calls 2

IsEmptyTimeStepMethod · 0.95
GetVertexAtMethod · 0.45

Tested by 5

TestSelectVertexAtIndexFunction · 0.64
TestMoveSelectedVertexFunction · 0.64
TestInvalidTimeStepFunction · 0.64