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

Method GeneratePolyLine

Modules/PlanarFigure/src/DataManagement/mitkPlanarCross.cpp:225–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void mitk::PlanarCross::GeneratePolyLine()
226{
227 this->SetNumberOfPolyLines(1);
228 this->ClearPolyLines();
229
230 if (this->GetNumberOfControlPoints() > 2)
231 this->SetNumberOfPolyLines(2);
232
233 for (unsigned int i = 0; i < this->GetNumberOfControlPoints(); ++i)
234 {
235 if (i < 2)
236 this->AppendPointToPolyLine(0, this->GetControlPoint(i));
237
238 if (i > 1)
239 this->AppendPointToPolyLine(1, this->GetControlPoint(i));
240 }
241}
242
243void mitk::PlanarCross::GenerateHelperPolyLine(double /*mmPerDisplayUnit*/, unsigned int /*displayHeight*/)
244{

Callers

nothing calls this directly

Calls 5

SetNumberOfPolyLinesMethod · 0.80
ClearPolyLinesMethod · 0.80
AppendPointToPolyLineMethod · 0.80
GetControlPointMethod · 0.80

Tested by

no test coverage detected