|
libosmscout 1.1.1
|
Index selectors by type and level. More...
#include <libosmscout-map/include/osmscoutmap/StyleConfig.h>

Public Member Functions | |
| StyleConfig (const TypeConfigRef &typeConfig) | |
| virtual | ~StyleConfig () |
| bool | RegisterLabelProviderFactory (const std::string &name, const LabelProviderFactoryRef &factory) |
| LabelProviderRef | GetLabelProvider (const std::string &name) const |
| bool | HasFlag (const std::string &name) const |
| bool | GetFlagByName (const std::string &name) const |
| void | AddFlag (const std::string &name, bool value) |
| std::unordered_map< std::string, bool > | GetFlags () const |
| StyleConstantRef | GetConstantByName (const std::string &name) const |
| void | AddConstant (const std::string &name, const StyleConstantRef &variable) |
| bool | RegisterSymbol (const SymbolRef &symbol) |
| const SymbolRef & | GetSymbol (const std::string &name) const |
| void | Postprocess () |
| TypeConfigRef | GetTypeConfig () const |
| size_t | GetFeatureFilterIndex (const Feature &feature) const |
| StyleConfig & | SetWayPrio (const TypeInfoRef &type, size_t prio) |
| void | AddNodeTextStyle (const StyleFilter &filter, TextPartialStyle &stype) |
| void | AddNodeIconStyle (const StyleFilter &filter, IconPartialStyle &style) |
| void | AddWayLineStyle (const StyleFilter &filter, LinePartialStyle &style) |
| void | AddWayPathTextStyle (const StyleFilter &filter, PathTextPartialStyle &style) |
| void | AddWayPathSymbolStyle (const StyleFilter &filter, PathSymbolPartialStyle &style) |
| void | AddWayPathShieldStyle (const StyleFilter &filter, PathShieldPartialStyle &style) |
| void | AddAreaFillStyle (const StyleFilter &filter, FillPartialStyle &style) |
| void | AddAreaBorderStyle (const StyleFilter &filter, BorderPartialStyle &style) |
| void | AddAreaTextStyle (const StyleFilter &filter, TextPartialStyle &style) |
| void | AddAreaIconStyle (const StyleFilter &filter, IconPartialStyle &style) |
| void | AddAreaBorderTextStyle (const StyleFilter &filter, PathTextPartialStyle &style) |
| void | AddAreaBorderSymbolStyle (const StyleFilter &filter, PathSymbolPartialStyle &style) |
| void | AddRouteLineStyle (const StyleFilter &filter, LinePartialStyle &style) |
| void | AddRoutePathTextStyle (const StyleFilter &filter, PathTextPartialStyle &style) |
| void | GetNodeTypesWithMaxMag (const Magnification &maxMag, TypeInfoSet &types) const |
| void | GetWayTypesWithMaxMag (const Magnification &mag, TypeInfoSet &types) const |
| void | GetAreaTypesWithMaxMag (const Magnification &maxMag, TypeInfoSet &types) const |
| void | GetRouteTypesWithMaxMag (const Magnification &maxMag, TypeInfoSet &types) const |
| size_t | GetWayPrio (const TypeInfoRef &type) const |
| bool | HasNodeTextStyles (const TypeInfoRef &type, const Magnification &magnification) const |
| void | GetNodeTextStyles (const FeatureValueBuffer &buffer, const Projection &projection, std::vector< TextStyleRef > &textStyles) const |
| size_t | GetNodeTextStyleCount (const FeatureValueBuffer &buffer, const Projection &projection) const |
| IconStyleRef | GetNodeIconStyle (const FeatureValueBuffer &buffer, const Projection &projection) const |
| void | GetWayLineStyles (const FeatureValueBuffer &buffer, const Projection &projection, std::vector< LineStyleRef > &lineStyles) const |
| void | GetWayPathSymbolStyle (const FeatureValueBuffer &buffer, const Projection &projection, std::vector< PathSymbolStyleRef > &symbolStyles) const |
| PathTextStyleRef | GetWayPathTextStyle (const FeatureValueBuffer &buffer, const Projection &projection) const |
| bool | HasWayPathTextStyle (const Projection &projection) const |
| PathShieldStyleRef | GetWayPathShieldStyle (const FeatureValueBuffer &buffer, const Projection &projection) const |
| bool | HasWayPathShieldStyle (const Projection &projection) const |
| PathTextStyleRef | GetRoutePathTextStyle (const FeatureValueBuffer &buffer, const Projection &projection) const |
| void | GetRouteLineStyles (const FeatureValueBuffer &buffer, const Projection &projection, std::vector< LineStyleRef > &lineStyles) const |
| FillStyleRef | GetAreaFillStyle (const TypeInfoRef &type, const FeatureValueBuffer &buffer, const Projection &projection) const |
| void | GetAreaBorderStyles (const TypeInfoRef &type, const FeatureValueBuffer &buffer, const Projection &projection, std::vector< BorderStyleRef > &borderStyles) const |
| bool | HasAreaTextStyles (const TypeInfoRef &type, const Magnification &magnification) const |
| void | GetAreaTextStyles (const TypeInfoRef &type, const FeatureValueBuffer &buffer, const Projection &projection, std::vector< TextStyleRef > &textStyles) const |
| size_t | GetAreaTextStyleCount (const TypeInfoRef &type, const FeatureValueBuffer &buffer, const Projection &projection) const |
| IconStyleRef | GetAreaIconStyle (const TypeInfoRef &type, const FeatureValueBuffer &buffer, const Projection &projection) const |
| PathTextStyleRef | GetAreaBorderTextStyle (const TypeInfoRef &type, const FeatureValueBuffer &buffer, const Projection &projection) const |
| PathSymbolStyleRef | GetAreaBorderSymbolStyle (const TypeInfoRef &type, const FeatureValueBuffer &buffer, const Projection &projection) const |
| FillStyleRef | GetLandFillStyle (const Projection &projection) const |
| FillStyleRef | GetSeaFillStyle (const Projection &projection) const |
| FillStyleRef | GetCoastFillStyle (const Projection &projection) const |
| FillStyleRef | GetUnknownFillStyle (const Projection &projection) const |
| LineStyleRef | GetCoastlineLineStyle (const Projection &projection) const |
| LineStyleRef | GetOSMTileBorderLineStyle (const Projection &projection) const |
| LineStyleRef | GetOSMSubTileBorderLineStyle (const Projection &projection) const |
| void | GetNodeTextStyleSelectors (size_t level, const TypeInfoRef &type, std::list< TextStyleSelector > &selectors) const |
| void | GetAreaFillStyleSelectors (size_t level, const TypeInfoRef &type, std::list< FillStyleSelector > &selectors) const |
| void | GetAreaTextStyleSelectors (size_t level, const TypeInfoRef &type, std::list< TextStyleSelector > &selectors) const |
| bool | LoadContent (const std::string &filename, const std::string &content, ColorPostprocessor colorPostprocessor=nullptr, bool submodule=false, Log &log=osmscout::log) |
| bool | Load (const std::string &styleFile, ColorPostprocessor colorPostprocessor=nullptr, bool submodule=false, Log &log=osmscout::log) |
| const std::list< StyleError > & | GetErrors () const |
| const std::list< StyleError > & | GetWarnings () const |
Public Attributes | |
| TypeConfigRef | typeConfig |
| Reference to the type configuration. | |
| std::vector< TypeInfoSet > | nodeTypeSets |
| std::vector< TypeInfoSet > | wayTypeSets |
| way types with defined style by magnification level | |
| std::vector< TypeInfoSet > | areaTypeSets |
| std::vector< TypeInfoSet > | routeTypeSets |
Index selectors by type and level.
A complete style definition
Internals:
|
explicit |
|
virtual |
| void osmscout::StyleConfig::AddAreaBorderStyle | ( | const StyleFilter & | filter, |
| BorderPartialStyle & | style ) |
| void osmscout::StyleConfig::AddAreaBorderSymbolStyle | ( | const StyleFilter & | filter, |
| PathSymbolPartialStyle & | style ) |
| void osmscout::StyleConfig::AddAreaBorderTextStyle | ( | const StyleFilter & | filter, |
| PathTextPartialStyle & | style ) |
| void osmscout::StyleConfig::AddAreaFillStyle | ( | const StyleFilter & | filter, |
| FillPartialStyle & | style ) |
| void osmscout::StyleConfig::AddAreaIconStyle | ( | const StyleFilter & | filter, |
| IconPartialStyle & | style ) |
| void osmscout::StyleConfig::AddAreaTextStyle | ( | const StyleFilter & | filter, |
| TextPartialStyle & | style ) |
| void osmscout::StyleConfig::AddConstant | ( | const std::string & | name, |
| const StyleConstantRef & | variable ) |
| void osmscout::StyleConfig::AddFlag | ( | const std::string & | name, |
| bool | value ) |
| void osmscout::StyleConfig::AddNodeIconStyle | ( | const StyleFilter & | filter, |
| IconPartialStyle & | style ) |
| void osmscout::StyleConfig::AddNodeTextStyle | ( | const StyleFilter & | filter, |
| TextPartialStyle & | stype ) |
| void osmscout::StyleConfig::AddRouteLineStyle | ( | const StyleFilter & | filter, |
| LinePartialStyle & | style ) |
| void osmscout::StyleConfig::AddRoutePathTextStyle | ( | const StyleFilter & | filter, |
| PathTextPartialStyle & | style ) |
| void osmscout::StyleConfig::AddWayLineStyle | ( | const StyleFilter & | filter, |
| LinePartialStyle & | style ) |
| void osmscout::StyleConfig::AddWayPathShieldStyle | ( | const StyleFilter & | filter, |
| PathShieldPartialStyle & | style ) |
| void osmscout::StyleConfig::AddWayPathSymbolStyle | ( | const StyleFilter & | filter, |
| PathSymbolPartialStyle & | style ) |
| void osmscout::StyleConfig::AddWayPathTextStyle | ( | const StyleFilter & | filter, |
| PathTextPartialStyle & | style ) |
| void osmscout::StyleConfig::GetAreaBorderStyles | ( | const TypeInfoRef & | type, |
| const FeatureValueBuffer & | buffer, | ||
| const Projection & | projection, | ||
| std::vector< BorderStyleRef > & | borderStyles ) const |
| PathSymbolStyleRef osmscout::StyleConfig::GetAreaBorderSymbolStyle | ( | const TypeInfoRef & | type, |
| const FeatureValueBuffer & | buffer, | ||
| const Projection & | projection ) const |
| PathTextStyleRef osmscout::StyleConfig::GetAreaBorderTextStyle | ( | const TypeInfoRef & | type, |
| const FeatureValueBuffer & | buffer, | ||
| const Projection & | projection ) const |
| FillStyleRef osmscout::StyleConfig::GetAreaFillStyle | ( | const TypeInfoRef & | type, |
| const FeatureValueBuffer & | buffer, | ||
| const Projection & | projection ) const |
| void osmscout::StyleConfig::GetAreaFillStyleSelectors | ( | size_t | level, |
| const TypeInfoRef & | type, | ||
| std::list< FillStyleSelector > & | selectors ) const |
| IconStyleRef osmscout::StyleConfig::GetAreaIconStyle | ( | const TypeInfoRef & | type, |
| const FeatureValueBuffer & | buffer, | ||
| const Projection & | projection ) const |
| size_t osmscout::StyleConfig::GetAreaTextStyleCount | ( | const TypeInfoRef & | type, |
| const FeatureValueBuffer & | buffer, | ||
| const Projection & | projection ) const |
| void osmscout::StyleConfig::GetAreaTextStyles | ( | const TypeInfoRef & | type, |
| const FeatureValueBuffer & | buffer, | ||
| const Projection & | projection, | ||
| std::vector< TextStyleRef > & | textStyles ) const |
| void osmscout::StyleConfig::GetAreaTextStyleSelectors | ( | size_t | level, |
| const TypeInfoRef & | type, | ||
| std::list< TextStyleSelector > & | selectors ) const |
| void osmscout::StyleConfig::GetAreaTypesWithMaxMag | ( | const Magnification & | maxMag, |
| TypeInfoSet & | types ) const |
| FillStyleRef osmscout::StyleConfig::GetCoastFillStyle | ( | const Projection & | projection | ) | const |
| LineStyleRef osmscout::StyleConfig::GetCoastlineLineStyle | ( | const Projection & | projection | ) | const |
| StyleConstantRef osmscout::StyleConfig::GetConstantByName | ( | const std::string & | name | ) | const |
| const std::list< StyleError > & osmscout::StyleConfig::GetErrors | ( | ) | const |
| size_t osmscout::StyleConfig::GetFeatureFilterIndex | ( | const Feature & | feature | ) | const |
| bool osmscout::StyleConfig::GetFlagByName | ( | const std::string & | name | ) | const |
|
inline |
| LabelProviderRef osmscout::StyleConfig::GetLabelProvider | ( | const std::string & | name | ) | const |
| FillStyleRef osmscout::StyleConfig::GetLandFillStyle | ( | const Projection & | projection | ) | const |
| IconStyleRef osmscout::StyleConfig::GetNodeIconStyle | ( | const FeatureValueBuffer & | buffer, |
| const Projection & | projection ) const |
| size_t osmscout::StyleConfig::GetNodeTextStyleCount | ( | const FeatureValueBuffer & | buffer, |
| const Projection & | projection ) const |
| void osmscout::StyleConfig::GetNodeTextStyles | ( | const FeatureValueBuffer & | buffer, |
| const Projection & | projection, | ||
| std::vector< TextStyleRef > & | textStyles ) const |
| void osmscout::StyleConfig::GetNodeTextStyleSelectors | ( | size_t | level, |
| const TypeInfoRef & | type, | ||
| std::list< TextStyleSelector > & | selectors ) const |
Methods for low level debugging access to the style sheet internals
| void osmscout::StyleConfig::GetNodeTypesWithMaxMag | ( | const Magnification & | maxMag, |
| TypeInfoSet & | types ) const |
| LineStyleRef osmscout::StyleConfig::GetOSMSubTileBorderLineStyle | ( | const Projection & | projection | ) | const |
| LineStyleRef osmscout::StyleConfig::GetOSMTileBorderLineStyle | ( | const Projection & | projection | ) | const |
| void osmscout::StyleConfig::GetRouteLineStyles | ( | const FeatureValueBuffer & | buffer, |
| const Projection & | projection, | ||
| std::vector< LineStyleRef > & | lineStyles ) const |
| PathTextStyleRef osmscout::StyleConfig::GetRoutePathTextStyle | ( | const FeatureValueBuffer & | buffer, |
| const Projection & | projection ) const |
| void osmscout::StyleConfig::GetRouteTypesWithMaxMag | ( | const Magnification & | maxMag, |
| TypeInfoSet & | types ) const |
| FillStyleRef osmscout::StyleConfig::GetSeaFillStyle | ( | const Projection & | projection | ) | const |
| const SymbolRef & osmscout::StyleConfig::GetSymbol | ( | const std::string & | name | ) | const |
| TypeConfigRef osmscout::StyleConfig::GetTypeConfig | ( | ) | const |
| FillStyleRef osmscout::StyleConfig::GetUnknownFillStyle | ( | const Projection & | projection | ) | const |
| const std::list< StyleError > & osmscout::StyleConfig::GetWarnings | ( | ) | const |
| void osmscout::StyleConfig::GetWayLineStyles | ( | const FeatureValueBuffer & | buffer, |
| const Projection & | projection, | ||
| std::vector< LineStyleRef > & | lineStyles ) const |
| PathShieldStyleRef osmscout::StyleConfig::GetWayPathShieldStyle | ( | const FeatureValueBuffer & | buffer, |
| const Projection & | projection ) const |
| void osmscout::StyleConfig::GetWayPathSymbolStyle | ( | const FeatureValueBuffer & | buffer, |
| const Projection & | projection, | ||
| std::vector< PathSymbolStyleRef > & | symbolStyles ) const |
| PathTextStyleRef osmscout::StyleConfig::GetWayPathTextStyle | ( | const FeatureValueBuffer & | buffer, |
| const Projection & | projection ) const |
|
inline |
| void osmscout::StyleConfig::GetWayTypesWithMaxMag | ( | const Magnification & | mag, |
| TypeInfoSet & | types ) const |
| bool osmscout::StyleConfig::HasAreaTextStyles | ( | const TypeInfoRef & | type, |
| const Magnification & | magnification ) const |
| bool osmscout::StyleConfig::HasFlag | ( | const std::string & | name | ) | const |
| bool osmscout::StyleConfig::HasNodeTextStyles | ( | const TypeInfoRef & | type, |
| const Magnification & | magnification ) const |
Methods for retrieval of styles for a given object.
| bool osmscout::StyleConfig::HasWayPathShieldStyle | ( | const Projection & | projection | ) | const |
| projection |
| bool osmscout::StyleConfig::HasWayPathTextStyle | ( | const Projection & | projection | ) | const |
| projection |
| bool osmscout::StyleConfig::Load | ( | const std::string & | styleFile, |
| ColorPostprocessor | colorPostprocessor = nullptr, | ||
| bool | submodule = false, | ||
| Log & | log = osmscout::log ) |
| bool osmscout::StyleConfig::LoadContent | ( | const std::string & | filename, |
| const std::string & | content, | ||
| ColorPostprocessor | colorPostprocessor = nullptr, | ||
| bool | submodule = false, | ||
| Log & | log = osmscout::log ) |
Methods for loading a concrete OSS style sheet
| void osmscout::StyleConfig::Postprocess | ( | ) |
| bool osmscout::StyleConfig::RegisterLabelProviderFactory | ( | const std::string & | name, |
| const LabelProviderFactoryRef & | factory ) |
Methods for registering LabelProvider-factories and and retrieving label providers
| bool osmscout::StyleConfig::RegisterSymbol | ( | const SymbolRef & | symbol | ) |
| StyleConfig & osmscout::StyleConfig::SetWayPrio | ( | const TypeInfoRef & | type, |
| size_t | prio ) |
| std::vector<TypeInfoSet> osmscout::StyleConfig::areaTypeSets |
| std::vector<TypeInfoSet> osmscout::StyleConfig::nodeTypeSets |
| std::vector<TypeInfoSet> osmscout::StyleConfig::routeTypeSets |
| TypeConfigRef osmscout::StyleConfig::typeConfig |
Reference to the type configuration.
| std::vector<TypeInfoSet> osmscout::StyleConfig::wayTypeSets |
way types with defined style by magnification level