libosmscout
0.1
|
#include <Styles.h>
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 Color & | GetBgColor () const |
const Color & | GetBorderColor () const |
const LabelProviderRef & | GetLabel () const |
size_t | GetPriority () const |
double | GetShieldSpace () const |
const ShieldStyleRef & | GetShieldStyle () const |
double | GetSize () const |
const Color & | GetTextColor () const |
bool | IsVisible () const |
PathShieldStyle & | operator= (const PathShieldStyle &&style)=delete |
PathShieldStyle & | operator= (const PathShieldStyle &style)=delete |
PathShieldStyle () | |
PathShieldStyle (const PathShieldStyle &&style) | |
PathShieldStyle (const PathShieldStyle &style) | |
PathShieldStyle & | SetBgColor (const Color &color) |
PathShieldStyle & | SetBorderColor (const Color &color) |
void | SetColorValue (int attribute, const Color &value) override |
void | SetDoubleValue (int attribute, double value) override |
PathShieldStyle & | SetLabel (const LabelProviderRef &label) |
void | SetLabelValue (int attribute, const LabelProviderRef &value) override |
PathShieldStyle & | SetPriority (size_t priority) |
PathShieldStyle & | SetShieldSpace (double shieldSpace) |
PathShieldStyle & | SetSize (double size) |
PathShieldStyle & | SetTextColor (const Color &color) |
void | SetUIntValue (int attribute, size_t value) override |
![]() | |
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 () |
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.
osmscout::PathShieldStyle::PathShieldStyle | ( | ) |
osmscout::PathShieldStyle::PathShieldStyle | ( | const PathShieldStyle & | style | ) |
osmscout::PathShieldStyle::PathShieldStyle | ( | const PathShieldStyle && | style | ) |
void osmscout::PathShieldStyle::CopyAttributes | ( | const PathShieldStyle & | other, |
const std::set< Attribute > & | attributes | ||
) |
|
inline |
|
inline |
Referenced by CopyAttributes().
|
inline |
Referenced by CopyAttributes().
|
static |
References osmscout::pathShieldStyleDescriptor.
Referenced by osmscout::oss::Parser::PATHSHIELDSTYLEATTR().
|
inline |
Referenced by CopyAttributes().
|
inline |
Referenced by CopyAttributes().
|
inline |
|
inline |
|
inline |
Referenced by CopyAttributes().
|
inline |
Referenced by CopyAttributes().
|
inline |
|
delete |
|
delete |
PathShieldStyle & osmscout::PathShieldStyle::SetBgColor | ( | const Color & | color | ) |
Referenced by CopyAttributes(), and SetColorValue().
PathShieldStyle & osmscout::PathShieldStyle::SetBorderColor | ( | const Color & | color | ) |
Referenced by CopyAttributes(), and SetColorValue().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrBgColor, attrBorderColor, attrTextColor, SetBgColor(), SetBorderColor(), and SetTextColor().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrShieldSpace, attrSize, SetShieldSpace(), and SetSize().
PathShieldStyle & osmscout::PathShieldStyle::SetLabel | ( | const LabelProviderRef & | label | ) |
Referenced by CopyAttributes(), and SetLabelValue().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrLabel, and SetLabel().
PathShieldStyle & osmscout::PathShieldStyle::SetPriority | ( | size_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().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrPriority, and SetPriority().