Marble

GeoDataLineStyle.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_GEODATALINESTYLE_H
13 #define MARBLE_GEODATALINESTYLE_H
14 
15 #include <QVector>
16 
17 #include "GeoDataColorStyle.h"
18 
19 #include "geodata_export.h"
20 
21 namespace Marble
22 {
23 
24 class GeoDataLineStylePrivate;
25 
34 class GEODATA_EXPORT GeoDataLineStyle : public GeoDataColorStyle
35 {
36  public:
39  GeoDataLineStyle( const GeoDataLineStyle& other );
44  explicit GeoDataLineStyle( const QColor &color );
45 
46  ~GeoDataLineStyle() override;
47 
51  GeoDataLineStyle& operator=( const GeoDataLineStyle& other );
52 
53  bool operator==( const GeoDataLineStyle &other ) const;
54  bool operator!=( const GeoDataLineStyle &other ) const;
55 
57  const char* nodeType() const override;
58 
63  void setWidth(float width);
68  float width() const;
69 
74  void setPhysicalWidth(float realWidth);
79  float physicalWidth() const;
80 
84  void setCosmeticOutline( bool enabled );
88  bool cosmeticOutline() const;
89 
90 
95  void setCapStyle( Qt::PenCapStyle style );
96 
101  Qt::PenCapStyle capStyle() const;
102 
107  void setPenStyle( Qt::PenStyle style );
108 
113  Qt::PenStyle penStyle() const;
114 
119  void setBackground( bool background );
120 
125  bool background() const;
126 
131  void setDashPattern( const QVector<qreal>& pattern );
132 
137  QVector<qreal> dashPattern() const;
138 
143  void pack( QDataStream& stream ) const override;
148  void unpack( QDataStream& stream ) override;
149 
150  private:
151  GeoDataLineStylePrivate * const d;
152 };
153 
154 }
155 
156 #endif
specifies the style how lines are drawn
PenStyle
Binds a QML item to a specific geodetic location in screen coordinates.
PenCapStyle
an abstract base class for various style classes
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 3 2020 23:19:06 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.