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

Method RemoveVertexAt

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

Source from the content-addressed store, hash-verified

452}
453
454bool mitk::ContourModel::RemoveVertexAt(int index, TimeStepType timestep)
455{
456 if (!this->IsEmptyTimeStep(timestep))
457 {
458 if (this->m_ContourSeries[timestep]->RemoveVertexAt(index))
459 {
460 this->Modified();
461 this->m_UpdateBoundingBox = true;
462 this->InvokeEvent(ContourModelSizeChangeEvent());
463 return true;
464 }
465 }
466 return false;
467}
468
469bool mitk::ContourModel::RemoveVertexAt(Point3D &point, float eps, TimeStepType timestep)
470{

Callers 9

OnDeletePointMethod · 0.45
OnMovePointMethod · 0.45
UpdatePreviewContourMethod · 0.45
UpdateClosureContourMethod · 0.45
RemoveVertexMethod · 0.45
TestRemoveVertexAtIndexFunction · 0.45
TestInvalidTimeStepFunction · 0.45

Calls 2

IsEmptyTimeStepMethod · 0.95
ModifiedMethod · 0.45

Tested by 4

RemoveVertexMethod · 0.36
TestRemoveVertexAtIndexFunction · 0.36
TestInvalidTimeStepFunction · 0.36