|
libosmscout 0.1
|
Style for repetive drawing of symbols on top of a path. More...
#include <Styles.h>
Inheritance diagram for osmscout::PathSymbolStyle:Public Types | |
| enum | Attribute { attrSymbol , attrRenderMode , attrScale , attrSymbolSpace , attrDisplayOffset , attrOffset , attrOffsetRel } |
| enum class | RenderMode : int { fixed , scale } |
Public Member Functions | |
| void | CopyAttributes (const PathSymbolStyle &other, const std::set< Attribute > &attributes) |
| double | GetDisplayOffset () const |
| double | GetOffset () const |
| OffsetRel | GetOffsetRel () const |
| RenderMode | GetRenderMode () const |
| double | GetScale () const |
| const std::string & | GetSlot () const |
| const SymbolRef & | GetSymbol () const |
| double | GetSymbolSpace () const |
| bool | HasDisplayOffset () const |
| bool | HasOffset () const |
| bool | IsVisible () const |
| PathSymbolStyle ()=default | |
| PathSymbolStyle & | SetDisplayOffset (double value) |
| void | SetDoubleValue (int attribute, double value) override |
| void | SetIntValue (int attribute, int value) override |
| PathSymbolStyle & | SetOffset (double value) |
| PathSymbolStyle & | SetOffsetRel (OffsetRel offsetRel) |
| PathSymbolStyle & | SetRenderMode (RenderMode renderMode) |
| PathSymbolStyle & | SetScale (double scale) |
| PathSymbolStyle & | SetSlot (const std::string &slot) |
| PathSymbolStyle & | SetSymbol (const SymbolRef &symbol) |
| PathSymbolStyle & | SetSymbolSpace (double space) |
| void | SetSymbolValue (int attribute, const SymbolRef &value) override |
Public Member Functions inherited from osmscout::Style | |
| virtual void | SetBoolValue (int attribute, bool value) |
| virtual void | SetColorValue (int attribute, const Color &value) |
| virtual void | SetDoubleArrayValue (int attribute, const std::vector< double > &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 | SetUIntValue (int attribute, size_t value) |
| virtual | ~Style ()=default |
Static Public Member Functions | |
| static StyleDescriptorRef | GetDescriptor () |
Style for repetive drawing of symbols on top of a path.
|
strong |
|
default |
| void osmscout::PathSymbolStyle::CopyAttributes | ( | const PathSymbolStyle & | other, |
| const std::set< Attribute > & | attributes | ||
| ) |
References attrDisplayOffset, attrOffset, attrOffsetRel, attrRenderMode, attrScale, attrSymbol, and attrSymbolSpace.
|
static |
References osmscout::pathSymbolStyleDescriptor.
Referenced by osmscout::oss::Parser::PATHSYMBOLSTYLEATTR().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| PathSymbolStyle & osmscout::PathSymbolStyle::SetDisplayOffset | ( | double | value | ) |
Referenced by SetDoubleValue().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrDisplayOffset, attrOffset, attrScale, attrSymbolSpace, SetDisplayOffset(), SetOffset(), SetScale(), and SetSymbolSpace().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrOffsetRel, attrRenderMode, SetOffsetRel(), and SetRenderMode().
| PathSymbolStyle & osmscout::PathSymbolStyle::SetOffset | ( | double | value | ) |
Referenced by SetDoubleValue().
| PathSymbolStyle & osmscout::PathSymbolStyle::SetOffsetRel | ( | OffsetRel | offsetRel | ) |
Referenced by SetIntValue().
| PathSymbolStyle & osmscout::PathSymbolStyle::SetRenderMode | ( | RenderMode | renderMode | ) |
Referenced by SetIntValue().
| PathSymbolStyle & osmscout::PathSymbolStyle::SetScale | ( | double | scale | ) |
Referenced by SetDoubleValue().
| PathSymbolStyle & osmscout::PathSymbolStyle::SetSlot | ( | const std::string & | slot | ) |
| PathSymbolStyle & osmscout::PathSymbolStyle::SetSymbol | ( | const SymbolRef & | symbol | ) |
Referenced by SetSymbolValue().
| PathSymbolStyle & osmscout::PathSymbolStyle::SetSymbolSpace | ( | double | space | ) |
Referenced by SetDoubleValue().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrSymbol, and SetSymbol().