KOSMIndoorMap::MapCSSStyle

Search for usage in LXR

KOSMIndoorMap::MapCSSStyle Class Reference

#include <mapcssstyle.h>

Public Member Functions

 MapCSSStyle ()
 
 MapCSSStyle (const MapCSSStyle &)=delete
 
 MapCSSStyle (MapCSSStyle &&)
 
void compile (const OSM::DataSet &dataSet)
 
void evaluate (const MapCSSState &state, MapCSSResult &result) const
 
void evaluateCanvas (const MapCSSState &state, MapCSSResult &result) const
 
MapCSSStyleoperator= (const MapCSSStyle &)=delete
 
MapCSSStyleoperator= (MapCSSStyle &&)
 
void write (QIODevice *out) const
 

Detailed Description

A parsed MapCSS style sheet.

See also
MapCSSParser::parse for how to obtain a valid instance

Definition at line 29 of file mapcssstyle.h.

Constructor & Destructor Documentation

MapCSSStyle::MapCSSStyle ( )
explicit

Creates an invalid/empty style.

Definition at line 19 of file mapcssstyle.cpp.

Member Function Documentation

void MapCSSStyle::compile ( const OSM::DataSet dataSet)

Optimizes style sheet rules for application against dataSet.

This does resolve tag keys and is therefore mandatory when changing the data set.

Definition at line 27 of file mapcssstyle.cpp.

void MapCSSStyle::evaluate ( const MapCSSState &  state,
MapCSSResult &  result 
) const

Evaluates the style sheet for a given state state (OSM element, view state, element state, etc).

The result is not returned but added to result for reusing allocated memory between evaluations.

Definition at line 34 of file mapcssstyle.cpp.

void MapCSSStyle::evaluateCanvas ( const MapCSSState &  state,
MapCSSResult &  result 
) const

Evaluate canvas style rules.

Definition at line 42 of file mapcssstyle.cpp.

void MapCSSStyle::write ( QIODevice out) const

Write this style as MapCSS to out.

Mainly used for testing.

Definition at line 50 of file mapcssstyle.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Jul 29 2021 23:03:59 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.