libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
osmscout::LineStyle Class Reference

Style options for a line. More...

#include <StyleConfig.h>

+ Inheritance diagram for osmscout::LineStyle:

Public Types

enum  Attribute {
  attrLineColor, attrGapColor, attrDisplayWidth, attrWidth,
  attrDisplayOffset, attrOffset, attrJoinCap, attrEndCap,
  attrDashes, attrPriority, attrZIndex
}
 
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 ColorGetGapColor () const
 
CapStyle GetJoinCap () const
 
const ColorGetLineColor () const
 
double GetOffset () const
 
int GetPriority () const
 
const std::string & GetSlot () const
 
double GetWidth () const
 
int GetZIndex () const
 
bool HasDashes () const
 
bool IsVisible () const
 
 LineStyle ()
 
 LineStyle (const LineStyle &style)
 
bool operator!= (const LineStyle &other) const
 
bool operator< (const LineStyle &other) const
 
bool operator== (const LineStyle &other) const
 
void SetColorValue (int attribute, const Color &value)
 
LineStyleSetDashes (const std::vector< double > dashes)
 
LineStyleSetDisplayOffset (double value)
 
LineStyleSetDisplayWidth (double value)
 
void SetDoubleArrayValue (int attribute, const std::vector< double > &value)
 
void SetDoubleValue (int attribute, double value)
 
LineStyleSetEndCap (CapStyle endCap)
 
LineStyleSetGapColor (const Color &color)
 
void SetIntValue (int attribute, int value)
 
LineStyleSetJoinCap (CapStyle joinCap)
 
LineStyleSetLineColor (const Color &color)
 
LineStyleSetOffset (double value)
 
LineStyleSetPriority (int priority)
 
LineStyleSetSlot (const std::string &slot)
 
LineStyleSetWidth (double value)
 
LineStyleSetZIndex (int zIndex)
 
- Public Member Functions inherited from osmscout::Style
virtual void SetBoolValue (int attribute, bool 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 SetSymbolValue (int attribute, const SymbolRef &value)
 
virtual void SetUIntValue (int attribute, size_t value)
 
virtual ~Style ()
 

Static Public Member Functions

static StyleDescriptorRef GetDescriptor ()
 

Detailed Description

Style options for a line.

Member Enumeration Documentation

Enumerator
attrLineColor 
attrGapColor 
attrDisplayWidth 
attrWidth 
attrDisplayOffset 
attrOffset 
attrJoinCap 
attrEndCap 
attrDashes 
attrPriority 
attrZIndex 
Enumerator
capButt 
capRound 
capSquare 

Constructor & Destructor Documentation

osmscout::LineStyle::LineStyle ( )
osmscout::LineStyle::LineStyle ( const LineStyle style)

Member Function Documentation

void osmscout::LineStyle::CopyAttributes ( const LineStyle other,
const std::set< Attribute > &  attributes 
)
const std::vector<double>& osmscout::LineStyle::GetDash ( ) const
inline
StyleDescriptorRef osmscout::LineStyle::GetDescriptor ( )
static
double osmscout::LineStyle::GetDisplayOffset ( ) const
inline
double osmscout::LineStyle::GetDisplayWidth ( ) const
inline
CapStyle osmscout::LineStyle::GetEndCap ( ) const
inline
const Color& osmscout::LineStyle::GetGapColor ( ) const
inline
CapStyle osmscout::LineStyle::GetJoinCap ( ) const
inline
const Color& osmscout::LineStyle::GetLineColor ( ) const
inline
double osmscout::LineStyle::GetOffset ( ) const
inline
int osmscout::LineStyle::GetPriority ( ) const
inline
const std::string& osmscout::LineStyle::GetSlot ( ) const
inline
double osmscout::LineStyle::GetWidth ( ) const
inline
int osmscout::LineStyle::GetZIndex ( ) const
inline
bool osmscout::LineStyle::HasDashes ( ) const
inline
bool osmscout::LineStyle::IsVisible ( ) const
inline
bool osmscout::LineStyle::operator!= ( const LineStyle other) const

References operator==().

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

Referenced by operator!=().

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

Reimplemented from osmscout::Style.

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

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

Referenced by SetDoubleArrayValue().

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

Referenced by SetDoubleValue().

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

Referenced by SetDoubleValue().

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

Reimplemented from osmscout::Style.

References attrDashes, and SetDashes().

void osmscout::LineStyle::SetDoubleValue ( int  attribute,
double  value 
)
virtual
LineStyle & osmscout::LineStyle::SetEndCap ( CapStyle  endCap)

Referenced by SetIntValue().

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

Referenced by SetColorValue().

void osmscout::LineStyle::SetIntValue ( int  attribute,
int  value 
)
virtual
LineStyle & osmscout::LineStyle::SetJoinCap ( CapStyle  joinCap)

Referenced by SetIntValue().

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

Referenced by SetColorValue().

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

Referenced by SetDoubleValue().

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

Referenced by SetIntValue().

LineStyle & osmscout::LineStyle::SetSlot ( const std::string &  slot)
LineStyle & osmscout::LineStyle::SetWidth ( double  value)

Referenced by SetDoubleValue().

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

Referenced by SetIntValue().


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