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

Method SetControlVertexAt

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

Source from the content-addressed store, hash-verified

409}
410
411bool mitk::ContourModel::SetControlVertexAt(Point3D &point, float eps, TimeStepType timestep)
412{
413 if (!this->IsEmptyTimeStep(timestep))
414 {
415 VertexType *vertex = this->m_ContourSeries[timestep]->GetVertexAt(point, eps);
416 if (vertex != nullptr)
417 {
418 vertex->IsControlPoint = true;
419 return true;
420 }
421 }
422 return false;
423}
424
425bool mitk::ContourModel::SetControlVertexAt(int index, TimeStepType timestep)
426{

Callers 3

OnMovePointMethod · 0.80
OnEndDrawingMethod · 0.80

Calls 2

IsEmptyTimeStepMethod · 0.95
GetVertexAtMethod · 0.45

Tested by

no test coverage detected