| 1661 | } |
| 1662 | |
| 1663 | m2::RectD RoutingManager::ShowPreviewSegments(vector<RouteMarkData> const & routePoints) |
| 1664 | { |
| 1665 | df::DrapeEngineLockGuard lock(m_drapeEngine); |
| 1666 | if (!lock) |
| 1667 | return mercator::Bounds::FullRect(); |
| 1668 | |
| 1669 | m2::RectD rect; |
| 1670 | for (size_t pointIndex = 0; pointIndex + 1 < routePoints.size(); pointIndex++) |
| 1671 | { |
| 1672 | rect.Add(routePoints[pointIndex].m_position); |
| 1673 | rect.Add(routePoints[pointIndex + 1].m_position); |
| 1674 | lock.Get()->AddRoutePreviewSegment(routePoints[pointIndex].m_position, routePoints[pointIndex + 1].m_position); |
| 1675 | } |
| 1676 | return rect; |
| 1677 | } |
| 1678 | |
| 1679 | void RoutingManager::HidePreviewSegments() |
| 1680 | { |
nothing calls this directly
no test coverage detected