MCPcopy Create free account
hub / github.com/comaps/comaps / operator()

Method operator()

libs/indexer/feature_visibility.cpp:81–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81 bool operator()(ClassifObject const * p) const
82 {
83 drule::KeysT keys;
84 p->GetSuitable(m_scale, m_geomType, keys);
85
86 for (auto const & k : keys)
87 {
88 if ((m_arr[0] && k.m_type == drule::caption) || (m_arr[1] && k.m_type == drule::pathtext) ||
89 (m_arr[2] && k.m_type == drule::symbol) || (m_arr[3] && k.m_type == drule::line))
90 {
91 return true;
92 }
93 }
94
95 return false;
96 }
97};
98
99/// @name Add here classifier types that don't have drawing rules but needed for algorithms.

Callers

nothing calls this directly

Calls 1

GetSuitableMethod · 0.80

Tested by

no test coverage detected