Marble::GeoDataPolyStyle

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
 
const GeoDataObjectparent () const
 
GeoDataObjectparent ()
 
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

Marble::GeoDataPolyStyle::GeoDataPolyStyle ( )

Construct a new GeoDataPolyStyle.

Definition at line 39 of file GeoDataPolyStyle.cpp.

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

Construct a new GeoDataPolyStyle.

Parameters
colorthe color to use when showing the name
See also
GeoDataColorStyle

Definition at line 49 of file GeoDataPolyStyle.cpp.

Member Function Documentation

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

Return brush style.

Returns
brush style.

Definition at line 113 of file GeoDataPolyStyle.cpp.

quint8 Marble::GeoDataPolyStyle::colorIndex ( ) const

Return the value of color index.

Returns
Color index

Definition at line 123 of file GeoDataPolyStyle.cpp.

bool Marble::GeoDataPolyStyle::fill ( ) const

Return true if polygons get filled.

Returns
whether to fill

Definition at line 93 of file GeoDataPolyStyle.cpp.

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

Provides type information for downcasting a GeoNode.

Reimplemented from Marble::GeoDataColorStyle.

Definition at line 83 of file GeoDataPolyStyle.cpp.

GeoDataPolyStyle & Marble::GeoDataPolyStyle::operator= ( const GeoDataPolyStyle other)

assignment operator

Definition at line 60 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 103 of file GeoDataPolyStyle.cpp.

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

Serialize the style to a stream.

Parameters
streamthe stream

Definition at line 150 of file GeoDataPolyStyle.cpp.

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

Set brush style.

Parameters
style

Definition at line 108 of file GeoDataPolyStyle.cpp.

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

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

Parameters
colorIndexThe value of color index

Definition at line 118 of file GeoDataPolyStyle.cpp.

void Marble::GeoDataPolyStyle::setFill ( bool  fill)

Set whether to fill the polygon.

Parameters
fill

Definition at line 88 of file GeoDataPolyStyle.cpp.

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

Set whether to draw the outline.

Parameters
outline

Definition at line 98 of file GeoDataPolyStyle.cpp.

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

Unserialize the style from a stream.

Parameters
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-2021 The KDE developers.
Generated on Fri Nov 26 2021 23:23:32 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.