void TaskRenderer::Draw(const AbortTask &task) { tpv.SetActiveIndex(task.GetActiveIndex()); for (unsigned i = 0; i < 4; i++) { tpv.ResetIndex(); tpv.SetModeOptional(false); for (unsigned j = 0, end = task.TaskSize(); j < end; ++j) tpv.Draw(task.GetAlternate(j), (RenderTaskPoint::Layer)i); } }
void PrintHelper::aborttask_print(const AbortTask &task, const AircraftState &state) { abstracttask_print(task, state); std::ofstream f1("output/results/res-abort-task.txt"); f1 << "#### Task points\n"; for (unsigned i = 0; i < task.TaskSize(); ++i) { GeoPoint l = task.GetAlternate(i).GetLocation(); f1 << "## point " << i << " ###################\n"; if (i == task.GetActiveTaskPointIndex()) { f1 << state.location.longitude << " " << state.location.latitude << "\n"; } f1 << l.longitude << " " << l.latitude << "\n"; f1 << "\n"; } }