Marble::GeoDataLineStyle

Search for usage in LXR

Marble::GeoDataLineStyle Class Reference

#include <GeoDataLineStyle.h>

Inheritance diagram for Marble::GeoDataLineStyle:

Public Member Functions

 GeoDataLineStyle ()
 
 GeoDataLineStyle (const GeoDataLineStyle &other)
 
 GeoDataLineStyle (const QColor &color)
 
bool background () const
 
Qt::PenCapStyle capStyle () const
 
bool cosmeticOutline () const
 
QVector< qreal > dashPattern () const
 
const char * nodeType () const override
 
bool operator!= (const GeoDataLineStyle &other) const
 
GeoDataLineStyleoperator= (const GeoDataLineStyle &other)
 
bool operator== (const GeoDataLineStyle &other) const
 
void pack (QDataStream &stream) const override
 
Qt::PenStyle penStyle () const
 
float physicalWidth () const
 
void setBackground (bool background)
 
void setCapStyle (Qt::PenCapStyle style)
 
void setCosmeticOutline (bool enabled)
 
void setDashPattern (const QVector< qreal > &pattern)
 
void setPenStyle (Qt::PenStyle style)
 
void setPhysicalWidth (float realWidth)
 
void setWidth (float width)
 
void unpack (QDataStream &stream) override
 
float width () const
 
- Public Member Functions inherited from Marble::GeoDataColorStyle
 GeoDataColorStyle (const GeoDataColorStyle &other)
 
QColor color () const
 
ColorMode colorMode () const
 
bool operator!= (const GeoDataColorStyle &other) const
 
GeoDataColorStyleoperator= (const GeoDataColorStyle &other)
 
bool operator== (const GeoDataColorStyle &other) const
 
void pack (QDataStream &stream) const override
 
QColor paintedColor () const
 
void setColor (const QColor &value)
 
void setColorMode (ColorMode colorMode)
 
void unpack (QDataStream &stream) override
 
- Public Member Functions inherited from Marble::GeoDataObject
 GeoDataObject (const GeoDataObject &)
 
QString id () const
 
GeoDataObjectoperator= (const GeoDataObject &)
 
void pack (QDataStream &stream) const override
 
GeoDataObjectparent ()
 
const GeoDataObjectparent () const
 
QString resolvePath (const QString &relativePath) const
 
void setId (const QString &value)
 
void setParent (GeoDataObject *parent)
 
void setTargetId (const QString &value)
 
QString targetId () const
 
void unpack (QDataStream &steam) override
 

Additional Inherited Members

- Public Types inherited from Marble::GeoDataColorStyle
enum  ColorMode { Normal , Random }
 
- Static Public Member Functions inherited from Marble::GeoDataColorStyle
static QString contrastColor (const QColor &color)
 
- Protected Member Functions inherited from Marble::GeoDataObject
virtual bool equals (const GeoDataObject &other) const
 

Detailed Description

specifies the style how lines are drawn

A GeoDataLineStyle specifies how the name of a GeoDataFeature is drawn in the viewer. A custom color, color mode (both inherited from GeoDataColorStyle) and width for the width of the line.

Definition at line 29 of file GeoDataLineStyle.h.

Constructor & Destructor Documentation

◆ GeoDataLineStyle() [1/3]

Marble::GeoDataLineStyle::GeoDataLineStyle ( )

Construct a new GeoDataLineStyle.

Definition at line 37 of file GeoDataLineStyle.cpp.

◆ GeoDataLineStyle() [2/3]

Marble::GeoDataLineStyle::GeoDataLineStyle ( const GeoDataLineStyle & other)

Definition at line 42 of file GeoDataLineStyle.cpp.

◆ GeoDataLineStyle() [3/3]

Marble::GeoDataLineStyle::GeoDataLineStyle ( const QColor & color)
explicit

Construct a new GeoDataLineStyle.

Parameters
colorthe color to use when showing the name
See also
GeoDataColorStyle

Definition at line 47 of file GeoDataLineStyle.cpp.

◆ ~GeoDataLineStyle()

Marble::GeoDataLineStyle::~GeoDataLineStyle ( )
override

Definition at line 53 of file GeoDataLineStyle.cpp.

Member Function Documentation

◆ background()

bool Marble::GeoDataLineStyle::background ( ) const

Return true if background get drawn.

Returns

