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

#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 ColorGetBgColor () const
 
const ColorGetBorderColor () const
 
const LabelProviderRefGetLabel () const
 
const ColorGetTextColor () const
 
bool IsVisible () const override
 
ShieldStyleSetBgColor (const Color &color)
 
ShieldStyleSetBorderColor (const Color &color)
 
ShieldStyleSetLabel (const LabelProviderRef &label)
 
ShieldStyleSetSize (double size) override
 
ShieldStyleSetTextColor (const Color &color)
 
 ShieldStyle ()
 
- Public Member Functions inherited from osmscout::LabelStyle
size_t GetPriority () const
 
double GetSize () const
 
 LabelStyle ()
 
LabelStyleSetPriority (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()

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

◆ GetAlpha()

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

◆ 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.

References osmscout::LabelStyle::SetSize().

Referenced by CopyAttributes().

◆ SetTextColor()

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

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