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

Method CreateTrafficLightMarks

libs/map/routing_manager.cpp:744–757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742}
743
744void RoutingManager::CreateTrafficLightMarks(vector<std::pair<m2::PointD, FeatureID>> && trafficLights)
745{
746 ASSERT(!trafficLights.empty(), ());
747
748 GetPlatform().RunTask(Platform::Thread::Gui, [this, trafficLights = std::move(trafficLights)]()
749 {
750 auto es = m_bmManager->GetEditSession();
751 for (auto const & item : trafficLights)
752 {
753 auto mark = es.CreateUserMark<TrafficLightMark>(item.first);
754 mark->SetFeatureId(item.second);
755 }
756 });
757}
758
759bool RoutingManager::InsertRoute(Route const & route)
760{

Callers

nothing calls this directly

Calls 5

ASSERTFunction · 0.85
RunTaskMethod · 0.80
GetEditSessionMethod · 0.80
emptyMethod · 0.45
SetFeatureIdMethod · 0.45

Tested by

no test coverage detected