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

Method GetSuitable

libs/indexer/classificator.cpp:263–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261} // namespace
262
263void ClassifObject::GetSuitable(int scale, feature::GeomType gt, drule::KeysT & keys) const
264{
265 ASSERT(static_cast<int>(gt) >= 0 && static_cast<int>(gt) <= 2, ());
266
267 // 2. Check visibility criterion for scale first.
268 if (!m_visibility[scale])
269 return;
270
271 // find rules for 'scale'
272 suitable_getter rulesGetter(m_drawRules, keys);
273 rulesGetter.find(static_cast<int>(gt), scale);
274}
275
276bool ClassifObject::IsDrawable(int scale) const
277{

Callers 3

GetDrawRuleFunction · 0.80
operator()Method · 0.80
StylistMethod · 0.80

Calls 2

ASSERTFunction · 0.85
findMethod · 0.45

Tested by

no test coverage detected