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

Function IsVisibleInRange

libs/indexer/feature_visibility.cpp:381–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381bool IsVisibleInRange(uint32_t type, pair<int, int> const & scaleRange)
382{
383 CHECK_LESS_OR_EQUAL(scaleRange.first, scaleRange.second, (scaleRange));
384 if (TypeAlwaysExists(type))
385 return true;
386
387 ClassifObject const * obj = classif().GetObject(type);
388 CHECK(obj, ());
389
390 for (int scale = scaleRange.first; scale <= scaleRange.second; ++scale)
391 if (obj->IsDrawable(scale))
392 return true;
393 return false;
394}
395
396namespace
397{

Callers 1

GetCategoryTypesFunction · 0.85

Calls 3

TypeAlwaysExistsFunction · 0.85
GetObjectMethod · 0.80
IsDrawableMethod · 0.80

Tested by

no test coverage detected