libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::Style Class Reference

#include <StyleDescription.h>

+ Inheritance diagram for osmscout::Style:

Public Member Functions

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

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

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

◆ SetColorValue()

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

◆ SetDoubleArrayValue()

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

◆ SetDoubleValue()

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

◆ SetIntValue()

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

◆ SetLabelValue()

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

◆ SetMagnificationValue()

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

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

◆ SetStringValue()

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

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

◆ SetSymbolValue()

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

◆ SetUIntValue()

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

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