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 |
GeoDataLineStyle & | operator= (const GeoDataLineStyle &other) |
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 |
![]() | |
GeoDataColorStyle () | |
GeoDataColorStyle (const GeoDataColorStyle &other) | |
virtual | ~GeoDataColorStyle () |
QColor | color () const |
ColorMode | colorMode () const |
GeoDataColorStyle & | operator= (const GeoDataColorStyle &other) |
QColor | paintedColor () const |
void | setColor (const QColor &value) |
void | setColorMode (const ColorMode &colorMode) |
![]() | |
GeoDataObject () | |
GeoDataObject (const GeoDataObject &) | |
virtual | ~GeoDataObject () |
int | id () const |
GeoDataObject & | operator= (const GeoDataObject &) |
virtual GeoDataObject * | parent () const |
QString | resolvePath (const QString &relativePath) const |
void | setId (int value) |
virtual void | setParent (GeoDataObject *parent) |
void | setTargetId (int value) |
int | targetId () const |
![]() | |
GeoNode () | |
virtual | ~GeoNode () |
![]() | |
virtual | ~Serializable () |
Additional Inherited Members | |
![]() | |
enum | ColorMode { Normal, Random } |
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 96 of file GeoDataLineStyle.cpp.
QVector< qreal > Marble::GeoDataLineStyle::dashPattern | ( | ) | const |
Return the current dash pattern.
- Returns
- the current dash pattern
Definition at line 126 of file GeoDataLineStyle.cpp.
|
virtual |
Provides type information for downcasting a GeoData.
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 71 of file GeoDataLineStyle.cpp.
GeoDataLineStyle & Marble::GeoDataLineStyle::operator= | ( | const GeoDataLineStyle & | other | ) |
assignment operator
Definition at line 64 of file GeoDataLineStyle.cpp.
|
virtual |
Serialize the style to a stream.
- Parameters
-
stream the stream
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 136 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 106 of file GeoDataLineStyle.cpp.
float Marble::GeoDataLineStyle::physicalWidth | ( | ) | const |
Return the current physical width of the line.
- Returns
- the current width
Definition at line 86 of file GeoDataLineStyle.cpp.
void Marble::GeoDataLineStyle::setBackground | ( | bool | background | ) |
Set whether to draw the solid background.
- Parameters
-
bool
Definition at line 121 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 131 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 91 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 76 of file GeoDataLineStyle.cpp.
|
virtual |
Unserialize the style from a stream.
- Parameters
-
stream the stream
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 147 of file GeoDataLineStyle.cpp.
float Marble::GeoDataLineStyle::width | ( | ) | const |
Return the current width of the line.
- Returns
- the current width
Definition at line 81 of file GeoDataLineStyle.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.