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

Style options for a line. More...

#include <Styles.h>

+ Inheritance diagram for osmscout::LineStyle:

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)
 
- Public Member Functions inherited from osmscout::Style
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 ()
 

Detailed Description

Style options for a line.

Member Enumeration Documentation

◆ Attribute

Enumerator
attrLineColor 
attrGapColor 
attrPreferColorFeature 
attrDisplayWidth 
attrWidth 
attrDisplayOffset 
attrOffset 
attrJoinCap 
attrEndCap 
attrDashes 
attrPriority 
attrZIndex 
attrOffsetRel 

◆ CapStyle

Enumerator
capButt 
capRound 
capSquare 

Constructor & Destructor Documentation

◆ LineStyle()

osmscout::LineStyle::LineStyle ( )

Member Function Documentation

◆ CopyAttributes()

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

◆ GetDash()

const std::vector< double > & osmscout::LineStyle::GetDash ( ) const
inline

◆ GetDescriptor()

StyleDescriptorRef osmscout::LineStyle::GetDescriptor ( )
static

◆ GetDisplayOffset()

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

◆ GetDisplayWidth()

double osmscout::LineStyle::GetDisplayWidth ( ) const
inline

◆ GetEndCap()

CapStyle osmscout::LineStyle::GetEndCap ( ) const
inline

◆ GetGapColor()

const Color & osmscout::LineStyle::GetGapColor ( ) const
inline

◆ GetJoinCap()

CapStyle osmscout::LineStyle::GetJoinCap ( ) const
inline

◆ GetLineColor()

const Color & osmscout::LineStyle::GetLineColor ( ) const
inline

◆ GetOffset()

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

◆ GetOffsetRel()

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

◆ GetPreferColorFeature()

bool osmscout::LineStyle::GetPreferColorFeature ( ) const
inline

◆ GetPriority()

int osmscout::LineStyle::GetPriority ( ) const
inline

◆ GetSlot()

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

◆ GetWidth()

double osmscout::LineStyle::GetWidth ( ) const
inline

◆ GetZIndex()

int osmscout::LineStyle::GetZIndex ( ) const
inline

◆ HasDashes()

bool osmscout::LineStyle::HasDashes ( ) const
inline

◆ IsVisible()

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

◆ operator!=()

bool osmscout::LineStyle::operator!= ( const LineStyle &  other) const

References operator==().

◆ operator<()

bool osmscout::LineStyle::operator< ( const LineStyle &  other) const

◆ operator==()

bool osmscout::LineStyle::operator== ( const LineStyle &  other) const

Referenced by operator!=().

◆ SetBoolValue()

void osmscout::LineStyle::SetBoolValue ( int  attribute,
bool  value 
)
overridevirtual

Reimplemented from osmscout::Style.

References attrPreferColorFeature.

◆ SetColorValue()

void osmscout::LineStyle::SetColorValue ( int  attribute,
const Color &  value 
)
overridevirtual

Reimplemented from osmscout::Style.

References attrGapColor, attrLineColor, SetGapColor(), and SetLineColor().

◆ SetDashes()

LineStyle & osmscout::LineStyle::SetDashes ( const std::vector< double > &  dashes)

Referenced by SetDoubleArrayValue().

◆ SetDisplayOffset()

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

Referenced by SetDoubleValue().

◆ SetDisplayWidth()

LineStyle & osmscout::LineStyle::SetDisplayWidth ( double  value)

Referenced by SetDoubleValue().

◆ SetDoubleArrayValue()

void osmscout::LineStyle::SetDoubleArrayValue ( int  attribute,
const std::vector< double > &  value 
)
overridevirtual

Reimplemented from osmscout::Style.

References attrDashes, and SetDashes().

◆ SetDoubleValue()

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

◆ SetEndCap()

LineStyle & osmscout::LineStyle::SetEndCap ( CapStyle  endCap)

Referenced by SetIntValue().

◆ SetGapColor()

LineStyle & osmscout::LineStyle::SetGapColor ( const Color &  color)

Referenced by SetColorValue().

◆ SetIntValue()

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

◆ SetJoinCap()

LineStyle & osmscout::LineStyle::SetJoinCap ( CapStyle  joinCap)

Referenced by SetIntValue().

◆ SetLineColor()

LineStyle & osmscout::LineStyle::SetLineColor ( const Color &  color)

Referenced by SetColorValue().

◆ SetOffset()

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

Referenced by SetDoubleValue().

◆ SetOffsetRel()

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

Referenced by SetIntValue().

◆ SetPreferColorFeature()

LineStyle & osmscout::LineStyle::SetPreferColorFeature ( bool  value)

◆ SetPriority()

LineStyle & osmscout::LineStyle::SetPriority ( int  priority)

Referenced by SetIntValue().

◆ SetSlot()

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

◆ SetWidth()

LineStyle & osmscout::LineStyle::SetWidth ( double  value)

Referenced by SetDoubleValue().

◆ SetZIndex()

LineStyle & osmscout::LineStyle::SetZIndex ( int  zIndex)

Referenced by SetIntValue().


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