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

Method InsertVertexAtIndex

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

Source from the content-addressed store, hash-verified

131}
132
133void mitk::ContourModel::InsertVertexAtIndex(const Point3D &vertex, int index, bool isControlPoint, TimeStepType timestep)
134{
135 if (!this->IsEmptyTimeStep(timestep))
136 {
137 if (index >= 0 && this->m_ContourSeries[timestep]->GetSize() >= ContourElement::VertexSizeType(index))
138 {
139 this->m_ContourSeries[timestep]->InsertVertexAtIndex(vertex, isControlPoint, index);
140 this->InvokeEvent(ContourModelSizeChangeEvent());
141 this->Modified();
142 this->m_UpdateBoundingBox = true;
143 }
144 }
145}
146
147void mitk::ContourModel::UpdateContour(const ContourModel* sourceModel, TimeStepType destinationTimeStep, TimeStepType sourceTimeStep)
148{

Callers 1

OnAddPointMethod · 0.45

Calls 3

IsEmptyTimeStepMethod · 0.95
GetSizeMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected