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

Style options for borders around an area. More...

#include <Styles.h>

+ Inheritance diagram for osmscout::BorderStyle:

Public Types

enum  Attribute {
  attrColor, attrGapColor, attrWidth, attrDashes,
  attrDisplayOffset, attrOffset, attrPriority
}
 

Public Member Functions

 BorderStyle ()
 
 BorderStyle (const BorderStyle &style)
 
void CopyAttributes (const BorderStyle &other, const std::set< Attribute > &attributes)
 
const ColorGetColor () const
 
const std::vector< double > & GetDash () const
 
double GetDisplayOffset () const
 
const ColorGetGapColor () const
 
double GetOffset () const
 
int GetPriority () const
 
const std::string & GetSlot () const
 
double GetWidth () const
 
bool HasDashes () const
 
bool IsVisible () const
 
bool operator!= (const BorderStyle &other) const
 
bool operator< (const BorderStyle &other) const
 
bool operator== (const BorderStyle &other) const
 
BorderStyleSetColor (const Color &color)
 
void SetColorValue (int attribute, const Color &value) override
 
BorderStyleSetDashes (const std::vector< double > &dashes)
 
BorderStyleSetDisplayOffset (double value)
 
void SetDoubleArrayValue (int attribute, const std::vector< double > &value) override
 
void SetDoubleValue (int attribute, double value) override
 
BorderStyleSetGapColor (const Color &color)
 
void SetIntValue (int attribute, int value) override
 
BorderStyleSetOffset (double value)
 
BorderStyleSetPriority (int priority)
 
BorderStyleSetSlot (const std::string &slot)
 
BorderStyleSetWidth (double value)
 
- 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 borders around an area.

Member Enumeration Documentation

Enumerator
attrColor 
attrGapColor 
attrWidth 
attrDashes 
attrDisplayOffset 
attrOffset 
attrPriority 

Constructor & Destructor Documentation

osmscout::BorderStyle::BorderStyle ( )
osmscout::BorderStyle::BorderStyle ( const BorderStyle style)

Member Function Documentation

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

References operator==().

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

Referenced by operator!=().

BorderStyle & osmscout::BorderStyle::SetColor ( const Color color)

Referenced by SetColorValue().

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

Reimplemented from osmscout::Style.

References attrColor, attrGapColor, and SetColor().

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

Referenced by SetDoubleArrayValue().

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

Referenced by SetDoubleValue().

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

Reimplemented from osmscout::Style.

References attrDashes, and SetDashes().

void osmscout::BorderStyle::SetDoubleValue ( int  attribute,
double  value 
)
overridevirtual
BorderStyle & osmscout::BorderStyle::SetGapColor ( const Color color)
void osmscout::BorderStyle::SetIntValue ( int  attribute,
int  value 
)
overridevirtual

Reimplemented from osmscout::Style.

References attrPriority, and SetPriority().

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

Referenced by SetDoubleValue().

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

Referenced by SetIntValue().

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

Referenced by SetDoubleValue().


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