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

Method OnRouteRecommendation

qt/draw_widget.cpp:645–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643}
644
645void DrawWidget::OnRouteRecommendation(RoutingManager::Recommendation recommendation)
646{
647 if (recommendation == RoutingManager::Recommendation::RebuildAfterPointsLoading)
648 {
649 auto & routingManager = m_framework.GetRoutingManager();
650
651 RouteMarkData startPoint;
652 startPoint.m_pointType = RouteMarkType::Start;
653 startPoint.m_isMyPosition = true;
654 routingManager.AddRoutePoint(std::move(startPoint));
655
656 if (routingManager.GetRoutePoints().size() >= 2)
657 routingManager.BuildRoute();
658 }
659}
660
661void DrawWidget::ShowPlacePage()
662{

Callers

nothing calls this directly

Calls 4

AddRoutePointMethod · 0.45
sizeMethod · 0.45
GetRoutePointsMethod · 0.45
BuildRouteMethod · 0.45

Tested by

no test coverage detected