libosmscout  1.1.1
Public Types | Public Member Functions | Static Public Member Functions | List of all members
osmscout::PathSymbolStyle Class Reference

#include <libosmscout-map/include/osmscout/Styles.h>

Inheritance diagram for osmscout::PathSymbolStyle:
Inheritance graph
[legend]
Collaboration diagram for osmscout::PathSymbolStyle:
Collaboration graph
[legend]

Public Types

enum  Attribute {
  attrSymbol, attrSymbolSpace, attrDisplayOffset, attrOffset,
  attrOffsetRel
}
 

Public Member Functions

 PathSymbolStyle ()
 
 PathSymbolStyle (const PathSymbolStyle &style)
 
void SetDoubleValue (int attribute, double value) override
 
void SetSymbolValue (int attribute, const SymbolRef &value) override
 
void SetIntValue (int attribute, int value) override
 
PathSymbolStyleSetSlot (const std::string &slot)
 
PathSymbolStyleSetSymbol (const SymbolRef &symbol)
 
PathSymbolStyleSetSymbolSpace (double space)
 
PathSymbolStyleSetDisplayOffset (double value)
 
PathSymbolStyleSetOffset (double value)
 
PathSymbolStyleSetOffsetRel (OffsetRel offsetRel)
 
bool IsVisible () const
 
const std::string & GetSlot () const
 
const SymbolRefGetSymbol () const
 
double GetSymbolSpace () const
 
double GetDisplayOffset () const
 
double GetOffset () const
 
OffsetRel GetOffsetRel () const
 
void CopyAttributes (const PathSymbolStyle &other, const std::set< Attribute > &attributes)
 
- Public Member Functions inherited from osmscout::Style
virtual ~Style ()=default
 
virtual void SetBoolValue (int attribute, bool value)
 
virtual void SetStringValue (int attribute, const std::string &value)
 
virtual void SetColorValue (int attribute, const Color &value)
 
virtual void SetMagnificationValue (int attribute, const Magnification &value)
 
virtual void SetDoubleArrayValue (int attribute, const std::vector< double > &value)
 
virtual void SetUIntValue (int attribute, size_t value)
 
virtual void SetLabelValue (int attribute, const LabelProviderRef &value)
 

Static Public Member Functions

static StyleDescriptorRef GetDescriptor ()
 

Detailed Description

Style for repetive drawing of symbols on top of a path.

Member Enumeration Documentation

◆ Attribute

Enumerator
attrSymbol 
attrSymbolSpace 
attrDisplayOffset 
attrOffset 
attrOffsetRel 

Constructor & Destructor Documentation

◆ PathSymbolStyle() [1/2]

osmscout::PathSymbolStyle::PathSymbolStyle ( )

◆ PathSymbolStyle() [2/2]

osmscout::PathSymbolStyle::PathSymbolStyle ( const PathSymbolStyle style)

Member Function Documentation

◆ CopyAttributes()

void osmscout::PathSymbolStyle::CopyAttributes ( const PathSymbolStyle other,
const std::set< Attribute > &  attributes 
)

◆ GetDescriptor()

static StyleDescriptorRef osmscout::PathSymbolStyle::GetDescriptor ( )
static

◆ GetDisplayOffset()

double osmscout::PathSymbolStyle::GetDisplayOffset ( ) const
inline

◆ GetOffset()

double osmscout::PathSymbolStyle::GetOffset ( ) const
inline

◆ GetOffsetRel()

OffsetRel osmscout::PathSymbolStyle::GetOffsetRel ( ) const
inline

◆ GetSlot()

const std::string& osmscout::PathSymbolStyle::GetSlot ( ) const
inline

◆ GetSymbol()

const SymbolRef& osmscout::PathSymbolStyle::GetSymbol ( ) const
inline

◆ GetSymbolSpace()

double osmscout::PathSymbolStyle::GetSymbolSpace ( ) const
inline

◆ IsVisible()

bool osmscout::PathSymbolStyle::IsVisible ( ) const
inline

◆ SetDisplayOffset()

PathSymbolStyle& osmscout::PathSymbolStyle::SetDisplayOffset ( double  value)

◆ SetDoubleValue()

void osmscout::PathSymbolStyle::SetDoubleValue ( int  attribute,
double  value 
)
overridevirtual

Reimplemented from osmscout::Style.

◆ SetIntValue()

void osmscout::PathSymbolStyle::SetIntValue ( int  attribute,
int  value 
)
overridevirtual

Reimplemented from osmscout::Style.

◆ SetOffset()

PathSymbolStyle& osmscout::PathSymbolStyle::SetOffset ( double  value)

◆ SetOffsetRel()

PathSymbolStyle& osmscout::PathSymbolStyle::SetOffsetRel ( OffsetRel  offsetRel)

◆ SetSlot()

PathSymbolStyle& osmscout::PathSymbolStyle::SetSlot ( const std::string &  slot)

◆ SetSymbol()

PathSymbolStyle& osmscout::PathSymbolStyle::SetSymbol ( const SymbolRef symbol)

◆ SetSymbolSpace()

PathSymbolStyle& osmscout::PathSymbolStyle::SetSymbolSpace ( double  space)

◆ SetSymbolValue()

void osmscout::PathSymbolStyle::SetSymbolValue ( int  attribute,
const SymbolRef value 
)
overridevirtual

Reimplemented from osmscout::Style.


The documentation for this class was generated from the following file: