Marble::GeoDataLineStyle
#include <GeoDataLineStyle.h>

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 |
GeoDataLineStyle & | operator= (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 |
![]() | |
GeoDataColorStyle (const GeoDataColorStyle &other) | |
QColor | color () const |
ColorMode | colorMode () const |
bool | operator!= (const GeoDataColorStyle &other) const |
GeoDataColorStyle & | operator= (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 |
![]() | |
GeoDataObject (const GeoDataObject &) | |
QString | id () const |
GeoDataObject & | operator= (const GeoDataObject &) |
void | pack (QDataStream &stream) const override |
GeoDataObject * | parent () |
const GeoDataObject * | parent () 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 | |
![]() | |
enum | ColorMode { Normal, Random } |
![]() | |
static QString | contrastColor (const QColor &color) |
![]() | |
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/2]
Marble::GeoDataLineStyle::GeoDataLineStyle | ( | ) |
Construct a new GeoDataLineStyle.
Definition at line 37 of file GeoDataLineStyle.cpp.
◆ GeoDataLineStyle() [2/2]
|
explicit |
Construct a new GeoDataLineStyle.
- Parameters
-
color the color to use when showing the name
- See also
- GeoDataColorStyle
Definition at line 47 of file GeoDataLineStyle.cpp.
Member Function Documentation
◆ background()
bool Marble::GeoDataLineStyle::background | ( | ) | const |
◆ 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()
|
overridevirtual |
Provides type information for downcasting a GeoData.
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 84 of file GeoDataLineStyle.cpp.
◆ operator=()
GeoDataLineStyle & Marble::GeoDataLineStyle::operator= | ( | const GeoDataLineStyle & | other | ) |
assignment operator
Definition at line 58 of file GeoDataLineStyle.cpp.
◆ pack()
|
override |
Serialize the style to a stream.
- Parameters
-
stream the 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
-
background true
if the background should be solid
Definition at line 144 of file GeoDataLineStyle.cpp.
◆ setCapStyle()
void Marble::GeoDataLineStyle::setCapStyle | ( | Qt::PenCapStyle | style | ) |
◆ 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
-
pattern dash pattern
Definition at line 154 of file GeoDataLineStyle.cpp.
◆ setPenStyle()
void Marble::GeoDataLineStyle::setPenStyle | ( | Qt::PenStyle | style | ) |
◆ setPhysicalWidth()
void Marble::GeoDataLineStyle::setPhysicalWidth | ( | float | realWidth | ) |
Set the physical width of the line (in meters)
- Parameters
-
realWidth the new width
Definition at line 104 of file GeoDataLineStyle.cpp.
◆ setWidth()
void Marble::GeoDataLineStyle::setWidth | ( | float | width | ) |
Set the width of the line.
- Parameters
-
width the new width
Definition at line 89 of file GeoDataLineStyle.cpp.
◆ unpack()
|
override |
Unserialize the style from a stream.
- Parameters
-
stream the 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:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Oct 1 2023 04:09:39 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.