Search for usage in LXR

Marble::GeoDataPolyStyle Class Reference

#include <GeoDataPolyStyle.h>

Inheritance diagram for Marble::GeoDataPolyStyle:

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
GeoDataPolyStyleoperator= (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
- Public Member Functions inherited from Marble::GeoDataColorStyle
 GeoDataColorStyle (const GeoDataColorStyle &other)
QColor color () const
ColorMode colorMode () const
bool operator!= (const GeoDataColorStyle &other) const
GeoDataColorStyleoperator= (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
- Public Member Functions inherited from Marble::GeoDataObject
 GeoDataObject (const GeoDataObject &)
QString id () const
GeoDataObjectoperator= (const GeoDataObject &)
void pack (QDataStream &stream) const override
GeoDataObjectparent ()
const GeoDataObjectparent () 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

- Public Types inherited from Marble::GeoDataColorStyle
enum  ColorMode { Normal, Random }
- Static Public Member Functions inherited from Marble::GeoDataColorStyle
static QString contrastColor (const QColor &color)
- 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 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]

Marble::GeoDataPolyStyle::GeoDataPolyStyle ( const QColor color)

Construct a new GeoDataPolyStyle.

colorthe color to use when showing the name
See also

Definition at line 49 of file GeoDataPolyStyle.cpp.

Member Function Documentation

◆ brushStyle()

Qt::BrushStyle Marble::GeoDataPolyStyle::brushStyle ( ) const

Return brush style.

brush style.

Definition at line 113 of file GeoDataPolyStyle.cpp.

◆ colorIndex()

quint8 Marble::GeoDataPolyStyle::colorIndex ( ) const

Return the value of color index.

Color index

Definition at line 123 of file GeoDataPolyStyle.cpp.

◆ fill()

bool Marble::GeoDataPolyStyle::fill ( ) const

Return true if polygons get filled.

whether to fill

Definition at line 93 of file GeoDataPolyStyle.cpp.

◆ nodeType()

const char * Marble::GeoDataPolyStyle::nodeType ( ) const

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.

whether outline is drawn

Definition at line 103 of file GeoDataPolyStyle.cpp.

◆ pack()

void Marble::GeoDataPolyStyle::pack ( QDataStream stream) const

Serialize the style to a stream.

streamthe stream

Definition at line 150 of file GeoDataPolyStyle.cpp.

◆ setBrushStyle()

void Marble::GeoDataPolyStyle::setBrushStyle ( const Qt::BrushStyle  style)

Set brush style.


Definition at line 108 of file GeoDataPolyStyle.cpp.

◆ setColorIndex()

void Marble::GeoDataPolyStyle::setColorIndex ( quint8  colorIndex)

Set the color index which will be used to assign color to brush.

colorIndexThe 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.


Definition at line 88 of file GeoDataPolyStyle.cpp.

◆ setOutline()

void Marble::GeoDataPolyStyle::setOutline ( bool  outline)

Set whether to draw the outline.


Definition at line 98 of file GeoDataPolyStyle.cpp.

◆ unpack()

void Marble::GeoDataPolyStyle::unpack ( QDataStream stream)

Unserialize the style from a stream.

streamthe stream

Definition at line 159 of file GeoDataPolyStyle.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Dec 8 2022 03:55:31 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.