libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::StyleFilter Class Referencefinal

Holds the all accumulated filter conditions as defined in the style sheet for a style. More...

#include <StyleConfig.h>

Public Member Functions

StyleFilter & AddFeature (size_t featureFilterIndex, size_t flagIndex)
bool FiltersByFeature () const
bool FiltersByType () const
const std::list< FeatureFilterData > & GetFeatures () const
size_t GetMaxLevel () const
size_t GetMinLevel () const
bool GetOneway () const
const SizeConditionRef & GetSizeCondition () const
const std::vector< TypeInfoRef > & GetTypeList () const
 The types the filter covers, in the order of the type configuration's indices.
bool HasMaxLevel () const
bool HasType (const TypeInfoRef &type) const
StyleFilter & SetMaxLevel (size_t level)
StyleFilter & SetMinLevel (size_t level)
StyleFilter & SetOneway (bool oneway)
StyleFilter & SetSizeCondition (const SizeConditionRef &condition)
StyleFilter & SetTypes (const TypeInfoSet &types)
 StyleFilter ()

Detailed Description

Holds the all accumulated filter conditions as defined in the style sheet for a style.

Constructor & Destructor Documentation

◆ StyleFilter()

osmscout::StyleFilter::StyleFilter ( )

Member Function Documentation

◆ AddFeature()

StyleFilter & osmscout::StyleFilter::AddFeature ( size_t featureFilterIndex,
size_t flagIndex )

◆ FiltersByFeature()

bool osmscout::StyleFilter::FiltersByFeature ( ) const
inline

◆ FiltersByType()

◆ GetFeatures()

const std::list< FeatureFilterData > & osmscout::StyleFilter::GetFeatures ( ) const
inline

◆ GetMaxLevel()

size_t osmscout::StyleFilter::GetMaxLevel ( ) const
inline

◆ GetMinLevel()

size_t osmscout::StyleFilter::GetMinLevel ( ) const
inline

◆ GetOneway()

bool osmscout::StyleFilter::GetOneway ( ) const
inline

◆ GetSizeCondition()

const SizeConditionRef & osmscout::StyleFilter::GetSizeCondition ( ) const
inline

◆ GetTypeList()

const std::vector< TypeInfoRef > & osmscout::StyleFilter::GetTypeList ( ) const
inline

The types the filter covers, in the order of the type configuration's indices.

Empty when the filter covers no type, which is the state of a filter that was never given any.

◆ HasMaxLevel()

bool osmscout::StyleFilter::HasMaxLevel ( ) const
inline

◆ HasType()

◆ SetMaxLevel()

StyleFilter & osmscout::StyleFilter::SetMaxLevel ( size_t level)

◆ SetMinLevel()

StyleFilter & osmscout::StyleFilter::SetMinLevel ( size_t level)

◆ SetOneway()

StyleFilter & osmscout::StyleFilter::SetOneway ( bool oneway)

◆ SetSizeCondition()

StyleFilter & osmscout::StyleFilter::SetSizeCondition ( const SizeConditionRef & condition)

◆ SetTypes()


The documentation for this class was generated from the following files: