| 360 | } |
| 361 | |
| 362 | fs::path mitk::SegmentationTaskListIO::ResolvePath(const fs::path& path) const |
| 363 | { |
| 364 | if (path.is_relative()) |
| 365 | { |
| 366 | auto inputLocation = this->GetInputLocation(); |
| 367 | |
| 368 | /* If we have access to properties, we are reading from an MITK scene |
| 369 | * file. In this case, paths are still relative to the original input |
| 370 | * location, which is preserved in the properties. |
| 371 | */ |
| 372 | |
| 373 | const auto* properties = this->GetProperties(); |
| 374 | |
| 375 | if (properties != nullptr) |
| 376 | properties->GetStringProperty("MITK.IO.reader.inputlocation", inputLocation); |
| 377 | |
| 378 | return fs::path(inputLocation).remove_filename() / path; |
| 379 | } |
| 380 | else |
| 381 | { |
| 382 | return path; |
| 383 | } |
| 384 | } |
| 385 | |
| 386 | mitk::SegmentationTaskListIO* mitk::SegmentationTaskListIO::IOClone() const |
| 387 | { |
no test coverage detected