Definition at line 139 of file GeoDataLineStyle.cpp.

◆ capStyle()

Qt::PenCapStyle Marble::GeoDataLineStyle::capStyle ( ) const

Return the current pen cap style.

Returns
the current pen cap style

Definition at line 119 of file GeoDataLineStyle.cpp.

◆ cosmeticOutline()

bool Marble::GeoDataLineStyle::cosmeticOutline ( ) const

Return whether the line has a cosmetic 1 pixel outline.

Definition at line 109 of file GeoDataLineStyle.cpp.

◆ dashPattern()

QVector< qreal > Marble::GeoDataLineStyle::dashPattern ( ) const

Return the current dash pattern.

Returns
the current dash pattern

Definition at line 149 of file GeoDataLineStyle.cpp.

◆ nodeType()

const char * Marble::GeoDataLineStyle::nodeType ( ) const
overridevirtual

Provides type information for downcasting a GeoData.

Reimplemented from Marble::GeoDataColorStyle.

Definition at line 84 of file GeoDataLineStyle.cpp.

◆ operator!=()

bool Marble::GeoDataLineStyle::operator!= ( const GeoDataLineStyle & other) const

Definition at line 79 of file GeoDataLineStyle.cpp.

◆ operator=()

GeoDataLineStyle & Marble::GeoDataLineStyle::operator= ( const GeoDataLineStyle & other)

assignment operator

Definition at line 58 of file GeoDataLineStyle.cpp.

◆ operator==()

bool Marble::GeoDataLineStyle::operator== ( const GeoDataLineStyle & other) const

Definition at line 65 of file GeoDataLineStyle.cpp.

◆ pack()

void Marble::GeoDataLineStyle::pack ( QDataStream & stream) const
override

Serialize the style to a stream.

Parameters
streamthe stream

Definition at line 159 of file GeoDataLineStyle.cpp.

◆ penStyle()

Qt::PenStyle Marble::GeoDataLineStyle::penStyle ( ) const

Return the current pen cap style.

Returns
the current pen cap style

Definition at line 129 of file GeoDataLineStyle.cpp.

◆ physicalWidth()

float Marble::GeoDataLineStyle::physicalWidth ( ) const

Return the current physical width of the line.

Returns
the current width

Definition at line 99 of file GeoDataLineStyle.cpp.

◆ setBackground()

void Marble::GeoDataLineStyle::setBackground ( bool background)

Set whether to draw the solid background.

Parameters
backgroundtrue if the background should be solid

Definition at line 144 of file GeoDataLineStyle.cpp.

◆ setCapStyle()

void Marble::GeoDataLineStyle::setCapStyle ( Qt::PenCapStyle style)

Set pen cap style.

Parameters
stylecap style

Definition at line 124 of file GeoDataLineStyle.cpp.

◆ setCosmeticOutline()

void Marble::GeoDataLineStyle::setCosmeticOutline ( bool enabled)

Set whether the line has a cosmetic 1 pixel outline.

Definition at line 114 of file GeoDataLineStyle.cpp.

◆ setDashPattern()

void Marble::GeoDataLineStyle::setDashPattern ( const QVector< qreal > & pattern)

Sets the dash pattern.

Parameters
patterndash pattern

Definition at line 154 of file GeoDataLineStyle.cpp.

◆ setPenStyle()

void Marble::GeoDataLineStyle::setPenStyle ( Qt::PenStyle style)

Set pen cap style.

Parameters
stylecap style

Definition at line 134 of file GeoDataLineStyle.cpp.

◆ setPhysicalWidth()

void Marble::GeoDataLineStyle::setPhysicalWidth ( float realWidth)

Set the physical width of the line (in meters)

Parameters
realWidththe new width

Definition at line 104 of file GeoDataLineStyle.cpp.

◆ setWidth()

void Marble::GeoDataLineStyle::setWidth ( float width)

Set the width of the line.

Parameters
widththe new width

Definition at line 89 of file GeoDataLineStyle.cpp.

◆ unpack()

void Marble::GeoDataLineStyle::unpack ( QDataStream & stream)
override

Unserialize the style from a stream.

Parameters
streamthe stream

Definition at line 170 of file GeoDataLineStyle.cpp.

◆ width()

float Marble::GeoDataLineStyle::width ( ) const

Return the current width of the line.

Returns
the current width

Definition at line 94 of file GeoDataLineStyle.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:18 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.