Marble::GeoDataPolyStyle
#include <GeoDataPolyStyle.h>

Public Member Functions | |
GeoDataPolyStyle () | |
GeoDataPolyStyle (const GeoDataPolyStyle &other) | |
GeoDataPolyStyle (const QColor &color) | |
Qt::BrushStyle | brushStyle () const |
quint8 | colorIndex () const |
bool | fill () const |
const char * | nodeType () const override |
bool | operator!= (const GeoDataPolyStyle &other) const |
GeoDataPolyStyle & | operator= (const GeoDataPolyStyle &other) |
bool | operator== (const GeoDataPolyStyle &other) const |
bool | outline () const |
void | pack (QDataStream &stream) const override |
void | setBrushStyle (const Qt::BrushStyle style) |
void | setColorIndex (quint8 colorIndex) |
void | setFill (bool fill) |
void | setOutline (bool outline) |
void | setTexturePath (const QString &path) |
QImage | textureImage () const |
QString | texturePath () const |
void | unpack (QDataStream &stream) override |
![]() | |
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 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 26 of file GeoDataPolyStyle.h.
Constructor & Destructor Documentation
◆ GeoDataPolyStyle() [1/2]
Marble::GeoDataPolyStyle::GeoDataPolyStyle | ( | ) |
Construct a new GeoDataPolyStyle.
Definition at line 39 of file GeoDataPolyStyle.cpp.
◆ GeoDataPolyStyle() [2/2]
|
explicit |
Construct a new GeoDataPolyStyle.
- Parameters
-
color the color to use when showing the name
- See also
- GeoDataColorStyle
Definition at line 49 of file GeoDataPolyStyle.cpp.
Member Function Documentation
◆ brushStyle()
Qt::BrushStyle Marble::GeoDataPolyStyle::brushStyle | ( | ) | const |
◆ colorIndex()
quint8 Marble::GeoDataPolyStyle::colorIndex | ( | ) | const |
Return the value of color index.
- Returns
- Color index
Definition at line 123 of file GeoDataPolyStyle.cpp.
◆ fill()
bool Marble::GeoDataPolyStyle::fill | ( | ) | const |
Return true if polygons get filled.
- Returns
- whether to fill
Definition at line 93 of file GeoDataPolyStyle.cpp.
◆ nodeType()
|
overridevirtual |
Provides type information for downcasting a GeoNode.
Reimplemented from Marble::GeoDataColorStyle.
Definition at line 83 of file GeoDataPolyStyle.cpp.
◆ operator=()
GeoDataPolyStyle & Marble::GeoDataPolyStyle::operator= | ( | const GeoDataPolyStyle & | other | ) |
assignment operator
Definition at line 60 of file GeoDataPolyStyle.cpp.
◆ outline()
bool Marble::GeoDataPolyStyle::outline | ( | ) | const |
Return true if outlines of polygons get drawn.
- Returns
- whether outline is drawn
Definition at line 103 of file GeoDataPolyStyle.cpp.
◆ pack()
|
override |
Serialize the style to a stream.
- Parameters
-
stream the stream
Definition at line 150 of file GeoDataPolyStyle.cpp.
◆ setBrushStyle()
void Marble::GeoDataPolyStyle::setBrushStyle | ( | const Qt::BrushStyle | style | ) |
◆ setColorIndex()
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 118 of file GeoDataPolyStyle.cpp.
◆ setFill()
void Marble::GeoDataPolyStyle::setFill | ( | bool | fill | ) |
Set whether to fill the polygon.
- Parameters
-
fill
Definition at line 88 of file GeoDataPolyStyle.cpp.
◆ setOutline()
void Marble::GeoDataPolyStyle::setOutline | ( | bool | outline | ) |
Set whether to draw the outline.
- Parameters
-
outline
Definition at line 98 of file GeoDataPolyStyle.cpp.
◆ unpack()
|
override |
Unserialize the style from a stream.
- Parameters
-
stream the stream
Definition at line 159 of file GeoDataPolyStyle.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Sep 27 2023 04:09:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.