libosmscout  1.1.1
Public Member Functions | List of all members
osmscout::Style Class Reference

#include <libosmscout-map/include/osmscout/StyleDescription.h>

Inheritance diagram for osmscout::Style:
Inheritance graph
[legend]

Public Member Functions

virtual ~Style ()=default
 
virtual void SetBoolValue (int attribute, bool value)
 
virtual void SetStringValue (int attribute, const std::string &value)
 
virtual void SetColorValue (int attribute, const Color &value)
 
virtual void SetMagnificationValue (int attribute, const Magnification &value)
 
virtual void SetDoubleValue (int attribute, double value)
 
virtual void SetDoubleArrayValue (int attribute, const std::vector< double > &value)
 
virtual void SetSymbolValue (int attribute, const SymbolRef &value)
 
virtual void SetIntValue (int attribute, int value)
 
virtual void SetUIntValue (int attribute, size_t value)
 
virtual void SetLabelValue (int attribute, const LabelProviderRef &value)
 

Detailed Description

Interface class that offers a medium generic interface for styles classes. The interface defines methods for setting index attributes to a given value.

Used by the style sheet parser. The parser uses the StyleDescriptor to get te attribute name, type and index. Attribute values are written back to the style instance using the index.

Constructor & Destructor Documentation

◆ ~Style()

virtual osmscout::Style::~Style ( )
virtualdefault

Member Function Documentation

◆ SetBoolValue()

virtual void osmscout::Style::SetBoolValue ( int  attribute,
bool  value 
)
virtual

◆ SetColorValue()

virtual void osmscout::Style::SetColorValue ( int  attribute,
const Color &  value 
)
virtual

◆ SetDoubleArrayValue()

virtual void osmscout::Style::SetDoubleArrayValue ( int  attribute,
const std::vector< double > &  value 
)
virtual

◆ SetDoubleValue()

virtual void osmscout::Style::SetDoubleValue ( int  attribute,
double  value 
)
virtual

◆ SetIntValue()

virtual void osmscout::Style::SetIntValue ( int  attribute,
int  value 
)
virtual

◆ SetLabelValue()

virtual void osmscout::Style::SetLabelValue ( int  attribute,
const LabelProviderRef value 
)
virtual

◆ SetMagnificationValue()

virtual void osmscout::Style::SetMagnificationValue ( int  attribute,
const Magnification &  value 
)
virtual

Reimplemented in osmscout::TextStyle, and osmscout::FillStyle.

◆ SetStringValue()

virtual void osmscout::Style::SetStringValue ( int  attribute,
const std::string &  value 
)
virtual

Reimplemented in osmscout::IconStyle, and osmscout::FillStyle.

◆ SetSymbolValue()

virtual void osmscout::Style::SetSymbolValue ( int  attribute,
const SymbolRef value 
)
virtual

◆ SetUIntValue()

virtual void osmscout::Style::SetUIntValue ( int  attribute,
size_t  value 
)
virtual

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