• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • Marble
  • GeoDataPolyStyle
Public Member Functions | List of all members
Marble::GeoDataPolyStyle Class Reference

#include <GeoDataPolyStyle.h>

Inheritance diagram for Marble::GeoDataPolyStyle:
Inheritance graph
[legend]

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.

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

Return brush style.

Returns
brush style.

Definition at line 115 of file GeoDataPolyStyle.cpp.

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.

const char * Marble::GeoDataPolyStyle::nodeType ( ) const
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.

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

Serialize the style to a stream.

Parameters
streamthe stream

Reimplemented from Marble::GeoDataColorStyle.

Definition at line 130 of file GeoDataPolyStyle.cpp.

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

Set brush style.

Parameters
style

Definition at line 110 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 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.

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

Unserialize the style from a stream.

Parameters
streamthe stream

Reimplemented from Marble::GeoDataColorStyle.

Definition at line 139 of file GeoDataPolyStyle.cpp.


The documentation for this class was generated from the following files:
  • GeoDataPolyStyle.h
  • GeoDataPolyStyle.cpp
This file is part of the KDE documentation.
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.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal