marble
#include <GeoDataLineStyle.h>
Public Member Functions | |
GeoDataLineStyle () | |
GeoDataLineStyle (const GeoDataLineStyle &other) | |
GeoDataLineStyle (const QColor &color) | |
~GeoDataLineStyle () | |
bool | background () const |
Qt::PenCapStyle | capStyle () const |
QVector< qreal > | dashPattern () const |
virtual const char * | nodeType () const |
bool | operator!= (const GeoDataLineStyle &other) const |
GeoDataLineStyle & | operator= (const GeoDataLineStyle &other) |
bool | operator== (const GeoDataLineStyle &other) const |
virtual void | pack (QDataStream &stream) const |
Qt::PenStyle | penStyle () const |
float | physicalWidth () const |
void | setBackground (bool background) |
void | setCapStyle (Qt::PenCapStyle style) |
void | setDashPattern (const QVector< qreal > &pattern) |
void | setPenStyle (Qt::PenStyle style) |
void | setPhysicalWidth (const float &realWidth) |
void | setWidth (const float &width) |
virtual void | unpack (QDataStream &stream) |
float | width () const |
Public Member Functions inherited from Marble::GeoDataColorStyle | |
GeoDataColorStyle () | |
GeoDataColorStyle (const GeoDataColorStyle &other) | |
virtual | ~GeoDataColorStyle () |
QColor | color () const |
ColorMode | colorMode () const |
bool | operator!= (const GeoDataColorStyle &other) const |
GeoDataColorStyle & | operator= (const GeoDataColorStyle &other) |
bool | operator== (const GeoDataColorStyle &other) const |
QColor | paintedColor () const |
void | setColor (const QColor &value) |
void | setColorMode (const ColorMode &colorMode) |
Public Member Functions inherited from Marble::GeoDataObject | |
GeoDataObject () | |
GeoDataObject (const GeoDataObject &) | |
virtual | ~GeoDataObject () |
QString | id () const |
GeoDataObject & | operator= (const GeoDataObject &) |
virtual GeoDataObject * | parent () const |
QString | resolvePath (const QString &relativePath) const |
void | setId (const QString &value) |
virtual void | setParent (GeoDataObject *parent) |
void | setTargetId (const QString &value) |
QString | targetId () const |
Public Member Functions inherited from Marble::GeoNode | |
GeoNode () | |
virtual | ~GeoNode () |
Public Member Functions inherited from Marble::Serializable | |
virtual | ~Serializable () |
Additional Inherited Members | |
Public Types inherited from Marble::GeoDataColorStyle | |
enum | ColorMode { Normal, Random } |
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 36 of file GeoDataLineStyle.h.
Constructor & Destructor Documentation
Marble::GeoDataLineStyle::GeoDataLineStyle | ( | ) |
Construct a new GeoDataLineStyle.
Definition at line 43 of file GeoDataLineStyle.cpp.
Marble::GeoDataLineStyle::GeoDataLineStyle | ( | const GeoDataLineStyle & | other | ) |
Definition at line 48 of file GeoDataLineStyle.cpp.
|
explicit |
Construct a new GeoDataLineStyle.
- Parameters
-
color the color to use when showing the name
- See also
- GeoDataColorStyle
Definition at line 53 of file GeoDataLineStyle.cpp.
Marble::GeoDataLineStyle::~GeoDataLineStyle | ( | ) |
Definition at line 59 of file GeoDataLineStyle.cpp.
Member Function Documentation
bool Marble::GeoDataLineStyle::background | ( | ) | const |
Qt::PenCapStyle Marble::GeoDataLineStyle::capStyle | ( | ) | const |
Return the current pen cap style.
- Returns
- the current pen cap style
Definition at line 115 of file GeoDataLineStyle.cpp.
QVector< qreal > Marble::GeoDataLineStyle::dashPattern | ( | ) | const |
Return the current dash pattern.
- Returns
- the current dash pattern
Definition at line 145 of file GeoDataLineStyle.cpp.
|
virtual |
Provides type information for downcasting a GeoData.
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 90 of file GeoDataLineStyle.cpp.
bool Marble::GeoDataLineStyle::operator!= | ( | const GeoDataLineStyle & | other | ) | const |
Definition at line 85 of file GeoDataLineStyle.cpp.
GeoDataLineStyle & Marble::GeoDataLineStyle::operator= | ( | const GeoDataLineStyle & | other | ) |
assignment operator
Definition at line 64 of file GeoDataLineStyle.cpp.
bool Marble::GeoDataLineStyle::operator== | ( | const GeoDataLineStyle & | other | ) | const |
Definition at line 71 of file GeoDataLineStyle.cpp.
|
virtual |
Serialize the style to a stream.
- Parameters
-
stream the stream
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 155 of file GeoDataLineStyle.cpp.
Qt::PenStyle Marble::GeoDataLineStyle::penStyle | ( | ) | const |
Return the current pen cap style.
- Returns
- the current pen cap style
Definition at line 125 of file GeoDataLineStyle.cpp.
float Marble::GeoDataLineStyle::physicalWidth | ( | ) | const |
Return the current physical width of the line.
- Returns
- the current width
Definition at line 105 of file GeoDataLineStyle.cpp.
void Marble::GeoDataLineStyle::setBackground | ( | bool | background | ) |
Set whether to draw the solid background.
- Parameters
-
bool
Definition at line 140 of file GeoDataLineStyle.cpp.
void Marble::GeoDataLineStyle::setCapStyle | ( | Qt::PenCapStyle | style | ) |
void Marble::GeoDataLineStyle::setDashPattern | ( | const QVector< qreal > & | pattern | ) |
Sets the dash pattern.
- Parameters
-
pattern dash pattern
Definition at line 150 of file GeoDataLineStyle.cpp.
void Marble::GeoDataLineStyle::setPenStyle | ( | Qt::PenStyle | style | ) |
void Marble::GeoDataLineStyle::setPhysicalWidth | ( | const float & | realWidth | ) |
Set the physical width of the line (in meters)
- Parameters
-
width the new width
Definition at line 110 of file GeoDataLineStyle.cpp.
void Marble::GeoDataLineStyle::setWidth | ( | const float & | width | ) |
Set the width of the line.
- Parameters
-
width the new width
Definition at line 95 of file GeoDataLineStyle.cpp.
|
virtual |
Unserialize the style from a stream.
- Parameters
-
stream the stream
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 166 of file GeoDataLineStyle.cpp.
float Marble::GeoDataLineStyle::width | ( | ) | const |
Return the current width of the line.
- Returns
- the current width
Definition at line 100 of file GeoDataLineStyle.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.