| 28 | using Cont = vector<uint32_t>; |
| 29 | |
| 30 | bool 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 | |
| 49 | class AccumulatorBase |
| 50 | { |
no test coverage detected