KOSMIndoorMap::MapCSSResultLayer
#include <mapcssresult.h>
Public Member Functions | |
MapCSSResultLayer (const MapCSSResultLayer &)=delete | |
MapCSSResultLayer (MapCSSResultLayer &&) noexcept | |
void | clear () |
const MapCSSDeclaration * | declaration (MapCSSProperty prop) const |
const std::vector< const MapCSSDeclaration * > & | declarations () const |
bool | hasAreaProperties () const |
bool | hasClass (ClassSelectorKey cls) const |
bool | hasExtrudeProperties () const |
bool | hasLabelProperties () const |
bool | hasLineProperties () const |
LayerSelectorKey | layerSelector () const |
MapCSSResultLayer & | operator= (const MapCSSResultLayer &)=delete |
MapCSSResultLayer & | operator= (MapCSSResultLayer &&) noexcept |
std::optional< QByteArray > | resolvedTagValue (const char *key, const MapCSSState &state) const |
std::optional< QByteArray > | resolvedTagValue (const OSM::Languages &languages, const char *key, const MapCSSState &state) const |
std::optional< QByteArray > | resolvedTagValue (OSM::TagKey key, const MapCSSState &state) const |
Detailed Description
Result of MapCSS stylesheet evaluation for a single layer selector.
Definition at line 39 of file mapcssresult.h.
Constructor & Destructor Documentation
◆ MapCSSResultLayer()
|
explicit |
Definition at line 45 of file mapcssresult.cpp.
Member Function Documentation
◆ clear()
void MapCSSResultLayer::clear | ( | ) |
Definition at line 53 of file mapcssresult.cpp.
◆ declaration()
|
nodiscard |
Returns the declaration for property @prop, or nullptr
is this property isn't set.
Definition at line 82 of file mapcssresult.cpp.
◆ declarations()
|
nodiscard |
The active declarations for the queried element.
Definition at line 93 of file mapcssresult.cpp.
◆ hasAreaProperties()
|
nodiscard |
Returns true
if an area/polygon needs to be drawn.
Definition at line 62 of file mapcssresult.cpp.
◆ hasClass()
|
nodiscard |
Check whether this result layer has class cls
set.
Definition at line 120 of file mapcssresult.cpp.
◆ hasExtrudeProperties()
|
nodiscard |
Returns true
if a 3D extrusion is requested.
Definition at line 77 of file mapcssresult.cpp.
◆ hasLabelProperties()
|
nodiscard |
Returns true
if a label needs to be drawn.
Definition at line 72 of file mapcssresult.cpp.
◆ hasLineProperties()
|
nodiscard |
Returns true
if a way/line needs to be drawn.
Definition at line 67 of file mapcssresult.cpp.
◆ layerSelector()
|
nodiscard |
The layer selector for this result.
Definition at line 125 of file mapcssresult.cpp.
◆ resolvedTagValue() [1/3]
|
nodiscard |
Slower version of the above for unresolved tag keys.
Definition at line 147 of file mapcssresult.cpp.
◆ resolvedTagValue() [2/3]
|
nodiscard |
Definition at line 162 of file mapcssresult.cpp.
◆ resolvedTagValue() [3/3]
|
nodiscard |
Returns the tag value set by preceding declarations, via MapCSS expressions or in the source data.
Definition at line 130 of file mapcssresult.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.