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

Function CalcLimitRect

libs/storage/storage_helpers.cpp:68–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68m2::RectD CalcLimitRect(CountryId const & countryId, Storage const & storage,
69 CountryInfoGetter const & countryInfoGetter)
70{
71 m2::RectD boundingBox;
72 auto const accumulator = [&countryInfoGetter, &boundingBox](CountryId const & descendantId, bool groupNode)
73 {
74 if (!groupNode)
75 boundingBox.Add(countryInfoGetter.GetLimitRectForLeaf(descendantId));
76 };
77
78 storage.ForEachInSubtree(countryId, accumulator);
79
80 ASSERT(boundingBox.IsValid(), ());
81 return boundingBox;
82}
83
84MwmSize GetRemoteSize(diffs::DiffsDataSource const & diffsDataSource, platform::CountryFile const & file)
85{

Callers 6

ShowNodeMethod · 0.85
RegionMethod · 0.85
AssignMethod · 0.85
AssignExMethod · 0.85
UNIT_CLASS_TESTFunction · 0.85
ShowNodeMethod · 0.85

Calls 5

ASSERTFunction · 0.85
GetLimitRectForLeafMethod · 0.80
AddMethod · 0.45
ForEachInSubtreeMethod · 0.45
IsValidMethod · 0.45

Tested by 1

UNIT_CLASS_TESTFunction · 0.68