Marble

GeoDataPolyStyle.h
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 2008 Patrick Spendrin <[email protected]>
9 //
10 
11 
12 #ifndef MARBLE_GEODATAPOLYSTYLE_H
13 #define MARBLE_GEODATAPOLYSTYLE_H
14 
15 #include "GeoDataColorStyle.h"
16 
17 #include "geodata_export.h"
18 
19 namespace Marble
20 {
21 
22 class GeoDataPolyStylePrivate;
23 
31 class GEODATA_EXPORT GeoDataPolyStyle : public GeoDataColorStyle
32 {
33  public:
36  GeoDataPolyStyle( const GeoDataPolyStyle& other );
41  explicit GeoDataPolyStyle( const QColor &color );
42 
43  ~GeoDataPolyStyle() override;
44 
48  GeoDataPolyStyle& operator=( const GeoDataPolyStyle& other );
49 
50  bool operator==( const GeoDataPolyStyle &other ) const;
51  bool operator!=( const GeoDataPolyStyle &other ) const;
52 
54  const char* nodeType() const override;
55 
60  void setFill(bool fill);
65  bool fill() const;
66 
71  void setOutline(bool outline);
76  bool outline() const;
77 
82  void setBrushStyle( const Qt::BrushStyle style );
87  Qt::BrushStyle brushStyle() const;
88 
93  void setColorIndex( quint8 colorIndex );
94 
99  quint8 colorIndex() const;
100 
101  void setTexturePath( const QString &path );
102 
103  QString texturePath() const;
104 
105  QImage textureImage() const;
106 
111  void pack( QDataStream& stream ) const override;
116  void unpack( QDataStream& stream ) override;
117 
118  private:
119  GeoDataPolyStylePrivate * const d;
120 };
121 
122 }
123 
124 #endif
BrushStyle
Binds a QML item to a specific geodetic location in screen coordinates.
an abstract base class for various style classes
specifies the style how polygons are drawn
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jul 6 2020 23:18:58 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.