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

Function IsDrawable

libs/map/mwm_tests/mwm_foreach_test.cpp:30–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28using Cont = vector<uint32_t>;
29
30bool IsDrawable(FeatureType & f, int scale)
31{
32 if (f.IsEmptyGeometry(scale))
33 return false;
34
35 if (feature::IsDrawableForIndex(f, scale))
36 return true;
37
38 // Scale index ends on GetUpperScale(), but the actual visibility goes until GetUpperStyleScale().
39 if (scale != scales::GetUpperScale())
40 return false;
41
42 while (++scale <= scales::GetUpperStyleScale())
43 if (feature::IsDrawableForIndex(f, scale))
44 return true;
45
46 return false;
47}
48
49class AccumulatorBase
50{

Callers 2

is_drawableMethod · 0.85
operator()Method · 0.85

Calls 4

IsDrawableForIndexFunction · 0.85
GetUpperScaleFunction · 0.85
GetUpperStyleScaleFunction · 0.85
IsEmptyGeometryMethod · 0.80

Tested by

no test coverage detected