libosmscout
0.1
|
#include <Styles.h>
Public Types | |
enum | Attribute { attrLabel, attrSize, attrTextColor, attrDisplayOffset, attrOffset, attrPriority } |
Public Member Functions | |
void | CopyAttributes (const PathTextStyle &other, const std::set< Attribute > &attributes) |
double | GetDisplayOffset () const |
const LabelProviderRef & | GetLabel () const |
double | GetOffset () const |
size_t | GetPriority () const |
double | GetSize () const |
const Color & | GetTextColor () const |
bool | IsVisible () const |
PathTextStyle () | |
void | SetColorValue (int attribute, const Color &value) override |
PathTextStyle & | SetDisplayOffset (double value) |
void | SetDoubleValue (int attribute, double value) override |
PathTextStyle & | SetLabel (const LabelProviderRef &label) |
void | SetLabelValue (int attribute, const LabelProviderRef &value) override |
PathTextStyle & | SetOffset (double value) |
PathTextStyle & | SetPriority (size_t value) |
PathTextStyle & | SetSize (double size) |
PathTextStyle & | 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 for drawing text onto a path, the text following the contour of the path.
osmscout::PathTextStyle::PathTextStyle | ( | ) |
void osmscout::PathTextStyle::CopyAttributes | ( | const PathTextStyle & | other, |
const std::set< Attribute > & | attributes | ||
) |
References attrDisplayOffset, attrLabel, attrOffset, attrPriority, attrSize, and attrTextColor.
|
static |
References osmscout::pathTextStyleDescriptor.
Referenced by osmscout::oss::Parser::PATHTEXTSTYLEATTR().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
References osmscout::Color::IsVisible().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrTextColor, and SetTextColor().
PathTextStyle & osmscout::PathTextStyle::SetDisplayOffset | ( | double | value | ) |
Referenced by SetDoubleValue().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrDisplayOffset, attrOffset, attrSize, SetDisplayOffset(), SetOffset(), and SetSize().
PathTextStyle & osmscout::PathTextStyle::SetLabel | ( | const LabelProviderRef & | label | ) |
Referenced by SetLabelValue().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrLabel, and SetLabel().
PathTextStyle & osmscout::PathTextStyle::SetOffset | ( | double | value | ) |
Referenced by SetDoubleValue().
PathTextStyle & osmscout::PathTextStyle::SetPriority | ( | size_t | value | ) |
Referenced by SetUIntValue().
PathTextStyle & osmscout::PathTextStyle::SetSize | ( | double | size | ) |
Referenced by SetDoubleValue().
PathTextStyle & osmscout::PathTextStyle::SetTextColor | ( | const Color & | color | ) |
Referenced by SetColorValue().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrPriority, and SetPriority().