libosmscout  1.1.1
Public Types | Public Member Functions | Static Public Member Functions | List of all members
osmscout::PathTextStyle Class Reference

#include <libosmscout-map/include/osmscout/Styles.h>

Inheritance diagram for osmscout::PathTextStyle:
Inheritance graph
[legend]
Collaboration diagram for osmscout::PathTextStyle:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

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

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() [1/2]

osmscout::PathTextStyle::PathTextStyle ( )

◆ PathTextStyle() [2/2]

osmscout::PathTextStyle::PathTextStyle ( const PathTextStyle style)

Member Function Documentation

◆ CopyAttributes()

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

◆ GetDescriptor()

static 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.

◆ SetDisplayOffset()

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

◆ SetDoubleValue()

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

Reimplemented from osmscout::Style.

◆ SetLabel()

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

◆ SetLabelValue()

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

Reimplemented from osmscout::Style.

◆ SetOffset()

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

◆ SetPriority()

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

◆ SetSize()

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

◆ SetTextColor()

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

◆ SetUIntValue()

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

Reimplemented from osmscout::Style.


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