libosmscout  0.1
osmscout::PathShieldStyle Class Reference

#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
 
size_t GetPriority () const
 
double GetShieldSpace () const
 
const ShieldStyleRefGetShieldStyle () const
 
double GetSize () const
 
const ColorGetTextColor () const
 
bool IsVisible () const
 
PathShieldStyleoperator= (const PathShieldStyle &&style)=delete
 
PathShieldStyleoperator= (const PathShieldStyle &style)=delete
 
 PathShieldStyle ()
 
 PathShieldStyle (const PathShieldStyle &&style)
 
 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 (size_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 ()=default
 

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

◆ Attribute

Enumerator
attrPriority 
attrSize 
attrLabel 
attrTextColor 
attrBgColor 
attrBorderColor 
attrShieldSpace 

Constructor & Destructor Documentation

◆ PathShieldStyle() [1/3]

osmscout::PathShieldStyle::PathShieldStyle ( )

◆ PathShieldStyle() [2/3]

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

◆ PathShieldStyle() [3/3]

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

Member Function Documentation

◆ CopyAttributes()

◆ GetAlpha()

double osmscout::PathShieldStyle::GetAlpha ( ) const
inline

◆ GetBgColor()

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

Referenced by CopyAttributes().

◆ GetBorderColor()

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

Referenced by CopyAttributes().

◆ GetDescriptor()

StyleDescriptorRef osmscout::PathShieldStyle::GetDescriptor ( )
static

◆ GetLabel()

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

Referenced by CopyAttributes().

◆ GetPriority()

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

Referenced by CopyAttributes().

◆ GetShieldSpace()

double osmscout::PathShieldStyle::GetShieldSpace ( ) const
inline

◆ GetShieldStyle()

const ShieldStyleRef& osmscout::PathShieldStyle::GetShieldStyle ( ) const
inline

◆ GetSize()

double osmscout::PathShieldStyle::GetSize ( ) const
inline

Referenced by CopyAttributes().

◆ GetTextColor()

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

Referenced by CopyAttributes().

◆ IsVisible()

bool osmscout::PathShieldStyle::IsVisible ( ) const
inline

◆ operator=() [1/2]

PathShieldStyle& osmscout::PathShieldStyle::operator= ( const PathShieldStyle &&  style)
delete

◆ operator=() [2/2]

PathShieldStyle& osmscout::PathShieldStyle::operator= ( const PathShieldStyle style)
delete

◆ SetBgColor()

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

Referenced by CopyAttributes(), and SetColorValue().

◆ SetBorderColor()

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

Referenced by CopyAttributes(), and SetColorValue().

◆ SetColorValue()

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

◆ SetDoubleValue()

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

Reimplemented from osmscout::Style.

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

◆ SetLabel()

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

Referenced by CopyAttributes(), and SetLabelValue().

◆ SetLabelValue()

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

Reimplemented from osmscout::Style.

References attrLabel, and SetLabel().

◆ SetPriority()

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

Referenced by CopyAttributes(), and SetUIntValue().

◆ SetShieldSpace()

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

Referenced by SetDoubleValue().

◆ SetSize()

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

Referenced by CopyAttributes(), and SetDoubleValue().

◆ SetTextColor()

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

Referenced by CopyAttributes(), and SetColorValue().

◆ SetUIntValue()

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: