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

Method GetUserLinesGroups

libs/drape_frontend/user_mark_generator.cpp:213–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213ref_ptr<MarksIDGroups> UserMarkGenerator::GetUserLinesGroups(TileKey const & tileKey)
214{
215 auto itTile = m_index.end();
216 int const lineZoom = GetNearestLineIndexZoom(tileKey.m_zoomLevel);
217 CalcTilesCoverage(tileKey.GetGlobalRect(), lineZoom, [this, &itTile, lineZoom](int tileX, int tileY)
218 { itTile = m_index.find(TileKey(tileX, tileY, lineZoom)); });
219 if (itTile != m_index.end())
220 return make_ref(itTile->second);
221 return nullptr;
222}
223
224void UserMarkGenerator::GenerateUserMarksGeometry(ref_ptr<dp::GraphicsContext> context, TileKey const & tileKey,
225 ref_ptr<dp::TextureManager> textures)

Callers

nothing calls this directly

Calls 6

CalcTilesCoverageFunction · 0.85
make_refFunction · 0.85
TileKeyClass · 0.70
endMethod · 0.45
GetGlobalRectMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected