libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::PathTextStyle Class Referencefinal

#include <Styles.h>

+ Inheritance diagram for osmscout::PathTextStyle:

Public Types

enum  Attribute {
  attrLabel, attrSize, attrTextColor, attrDisplayOffset,
  attrOffset, attrPriority
}
 

Public Member Functions

void CopyAttributes (const PathTextStyle &other, const std::set< Attribute > &attributes)
 
double GetDisplayOffset () const
 
const LabelProviderRefGetLabel () const
 
double GetOffset () const
 
size_t GetPriority () const
 
double GetSize () const
 
const ColorGetTextColor () const
 
bool IsVisible () const
 
 PathTextStyle ()
 
void SetColorValue (int attribute, const Color &value) override
 
PathTextStyleSetDisplayOffset (double value)
 
void SetDoubleValue (int attribute, double value) override
 
PathTextStyleSetLabel (const LabelProviderRef &label)
 
void SetLabelValue (int attribute, const LabelProviderRef &value) override
 
PathTextStyleSetOffset (double value)
 
PathTextStyleSetPriority (size_t value)
 
PathTextStyleSetSize (double size)
 
PathTextStyleSetTextColor (const Color &color)
 
void SetUIntValue (int attribute, size_t value) override
 
- Public Member Functions inherited from osmscout::Style
virtual void SetBoolValue (int attribute, bool value)
 
virtual void SetDoubleArrayValue (int attribute, const std::vector< double > &value)
 
virtual void SetIntValue (int attribute, int 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 ~Style ()=default
 

Static Public Member Functions

static StyleDescriptorRef GetDescriptor ()
 

Detailed Description

A style for drawing text onto a path, the text following the contour of the path.

Member Enumeration Documentation

◆ Attribute

Enumerator
attrLabel 
attrSize 
attrTextColor 
attrDisplayOffset 
attrOffset 
attrPriority 

Constructor & Destructor Documentation

◆ PathTextStyle()

osmscout::PathTextStyle::PathTextStyle ( )

Member Function Documentation

◆ CopyAttributes()

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

◆ GetDescriptor()

StyleDescriptorRef osmscout::PathTextStyle::GetDescriptor ( )
static

◆ GetDisplayOffset()

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

◆ GetLabel()

const LabelProviderRef& osmscout::PathTextStyle::GetLabel ( ) const
inline

◆ GetOffset()

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

◆ GetPriority()

size_t osmscout::PathTextStyle::GetPriority ( ) const
inline

◆ GetSize()

double osmscout::PathTextStyle::GetSize ( ) const
inline

◆ GetTextColor()

const Color& osmscout::PathTextStyle::GetTextColor ( ) const
inline

◆ IsVisible()

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

◆ SetColorValue()

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

Reimplemented from osmscout::Style.

References attrTextColor, and SetTextColor().

◆ SetDisplayOffset()

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

Referenced by SetDoubleValue().

◆ SetDoubleValue()

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

◆ SetLabel()

PathTextStyle & osmscout::PathTextStyle::SetLabel ( const LabelProviderRef label)

Referenced by SetLabelValue().

◆ SetLabelValue()

void osmscout::PathTextStyle::SetLabelValue ( int  attribute,
const LabelProviderRef value 
)
overridevirtual

Reimplemented from osmscout::Style.

References attrLabel, and SetLabel().

◆ SetOffset()

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

Referenced by SetDoubleValue().

◆ SetPriority()

PathTextStyle & osmscout::PathTextStyle::SetPriority ( size_t  value)

Referenced by SetUIntValue().

◆ SetSize()

PathTextStyle & osmscout::PathTextStyle::SetSize ( double  size)

Referenced by SetDoubleValue().

◆ SetTextColor()

PathTextStyle & osmscout::PathTextStyle::SetTextColor ( const Color color)

Referenced by SetColorValue().

◆ SetUIntValue()

void osmscout::PathTextStyle::SetUIntValue ( int  attribute,
size_t  value 
)
overridevirtual

Reimplemented from osmscout::Style.

References attrPriority, and SetPriority().


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