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

Function IsDrawableForRules

libs/indexer/feature_visibility.cpp:398–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396namespace
397{
398bool IsDrawableForRules(TypesHolder const & types, int level, int rules)
399{
400 Classificator const & c = classif();
401
402 IsDrawableRulesChecker doCheck(level, types.GetGeomType(), rules);
403 for (uint32_t t : types)
404 if (doCheck(c.GetObject(t)))
405 return true;
406
407 return false;
408}
409} // namespace
410
411pair<int, int> GetDrawableScaleRangeForRules(TypesHolder const & types, int rules)

Callers 1

Calls 2

GetObjectMethod · 0.80
GetGeomTypeMethod · 0.45

Tested by

no test coverage detected