libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::ShieldStyle Class Reference

A shield or plate label (text placed on a plate). More...

#include <Styles.h>

Inheritance diagram for osmscout::ShieldStyle:

Public Types

enum  Attribute {
  attrPriority , attrSize , attrLabel , attrTextColor ,
  attrBgColor , attrBorderColor
}

Public Member Functions

void CopyAttributes (const ShieldStyle &other, const std::set< Attribute > &attributes)
double GetAlpha () const override
const Color & GetBgColor () const
const Color & GetBorderColor () const
const LabelProviderRef & GetLabel () const
const Color & GetTextColor () const
bool IsVisible () const override
ShieldStyle & SetBgColor (const Color &color)
ShieldStyle & SetBorderColor (const Color &color)
ShieldStyle & SetLabel (const LabelProviderRef &label)
ShieldStyle & SetSize (double size) override
ShieldStyle & SetTextColor (const Color &color)
 ShieldStyle ()
Public Member Functions inherited from osmscout::LabelStyle
size_t GetPriority () const
double GetSize () const
 LabelStyle ()
LabelStyle & SetPriority (size_t priority)
Public Member Functions inherited from osmscout::Style
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

A shield or plate label (text placed on a plate).

Member Enumeration Documentation

◆ Attribute

Enumerator
attrPriority 
attrSize 
attrLabel 
attrTextColor 
attrBgColor 
attrBorderColor 

Constructor & Destructor Documentation

◆ ShieldStyle()

osmscout::ShieldStyle::ShieldStyle ( )

Member Function Documentation

◆ CopyAttributes()

◆ GetAlpha()

double osmscout::ShieldStyle::GetAlpha ( ) const
inlineoverridevirtual

Implements osmscout::LabelStyle.

◆ GetBgColor()

const Color & osmscout::ShieldStyle::GetBgColor ( ) const
inline

◆ GetBorderColor()

const Color & osmscout::ShieldStyle::GetBorderColor ( ) const
inline

◆ GetLabel()

const LabelProviderRef & osmscout::ShieldStyle::GetLabel ( ) const
inline

◆ GetTextColor()

const Color & osmscout::ShieldStyle::GetTextColor ( ) const
inline

Referenced by IsVisible().

◆ IsVisible()

bool osmscout::ShieldStyle::IsVisible ( ) const
inlineoverridevirtual

◆ SetBgColor()

ShieldStyle & osmscout::ShieldStyle::SetBgColor ( const Color & color)

References ShieldStyle().

◆ SetBorderColor()

ShieldStyle & osmscout::ShieldStyle::SetBorderColor ( const Color & color)

References ShieldStyle().

◆ SetLabel()

ShieldStyle & osmscout::ShieldStyle::SetLabel ( const LabelProviderRef & label)

References ShieldStyle().

◆ SetSize()

ShieldStyle & osmscout::ShieldStyle::SetSize ( double size)
overridevirtual

Reimplemented from osmscout::LabelStyle.

References osmscout::LabelStyle::SetSize(), and ShieldStyle().

Referenced by CopyAttributes().

◆ SetTextColor()

ShieldStyle & osmscout::ShieldStyle::SetTextColor ( const Color & color)

References ShieldStyle().


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