MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / hasAlpha

Method hasAlpha

src/core/map.cpp:1384–1395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1382}
1383
1384bool Map::hasAlpha() const
1385{
1386 return std::any_of(begin(color_set->colors), end(color_set->colors), [this](const MapColor* color) {
1387 const auto opacity = color->getOpacity();
1388 return opacity > 0 && opacity < 1
1389 && std::any_of(begin(symbols), end(symbols), [this, color](const Symbol* symbol) {
1390 return !symbol->isHidden()
1391 && symbol->containsColor(color)
1392 && this->existsObjectWithSymbol(symbol);
1393 });
1394 });
1395}
1396
1397
1398void Map::setSymbolSetId(const QString& id)

Callers

nothing calls this directly

Calls 4

getOpacityMethod · 0.80
isHiddenMethod · 0.80
containsColorMethod · 0.45

Tested by

no test coverage detected