marble
#include <GeoDataPolyStyle.h>

Public Member Functions | |
| GeoDataPolyStyle () | |
| GeoDataPolyStyle (const GeoDataPolyStyle &other) | |
| GeoDataPolyStyle (const QColor &color) | |
| ~GeoDataPolyStyle () | |
| Qt::BrushStyle | brushStyle () const |
| quint8 | colorIndex () const |
| bool | fill () const |
| virtual const char * | nodeType () const |
| bool | operator!= (const GeoDataPolyStyle &other) const |
| GeoDataPolyStyle & | operator= (const GeoDataPolyStyle &other) |
| bool | operator== (const GeoDataPolyStyle &other) const |
| bool | outline () const |
| virtual void | pack (QDataStream &stream) const |
| void | setBrushStyle (const Qt::BrushStyle style) |
| void | setColorIndex (quint8 colorIndex) |
| void | setFill (const bool &fill) |
| void | setOutline (const bool &outline) |
| virtual void | unpack (QDataStream &stream) |
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 polygons are drawn
A GeoDataPolyStyle specifies how Polygons are drawn in the viewer. A custom color, color mode (both inherited from GeoDataColorStyle) and two boolean values whether to fill and whether to draw the outline.
Definition at line 34 of file GeoDataPolyStyle.h.
Constructor & Destructor Documentation
| Marble::GeoDataPolyStyle::GeoDataPolyStyle | ( | ) |
Construct a new GeoDataPolyStyle.
Definition at line 41 of file GeoDataPolyStyle.cpp.
| Marble::GeoDataPolyStyle::GeoDataPolyStyle | ( | const GeoDataPolyStyle & | other | ) |
Definition at line 46 of file GeoDataPolyStyle.cpp.
|
explicit |
Construct a new GeoDataPolyStyle.
- Parameters
-
color the color to use when showing the name
- See also
- GeoDataColorStyle
Definition at line 51 of file GeoDataPolyStyle.cpp.
| Marble::GeoDataPolyStyle::~GeoDataPolyStyle | ( | ) |
Definition at line 57 of file GeoDataPolyStyle.cpp.
Member Function Documentation
| Qt::BrushStyle Marble::GeoDataPolyStyle::brushStyle | ( | ) | const |
| quint8 Marble::GeoDataPolyStyle::colorIndex | ( | ) | const |
Return the value of color index.
- Returns
- Color index
Definition at line 125 of file GeoDataPolyStyle.cpp.
| bool Marble::GeoDataPolyStyle::fill | ( | ) | const |
Return true if polygons get filled.
- Returns
- whether to fill
Definition at line 95 of file GeoDataPolyStyle.cpp.
|
virtual |
Provides type information for downcasting a GeoNode.
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 85 of file GeoDataPolyStyle.cpp.
| bool Marble::GeoDataPolyStyle::operator!= | ( | const GeoDataPolyStyle & | other | ) | const |
Definition at line 80 of file GeoDataPolyStyle.cpp.
| GeoDataPolyStyle & Marble::GeoDataPolyStyle::operator= | ( | const GeoDataPolyStyle & | other | ) |
assignment operator
Definition at line 62 of file GeoDataPolyStyle.cpp.
| bool Marble::GeoDataPolyStyle::operator== | ( | const GeoDataPolyStyle & | other | ) | const |
Definition at line 69 of file GeoDataPolyStyle.cpp.
| bool Marble::GeoDataPolyStyle::outline | ( | ) | const |
Return true if outlines of polygons get drawn.
- Returns
- whether outline is drawn
Definition at line 105 of file GeoDataPolyStyle.cpp.
|
virtual |
Serialize the style to a stream.
- Parameters
-
stream the stream
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 130 of file GeoDataPolyStyle.cpp.
| void Marble::GeoDataPolyStyle::setBrushStyle | ( | const Qt::BrushStyle | style | ) |
| void Marble::GeoDataPolyStyle::setColorIndex | ( | quint8 | colorIndex | ) |
Set the color index which will be used to assign color to brush.
- Parameters
-
colorIndex The value of color index
Definition at line 120 of file GeoDataPolyStyle.cpp.
| void Marble::GeoDataPolyStyle::setFill | ( | const bool & | fill | ) |
Set whether to fill the polygon.
- Parameters
-
fill
Definition at line 90 of file GeoDataPolyStyle.cpp.
| void Marble::GeoDataPolyStyle::setOutline | ( | const bool & | outline | ) |
Set whether to draw the outline.
- Parameters
-
outline
Definition at line 100 of file GeoDataPolyStyle.cpp.
|
virtual |
Unserialize the style from a stream.
- Parameters
-
stream the stream
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 139 of file GeoDataPolyStyle.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:45 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from