| 223 | } |
| 224 | |
| 225 | void 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 | |
| 243 | void mitk::PlanarCross::GenerateHelperPolyLine(double /*mmPerDisplayUnit*/, unsigned int /*displayHeight*/) |
| 244 | { |
nothing calls this directly
no test coverage detected