libosmscout
0.1
|
#include <Styles.h>
Public Types | |
enum | Attribute { attrLineColor, attrGapColor, attrPreferColorFeature, attrDisplayWidth, attrWidth, attrDisplayOffset, attrOffset, attrJoinCap, attrEndCap, attrDashes, attrPriority, attrZIndex, attrOffsetRel } |
enum | CapStyle { capButt, capRound, capSquare } |
Public Member Functions | |
void | CopyAttributes (const LineStyle &other, const std::set< Attribute > &attributes) |
const std::vector< double > & | GetDash () const |
double | GetDisplayOffset () const |
double | GetDisplayWidth () const |
CapStyle | GetEndCap () const |
const Color & | GetGapColor () const |
CapStyle | GetJoinCap () const |
const Color & | GetLineColor () const |
double | GetOffset () const |
OffsetRel | GetOffsetRel () const |
bool | GetPreferColorFeature () const |
int | GetPriority () const |
const std::string & | GetSlot () const |
double | GetWidth () const |
int | GetZIndex () const |
bool | HasDashes () const |
bool | IsVisible () const |
LineStyle () | |
bool | operator!= (const LineStyle &other) const |
bool | operator< (const LineStyle &other) const |
bool | operator== (const LineStyle &other) const |
void | SetBoolValue (int attribute, bool value) override |
void | SetColorValue (int attribute, const Color &value) override |
LineStyle & | SetDashes (const std::vector< double > &dashes) |
LineStyle & | SetDisplayOffset (double value) |
LineStyle & | SetDisplayWidth (double value) |
void | SetDoubleArrayValue (int attribute, const std::vector< double > &value) override |
void | SetDoubleValue (int attribute, double value) override |
LineStyle & | SetEndCap (CapStyle endCap) |
LineStyle & | SetGapColor (const Color &color) |
void | SetIntValue (int attribute, int value) override |
LineStyle & | SetJoinCap (CapStyle joinCap) |
LineStyle & | SetLineColor (const Color &color) |
LineStyle & | SetOffset (double value) |
LineStyle & | SetOffsetRel (OffsetRel offsetRel) |
LineStyle & | SetPreferColorFeature (bool value) |
LineStyle & | SetPriority (int priority) |
LineStyle & | SetSlot (const std::string &slot) |
LineStyle & | SetWidth (double value) |
LineStyle & | SetZIndex (int zIndex) |
![]() | |
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 a line.
osmscout::LineStyle::LineStyle | ( | ) |
References osmscout::base.
|
inline |
|
static |
References osmscout::lineStyleDescriptor.
Referenced by osmscout::oss::Parser::LINESTYLEATTR().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References osmscout::Color::IsVisible().
bool osmscout::LineStyle::operator!= | ( | const LineStyle & | other | ) | const |
References operator==().
bool osmscout::LineStyle::operator< | ( | const LineStyle & | other | ) | const |
bool osmscout::LineStyle::operator== | ( | const LineStyle & | other | ) | const |
Referenced by operator!=().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrPreferColorFeature.
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrGapColor, attrLineColor, SetGapColor(), and SetLineColor().
LineStyle & osmscout::LineStyle::SetDashes | ( | const std::vector< double > & | dashes | ) |
Referenced by SetDoubleArrayValue().
LineStyle & osmscout::LineStyle::SetDisplayOffset | ( | double | value | ) |
Referenced by SetDoubleValue().
LineStyle & osmscout::LineStyle::SetDisplayWidth | ( | double | value | ) |
Referenced by SetDoubleValue().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrDashes, and SetDashes().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrDisplayOffset, attrDisplayWidth, attrOffset, attrWidth, SetDisplayOffset(), SetDisplayWidth(), SetOffset(), and SetWidth().
Referenced by SetIntValue().
Referenced by SetColorValue().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrEndCap, attrJoinCap, attrOffsetRel, attrPriority, attrZIndex, SetEndCap(), SetJoinCap(), SetOffsetRel(), SetPriority(), and SetZIndex().
Referenced by SetIntValue().
Referenced by SetColorValue().
LineStyle & osmscout::LineStyle::SetOffset | ( | double | value | ) |
Referenced by SetDoubleValue().
Referenced by SetIntValue().
LineStyle & osmscout::LineStyle::SetPreferColorFeature | ( | bool | value | ) |
LineStyle & osmscout::LineStyle::SetPriority | ( | int | priority | ) |
Referenced by SetIntValue().
LineStyle & osmscout::LineStyle::SetSlot | ( | const std::string & | slot | ) |
LineStyle & osmscout::LineStyle::SetWidth | ( | double | value | ) |
Referenced by SetDoubleValue().
LineStyle & osmscout::LineStyle::SetZIndex | ( | int | zIndex | ) |
Referenced by SetIntValue().