| 86 | } |
| 87 | |
| 88 | void PointFile::parse(const fs::path& pointfile) |
| 89 | { |
| 90 | // Open the first pointfile and get its input stream if possible |
| 91 | std::ifstream inFile(pointfile); |
| 92 | if (!inFile) |
| 93 | { |
| 94 | throw cmd::ExecutionFailure( |
| 95 | fmt::format(_("Could not open pointfile: {0}"), pointfile.string()) |
| 96 | ); |
| 97 | } |
| 98 | |
| 99 | // Construct vertices from parsed point data |
| 100 | PointTrace trace(inFile); |
| 101 | for (auto pos: trace.points()) |
| 102 | { |
| 103 | _points.emplace_back(pos, RED); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | // advance camera to previous point |
| 108 | void PointFile::advance(bool forward) |
no test coverage detected