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

Method CloseRouting

libs/map/routing_manager.cpp:885–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

883}
884
885void RoutingManager::CloseRouting(bool removeRoutePoints)
886{
887 // Hide preview.
888 HidePreviewSegments();
889
890 if (m_routingSession.IsBuilt())
891 m_routingSession.EmitCloseRoutingEvent();
892 m_routingSession.Reset();
893 RemoveRoute(true /* deactivateFollowing */);
894
895 if (removeRoutePoints)
896 {
897 m_bmManager->GetEditSession().ClearGroup(UserMark::Type::ROUTING);
898 CancelRecommendation(Recommendation::RebuildAfterPointsLoading);
899 }
900}
901
902void RoutingManager::SetLastUsedRouter(RouterType type)
903{

Calls 5

IsBuiltMethod · 0.80
EmitCloseRoutingEventMethod · 0.80
ClearGroupMethod · 0.80
GetEditSessionMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected