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

A style defining repetive drawing of a shield label along a path. More...

#include <Styles.h>

+ Inheritance diagram for osmscout::PathShieldStyle:

Public Types

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

Public Member Functions

void CopyAttributes (const PathShieldStyle &other, const std::set< Attribute > &attributes)
 
double GetAlpha () const
 
const ColorGetBgColor () const
 
const ColorGetBorderColor () const
 
const LabelProviderRefGetLabel () const
 
uint8_t GetPriority () const
 
double GetShieldSpace () const
 
const ShieldStyleRefGetShieldStyle () const
 
double GetSize () const
 
const ColorGetTextColor () const
 
bool IsVisible () const
 
 PathShieldStyle ()
 
 PathShieldStyle (const PathShieldStyle &style)
 
PathShieldStyleSetBgColor (const Color &color)
 
PathShieldStyleSetBorderColor (const Color &color)
 
void SetColorValue (int attribute, const Color &value) override
 
void SetDoubleValue (int attribute, double value) override
 
PathShieldStyleSetLabel (const LabelProviderRef &label)
 
void SetLabelValue (int attribute, const LabelProviderRef &value) override
 
PathShieldStyleSetPriority (uint8_t priority)
 
PathShieldStyleSetShieldSpace (double shieldSpace)
 
PathShieldStyleSetSize (double size)
 
PathShieldStyleSetTextColor (const Color &color)
 
void SetUIntValue (int attribute, size_t value) override
 
- Public Member Functions inherited from osmscout::Style
virtual void SetBoolValue (int attribute, bool value)
 
virtual void SetDoubleArrayValue (int attribute, const std::vector< double > &value)
 
virtual void SetIntValue (int attribute, int 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 ~Style ()
 

Static Public Member Functions

static StyleDescriptorRef GetDescriptor ()
 

Detailed Description

A style defining repetive drawing of a shield label along a path.

It consists mainly of the attributes of the shield itself (it internally holds a shield label for this) and some more attributes defining the way of repetition.

Member Enumeration Documentation

Enumerator
attrPriority 
attrSize 
attrLabel 
attrTextColor 
attrBgColor 
attrBorderColor 
attrShieldSpace 

Constructor & Destructor Documentation

osmscout::PathShieldStyle::PathShieldStyle ( )
osmscout::PathShieldStyle::PathShieldStyle ( const PathShieldStyle style)

Member Function Documentation

double osmscout::PathShieldStyle::GetAlpha ( ) const
inline
const Color& osmscout::PathShieldStyle::GetBgColor ( ) const
inline

Referenced by CopyAttributes().

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

Referenced by CopyAttributes().

StyleDescriptorRef osmscout::PathShieldStyle::GetDescriptor ( )
static
const LabelProviderRef& osmscout::PathShieldStyle::GetLabel ( ) const
inline

Referenced by CopyAttributes().

uint8_t osmscout::PathShieldStyle::GetPriority ( ) const
inline

Referenced by CopyAttributes().

double osmscout::PathShieldStyle::GetShieldSpace ( ) const
inline
const ShieldStyleRef& osmscout::PathShieldStyle::GetShieldStyle ( ) const
inline
double osmscout::PathShieldStyle::GetSize ( ) const
inline

Referenced by CopyAttributes().

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

Referenced by CopyAttributes().

bool osmscout::PathShieldStyle::IsVisible ( ) const
inline
PathShieldStyle & osmscout::PathShieldStyle::SetBgColor ( const Color color)

Referenced by CopyAttributes(), and SetColorValue().

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

Referenced by CopyAttributes(), and SetColorValue().

void osmscout::PathShieldStyle::SetColorValue ( int  attribute,
const Color value 
)
overridevirtual
void osmscout::PathShieldStyle::SetDoubleValue ( int  attribute,
double  value 
)
overridevirtual

Reimplemented from osmscout::Style.

References attrShieldSpace, attrSize, SetShieldSpace(), and SetSize().

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

Referenced by CopyAttributes(), and SetLabelValue().

void osmscout::PathShieldStyle::SetLabelValue ( int  attribute,
const LabelProviderRef value 
)
overridevirtual

Reimplemented from osmscout::Style.

References attrLabel, and SetLabel().

PathShieldStyle & osmscout::PathShieldStyle::SetPriority ( uint8_t  priority)

Referenced by CopyAttributes(), and SetUIntValue().

PathShieldStyle & osmscout::PathShieldStyle::SetShieldSpace ( double  shieldSpace)

Referenced by SetDoubleValue().

PathShieldStyle & osmscout::PathShieldStyle::SetSize ( double  size)

Referenced by CopyAttributes(), and SetDoubleValue().

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

Referenced by CopyAttributes(), and SetColorValue().

void osmscout::PathShieldStyle::SetUIntValue ( int  attribute,
size_t  value 
)
overridevirtual

Reimplemented from osmscout::Style.

References attrPriority, and SetPriority().


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