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

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • data
GeoDataColorStyle.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2007 Murad Tagirov <tmurad@gmail.com>
9 // Copyright 2007 Inge Wallin <ingwa@kde.org>
10 // Copyright 2012 Mohammed Nafees <nafees.technocool@gmail.com>
11 //
12 
13 
14 #ifndef MARBLE_GEODATACOLORSTYLE_H
15 #define MARBLE_GEODATACOLORSTYLE_H
16 
17 
18 #include <QColor>
19 
20 #include "GeoDataObject.h"
21 
22 #include "geodata_export.h"
23 
24 namespace Marble
25 {
26 
27 class GeoDataColorStylePrivate;
28 
64 class GEODATA_EXPORT GeoDataColorStyle : public GeoDataObject
65 {
66  public:
68  virtual const char* nodeType() const;
69 
74  void setColor( const QColor &value );
76  QColor color() const;
77 
79  enum ColorMode { Normal, Random };
80 
87  QColor paintedColor() const;
88 
93  void setColorMode( const ColorMode &colorMode );
95  ColorMode colorMode() const;
96 
97 
102  GeoDataColorStyle& operator=( const GeoDataColorStyle& other );
103  bool operator==( const GeoDataColorStyle &other ) const;
104  bool operator!=( const GeoDataColorStyle &other ) const;
105 
110  virtual void pack( QDataStream& stream ) const;
115  virtual void unpack( QDataStream& stream );
116 
117  GeoDataColorStyle();
118  GeoDataColorStyle( const GeoDataColorStyle& other );
119 
120  virtual ~GeoDataColorStyle();
121 
122  private:
123  GeoDataColorStylePrivate * const d;
124 };
125 
126 }
127 
128 #endif
QDataStream
Marble::GeoDataObject
A base class for all geodata objects.
Definition: GeoDataObject.h:48
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
Marble::GeoDataColorStyle::ColorMode
ColorMode
The color mode.
Definition: GeoDataColorStyle.h:79
Marble::GeoDataColorStyle
an abstract base class for various style classes
Definition: GeoDataColorStyle.h:64
GeoDataObject.h
Marble::operator!=
bool operator!=(GeoDataLatLonBox const &lhs, GeoDataLatLonBox const &rhs)
Definition: GeoDataLatLonBox.cpp:59
QColor
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 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