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

Index selectors by type and level. More...

#include <StyleConfig.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
 
const ColorGetBgColor () const
 
const ColorGetBorderColor () const
 
const LabelProviderRefGetLabel () const
 
const ColorGetTextColor () const
 
bool IsVisible () const
 
ShieldStyleSetBgColor (const Color &color)
 
ShieldStyleSetBorderColor (const Color &color)
 
ShieldStyleSetLabel (const LabelProviderRef &label)
 
ShieldStyleSetPriority (uint8_t priority)
 
ShieldStyleSetSize (double size)
 
ShieldStyleSetTextColor (const Color &color)
 
 ShieldStyle ()
 
 ShieldStyle (const ShieldStyle &style)
 
- Public Member Functions inherited from osmscout::LabelStyle
size_t GetPriority () const
 
double GetSize () const
 
 LabelStyle ()
 
 LabelStyle (const LabelStyle &style)
 
LabelStyleSetPriority (size_t priority)
 
LabelStyleSetSize (double size)
 
virtual ~LabelStyle ()
 
- 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 ()
 

Detailed Description

Index selectors by type and level.

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

Member Enumeration Documentation

Enumerator
attrPriority 
attrSize 
attrLabel 
attrTextColor 
attrBgColor 
attrBorderColor 

Constructor & Destructor Documentation

osmscout::ShieldStyle::ShieldStyle ( )
osmscout::ShieldStyle::ShieldStyle ( const ShieldStyle style)

Member Function Documentation

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

Implements osmscout::LabelStyle.

const Color& osmscout::ShieldStyle::GetBgColor ( ) const
inline
const Color& osmscout::ShieldStyle::GetBorderColor ( ) const
inline
const LabelProviderRef& osmscout::ShieldStyle::GetLabel ( ) const
inline
const Color& osmscout::ShieldStyle::GetTextColor ( ) const
inline
bool osmscout::ShieldStyle::IsVisible ( ) const
inlinevirtual

Implements osmscout::LabelStyle.

ShieldStyle & osmscout::ShieldStyle::SetBgColor ( const Color color)
ShieldStyle & osmscout::ShieldStyle::SetBorderColor ( const Color color)
ShieldStyle & osmscout::ShieldStyle::SetLabel ( const LabelProviderRef label)
ShieldStyle & osmscout::ShieldStyle::SetPriority ( uint8_t  priority)
ShieldStyle & osmscout::ShieldStyle::SetSize ( double  size)
ShieldStyle & osmscout::ShieldStyle::SetTextColor ( const Color color)

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