MCPcopy Create free account
hub / github.com/comaps/comaps / ShowPreviewSegments

Method ShowPreviewSegments

libs/map/routing_manager.cpp:1663–1677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1661}
1662
1663m2::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
1679void RoutingManager::HidePreviewSegments()
1680{

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
AddMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected