KOSMIndoorMap
mapcssresult.h
68 /** Returns the tag value set by preceding declarations, via MapCSS expressions or in the source data. */
69 [[nodiscard]] std::optional<QByteArray> resolvedTagValue(OSM::TagKey key, const MapCSSState &state) const;
71 [[nodiscard]] std::optional<QByteArray> resolvedTagValue(const char *key, const MapCSSState &state) const;
72 [[nodiscard]] std::optional<QByteArray> resolvedTagValue(const OSM::Languages &languages, const char *key, const MapCSSState &state) const;
87 Q_DECL_HIDDEN void applyDeclarations(const std::vector<std::unique_ptr<MapCSSDeclaration>> &declarations);
Result of MapCSS stylesheet evaluation for a single layer selector.
Definition mapcssresult.h:40
bool hasClass(ClassSelectorKey cls) const
Check whether this result layer has class cls set.
Definition mapcssresult.cpp:120
LayerSelectorKey layerSelector() const
The layer selector for this result.
Definition mapcssresult.cpp:125
bool hasLineProperties() const
Returns true if a way/line needs to be drawn.
Definition mapcssresult.cpp:67
std::optional< QByteArray > resolvedTagValue(OSM::TagKey key, const MapCSSState &state) const
Returns the tag value set by preceding declarations, via MapCSS expressions or in the source data.
Definition mapcssresult.cpp:130
bool hasLabelProperties() const
Returns true if a label needs to be drawn.
Definition mapcssresult.cpp:72
const MapCSSDeclaration * declaration(MapCSSProperty prop) const
Returns the declaration for property @prop, or nullptr is this property isn't set.
Definition mapcssresult.cpp:82
bool hasExtrudeProperties() const
Returns true if a 3D extrusion is requested.
Definition mapcssresult.cpp:77
const std::vector< const MapCSSDeclaration * > & declarations() const
The active declarations for the queried element.
Definition mapcssresult.cpp:93
bool hasAreaProperties() const
Returns true if an area/polygon needs to be drawn.
Definition mapcssresult.cpp:62
Result of MapCSS stylesheet evaluation for all layer selectors.
Definition mapcssresult.h:100
void clear()
Reset result state from a previous evaluation, while retaining previously allocated resource for reus...
Definition mapcssresult.cpp:246
const MapCSSResultLayer & operator[](LayerSelectorKey layer) const
Access a specific result layer selector.
Definition mapcssresult.cpp:280
const std::vector< MapCSSResultLayer > & results() const
Results for all layer selectors.
Definition mapcssresult.cpp:253
Languages in preference order to consider when looking up translated tag values.
Definition languages.h:25
OSM-based multi-floor indoor maps for buildings.
Definition locationqueryoverlayproxymodel.h:20
Low-level types and functions to work with raw OSM data as efficiently as possible.
Definition locationqueryoverlayproxymodel.h:15
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:42 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:42 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.