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

Method FollowRoute

qt/draw_widget.cpp:616–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616void DrawWidget::FollowRoute()
617{
618 auto & routingManager = m_framework.GetRoutingManager();
619
620 auto const points = routingManager.GetRoutePoints();
621 if (points.size() < 2)
622 return;
623 if (!points.front().m_isMyPosition && !points.back().m_isMyPosition)
624 return;
625 if (routingManager.IsRoutingActive() && !routingManager.IsRoutingFollowing())
626 {
627 routingManager.FollowRoute();
628 SetMapStyleToVehicle();
629 }
630}
631
632void DrawWidget::ClearRoute()
633{

Calls 6

frontMethod · 0.80
backMethod · 0.80
IsRoutingActiveMethod · 0.80
IsRoutingFollowingMethod · 0.80
GetRoutePointsMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected