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

Method hasAlpha

src/core/map_printer.cpp:847–858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

845}
846
847bool MapPrinter::hasAlpha(const Template* temp) const
848{
849 if (temp->getTemplateState() != Template::Loaded)
850 return false;
851
852 if (!view)
853 return temp->hasAlpha();
854
855 const auto visibility = view->getTemplateVisibility(temp);
856 return visibility.hasAlpha()
857 || (visibility.visible && temp->hasAlpha());
858}
859
860
861void MapPrinter::updatePageBreaks()

Callers 2

engineWillRasterizeMethod · 0.45
drawPageMethod · 0.45

Calls 2

getTemplateStateMethod · 0.80
getTemplateVisibilityMethod · 0.80

Tested by

no test coverage detected