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

Method GetPreviewHandle

libs/drape_frontend/route_renderer.cpp:375–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375CirclesPackHandle * RouteRenderer::GetPreviewHandle(size_t & index)
376{
377 for (auto & handle : m_previewHandlesCache)
378 {
379 if (handle.second < handle.first->GetPointsCount())
380 {
381 index = handle.second++;
382 return handle.first;
383 }
384 }
385 index = 0;
386 return nullptr;
387}
388
389// Route mask is used to adjust line color for subroutes after the first stop. So subroute to the first stop
390// point has default color, while subsequent subroutes color is adjusted with RouteArrowsMaskCar,

Callers

nothing calls this directly

Calls 1

GetPointsCountMethod · 0.45

Tested by

no test coverage detected