KOSMIndoorMap::MapCSSResultLayer

Search for usage in LXR

KOSMIndoorMap::MapCSSResultLayer Class Reference

#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
 
MapCSSResultLayeroperator= (const MapCSSResultLayer &)=delete
 
MapCSSResultLayeroperator= (MapCSSResultLayer &&) noexcept
 
std::optional< QByteArrayresolvedTagValue (const char *key, const MapCSSState &state) const
 
std::optional< QByteArrayresolvedTagValue (const OSM::Languages &languages, const char *key, const MapCSSState &state) const
 
std::optional< QByteArrayresolvedTagValue (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()

MapCSSResultLayer::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()

const MapCSSDeclaration * MapCSSResultLayer::declaration ( MapCSSProperty prop) const
nodiscard

Returns the declaration for property @prop, or nullptr is this property isn't set.

Definition at line 82 of file mapcssresult.cpp.

◆ declarations()

const std::vector< const MapCSSDeclaration * > & MapCSSResultLayer::declarations ( ) const
nodiscard

The active declarations for the queried element.

Definition at line 93 of file mapcssresult.cpp.

◆ hasAreaProperties()

bool MapCSSResultLayer::hasAreaProperties ( ) const
nodiscard

Returns true if an area/polygon needs to be drawn.

Definition at line 62 of file mapcssresult.cpp.

◆ hasClass()

bool MapCSSResultLayer::hasClass ( ClassSelectorKey cls) const
nodiscard

Check whether this result layer has class cls set.

Definition at line 120 of file mapcssresult.cpp.

◆ hasExtrudeProperties()

bool MapCSSResultLayer::hasExtrudeProperties ( ) const
nodiscard

Returns true if a 3D extrusion is requested.

Definition at line 77 of file mapcssresult.cpp.

◆ hasLabelProperties()

bool MapCSSResultLayer::hasLabelProperties ( ) const
nodiscard

Returns true if a label needs to be drawn.

Definition at line 72 of file mapcssresult.cpp.

◆ hasLineProperties()

bool MapCSSResultLayer::hasLineProperties ( ) const
nodiscard

Returns true if a way/line needs to be drawn.

Definition at line 67 of file mapcssresult.cpp.

◆ layerSelector()

LayerSelectorKey MapCSSResultLayer::layerSelector ( ) const
nodiscard

The layer selector for this result.

Definition at line 125 of file mapcssresult.cpp.

◆ resolvedTagValue() [1/3]

std::optional< QByteArray > MapCSSResultLayer::resolvedTagValue ( const char * key,
const MapCSSState & state ) const
nodiscard

Slower version of the above for unresolved tag keys.

Definition at line 147 of file mapcssresult.cpp.

◆ resolvedTagValue() [2/3]

std::optional< QByteArray > MapCSSResultLayer::resolvedTagValue ( const OSM::Languages & languages,
const char * key,
const MapCSSState & state ) const
nodiscard

Definition at line 162 of file mapcssresult.cpp.

◆ resolvedTagValue() [3/3]

std::optional< QByteArray > MapCSSResultLayer::resolvedTagValue ( OSM::TagKey key,
const MapCSSState & state ) const
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:
This file is part of the KDE documentation.
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.