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

Method SetPoint

Modules/Core/src/DataManagement/mitkPointSet.cpp:294–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294void mitk::PointSet::SetPoint(PointIdentifier id, PointType point, int t)
295{
296 // Adapt the size of the data vector if necessary
297 this->Expand(t + 1);
298
299 mitk::Point3D indexPoint;
300 this->GetGeometry(t)->WorldToIndex(point, indexPoint);
301 m_PointSetSeries[t]->SetPoint(id, indexPoint);
302 PointDataType defaultPointData;
303 defaultPointData.id = id;
304 defaultPointData.selected = false;
305 defaultPointData.pointSpec = mitk::PTUNDEFINED;
306
307 m_PointSetSeries[t]->SetPointData(id, defaultPointData);
308 // boundingbox has to be computed anyway
309 m_CalculateBoundingBox = true;
310 this->Modified();
311}
312
313void mitk::PointSet::SetPoint(PointIdentifier id, PointType point, PointSpecificationType spec, int t)
314{

Callers 7

ReadPointsMethod · 0.45
CreateSurfaceMethod · 0.45
UpdateRectangleMethod · 0.45
PointSetMethod · 0.45
InsertPointMethod · 0.45
ExecuteOperationMethod · 0.45
SwapPointContentsMethod · 0.45

Calls 4

ExpandMethod · 0.95
GetGeometryMethod · 0.80
WorldToIndexMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected