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

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

#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 LabelProviderRef & GetLabel () const
double GetOffset () const
size_t GetPriority () const
double GetSize () const
const Color & GetTextColor () const
bool IsVisible () const
 PathTextStyle ()
void SetColorValue (int attribute, const Color &value) override
PathTextStyle & SetDisplayOffset (double value)
void SetDoubleValue (int attribute, double value) override
PathTextStyle & SetLabel (const LabelProviderRef &label)
void SetLabelValue (int attribute, const LabelProviderRef &value) override
PathTextStyle & SetOffset (double value)
PathTextStyle & SetPriority (size_t value)
PathTextStyle & SetSize (double size)
PathTextStyle & SetTextColor (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

Referenced by IsVisible().

◆ GetTextColor()

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

◆ IsVisible()

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

References GetSize().

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

References PathTextStyle().

Referenced by SetDoubleValue().

◆ SetDoubleValue()

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

◆ SetLabel()

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

References PathTextStyle().

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)

References PathTextStyle().

Referenced by SetDoubleValue().

◆ SetPriority()

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

References PathTextStyle().

Referenced by SetUIntValue().

◆ SetSize()

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

References PathTextStyle().

Referenced by SetDoubleValue().

◆ SetTextColor()

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

References PathTextStyle().

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: