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

#include <libosmscout-map/include/osmscoutmap/Styles.h>

Inheritance diagram for osmscout::ShieldStyle:
Collaboration diagram for osmscout::ShieldStyle:

Public Types

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

Public Member Functions

 ShieldStyle ()
ShieldStyleSetLabel (const LabelProviderRef &label)
ShieldStyleSetSize (double size) override
ShieldStyleSetTextColor (const Color &color)
ShieldStyleSetBgColor (const Color &color)
ShieldStyleSetBorderColor (const Color &color)
bool IsVisible () const override
double GetAlpha () const override
const LabelProviderRefGetLabel () const
const Color & GetTextColor () const
const Color & GetBgColor () const
const Color & GetBorderColor () const
void CopyAttributes (const ShieldStyle &other, const std::set< Attribute > &attributes)
Public Member Functions inherited from osmscout::LabelStyle
 LabelStyle ()
LabelStyleSetPriority (size_t priority)
size_t GetPriority () const
double GetSize () const
Public Member Functions inherited from osmscout::Style
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

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

void osmscout::ShieldStyle::CopyAttributes ( const ShieldStyle & other,
const std::set< Attribute > & attributes )

◆ 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

◆ IsVisible()

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

Implements osmscout::LabelStyle.

◆ SetBgColor()

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

◆ SetBorderColor()

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

◆ SetLabel()

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

◆ SetSize()

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

Reimplemented from osmscout::LabelStyle.

◆ SetTextColor()

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

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