| 3 | namespace qt |
| 4 | { |
| 5 | void RoutingTurnsVisualizer::Visualize(RoutingManager & routingManager, df::DrapeApi & drape) |
| 6 | { |
| 7 | auto const & polyline = routingManager.GetRoutePolyline().GetPolyline(); |
| 8 | auto const & turns = routingManager.GetTurnsOnRouteForTests(); |
| 9 | |
| 10 | for (auto const & turn : turns) |
| 11 | { |
| 12 | std::string const id = GetId(turn); |
| 13 | |
| 14 | m_turnIds.insert(id); |
| 15 | m2::PointD const & turnPoint = polyline.GetPoint(turn.m_index); |
| 16 | |
| 17 | std::vector<m2::PointD> const fakePoly = {turnPoint, turnPoint}; |
| 18 | static dp::Color const orangeColor = dp::Color(242, 138, 2, 255); |
| 19 | |
| 20 | drape.AddLine(id, df::DrapeApiLineData(fakePoly, orangeColor).Width(7.0f).ShowPoints(true).ShowId()); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | void RoutingTurnsVisualizer::ClearTurns(df::DrapeApi & drape) |
| 25 | { |
no test coverage detected