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

Method ShiftContour

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

Source from the content-addressed store, hash-verified

492}
493
494void mitk::ContourModel::ShiftContour(Vector3D &translate, TimeStepType timestep)
495{
496 if (!this->IsEmptyTimeStep(timestep))
497 {
498 // shift all vertices
499 for (auto vertex : *(this->m_ContourSeries[timestep]))
500 {
501 this->ShiftVertex(vertex, translate);
502 }
503
504 this->Modified();
505 this->m_UpdateBoundingBox = true;
506 this->InvokeEvent(ContourModelShiftEvent());
507 }
508}
509
510void mitk::ContourModel::ShiftVertex(VertexType *vertex, Vector3D &vector)
511{

Callers 1

OnMoveContourMethod · 0.80

Calls 3

IsEmptyTimeStepMethod · 0.95
ShiftVertexMethod · 0.95
ModifiedMethod · 0.45

Tested by

no test coverage detected