libosmscout 0.1
Loading...
Searching...
No Matches
osmscout::PathSymbolStyle Class Referencefinal

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 ()
 

Detailed Description

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

Member Enumeration Documentation

◆ Attribute

Enumerator
attrSymbol 
attrRenderMode 
attrScale 
attrSymbolSpace 
attrDisplayOffset 
attrOffset 
attrOffsetRel 

◆ RenderMode

enum class osmscout::PathSymbolStyle::RenderMode : int
strong
Enumerator
fixed 
scale 

Constructor & Destructor Documentation

◆ PathSymbolStyle()

osmscout::PathSymbolStyle::PathSymbolStyle ( )
default

Member Function Documentation

◆ CopyAttributes()

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

◆ GetDescriptor()

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

◆ GetRenderMode()

RenderMode osmscout::PathSymbolStyle::GetRenderMode ( ) const
inline

◆ GetScale()

double osmscout::PathSymbolStyle::GetScale ( ) 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

◆ HasDisplayOffset()

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

◆ HasOffset()

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

◆ IsVisible()

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

◆ SetDisplayOffset()

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

Referenced by SetDoubleValue().

◆ SetDoubleValue()

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

◆ SetIntValue()

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

◆ SetOffset()

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

Referenced by SetDoubleValue().

◆ SetOffsetRel()

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

Referenced by SetIntValue().

◆ SetRenderMode()

PathSymbolStyle & osmscout::PathSymbolStyle::SetRenderMode ( RenderMode  renderMode)

Referenced by SetIntValue().

◆ SetScale()

PathSymbolStyle & osmscout::PathSymbolStyle::SetScale ( double  scale)

Referenced by SetDoubleValue().

◆ SetSlot()

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

◆ SetSymbol()

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

Referenced by SetSymbolValue().

◆ SetSymbolSpace()

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

Referenced by SetDoubleValue().

◆ SetSymbolValue()

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

Reimplemented from osmscout::Style.

References attrSymbol, and SetSymbol().


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