libosmscout
0.1
|
#include <Styles.h>
Public Types | |
enum | Attribute { attrColor, attrGapColor, attrWidth, attrDashes, attrDisplayOffset, attrOffset, attrPriority } |
Public Member Functions | |
BorderStyle () | |
void | CopyAttributes (const BorderStyle &other, const std::set< Attribute > &attributes) |
const Color & | GetColor () const |
const std::vector< double > & | GetDash () const |
double | GetDisplayOffset () const |
const Color & | GetGapColor () const |
double | GetOffset () const |
int | GetPriority () const |
const std::string & | GetSlot () const |
double | GetWidth () const |
bool | HasDashes () const |
bool | IsVisible () const |
bool | operator!= (const BorderStyle &other) const |
bool | operator< (const BorderStyle &other) const |
bool | operator== (const BorderStyle &other) const |
BorderStyle & | SetColor (const Color &color) |
void | SetColorValue (int attribute, const Color &value) override |
BorderStyle & | SetDashes (const std::vector< double > &dashes) |
BorderStyle & | SetDisplayOffset (double value) |
void | SetDoubleArrayValue (int attribute, const std::vector< double > &value) override |
void | SetDoubleValue (int attribute, double value) override |
BorderStyle & | SetGapColor (const Color &color) |
void | SetIntValue (int attribute, int value) override |
BorderStyle & | SetOffset (double value) |
BorderStyle & | SetPriority (int priority) |
BorderStyle & | SetSlot (const std::string &slot) |
BorderStyle & | SetWidth (double value) |
![]() | |
virtual void | SetBoolValue (int attribute, bool 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 |
Static Public Member Functions | |
static StyleDescriptorRef | GetDescriptor () |
Style options for borders around an area.
osmscout::BorderStyle::BorderStyle | ( | ) |
void osmscout::BorderStyle::CopyAttributes | ( | const BorderStyle & | other, |
const std::set< Attribute > & | attributes | ||
) |
References attrColor, attrDashes, attrDisplayOffset, attrGapColor, attrOffset, attrPriority, and attrWidth.
|
inline |
|
inline |
|
static |
References osmscout::borderStyleDescriptor.
Referenced by osmscout::oss::Parser::BORDERSTYLEATTR().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References osmscout::Color::IsVisible().
bool osmscout::BorderStyle::operator!= | ( | const BorderStyle & | other | ) | const |
References operator==().
bool osmscout::BorderStyle::operator< | ( | const BorderStyle & | other | ) | const |
bool osmscout::BorderStyle::operator== | ( | const BorderStyle & | other | ) | const |
Referenced by operator!=().
BorderStyle & osmscout::BorderStyle::SetColor | ( | const Color & | color | ) |
Referenced by SetColorValue().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrColor, attrGapColor, and SetColor().
BorderStyle & osmscout::BorderStyle::SetDashes | ( | const std::vector< double > & | dashes | ) |
Referenced by SetDoubleArrayValue().
BorderStyle & osmscout::BorderStyle::SetDisplayOffset | ( | double | value | ) |
Referenced by SetDoubleValue().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrDashes, and SetDashes().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrDisplayOffset, attrOffset, attrWidth, SetDisplayOffset(), SetOffset(), and SetWidth().
BorderStyle & osmscout::BorderStyle::SetGapColor | ( | const Color & | color | ) |
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrPriority, and SetPriority().
BorderStyle & osmscout::BorderStyle::SetOffset | ( | double | value | ) |
Referenced by SetDoubleValue().
BorderStyle & osmscout::BorderStyle::SetPriority | ( | int | priority | ) |
Referenced by SetIntValue().
BorderStyle & osmscout::BorderStyle::SetSlot | ( | const std::string & | slot | ) |
BorderStyle & osmscout::BorderStyle::SetWidth | ( | double | value | ) |
Referenced by SetDoubleValue().