• 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
GeoDataLineStyle.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 2008 Patrick Spendrin <ps_ml@gmx.de>
9 //
10 
11 
12 #ifndef MARBLE_GEODATALINESTYLE_H
13 #define MARBLE_GEODATALINESTYLE_H
14 
15 
16 #include <QFont>
17 #include <QVector>
18 
19 #include "GeoDataColorStyle.h"
20 
21 #include "geodata_export.h"
22 
23 namespace Marble
24 {
25 
26 class GeoDataLineStylePrivate;
27 
36 class GEODATA_EXPORT GeoDataLineStyle : public GeoDataColorStyle
37 {
38  public:
40  GeoDataLineStyle();
41  GeoDataLineStyle( const GeoDataLineStyle& other );
46  explicit GeoDataLineStyle( const QColor &color );
47 
48  ~GeoDataLineStyle();
49 
53  GeoDataLineStyle& operator=( const GeoDataLineStyle& other );
54 
55  bool operator==( const GeoDataLineStyle &other ) const;
56  bool operator!=( const GeoDataLineStyle &other ) const;
57 
59  virtual const char* nodeType() const;
60 
65  void setWidth( const float &width );
70  float width() const;
71 
76  void setPhysicalWidth( const float &realWidth );
81  float physicalWidth() const;
82 
87  void setCapStyle( Qt::PenCapStyle style );
88 
93  Qt::PenCapStyle capStyle() const;
94 
99  void setPenStyle( Qt::PenStyle style );
100 
105  Qt::PenStyle penStyle() const;
106 
111  void setBackground( bool background );
112 
117  bool background() const;
118 
123  void setDashPattern( const QVector<qreal>& pattern );
124 
129  QVector<qreal> dashPattern() const;
130 
135  virtual void pack( QDataStream& stream ) const;
140  virtual void unpack( QDataStream& stream );
141 
142  private:
143  GeoDataLineStylePrivate * const d;
144 };
145 
146 }
147 
148 #endif
GeoDataColorStyle.h
Marble::GeoDataLineStyle
specifies the style how lines are drawn
Definition: GeoDataLineStyle.h:36
QDataStream
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
Marble::GeoDataColorStyle
an abstract base class for various style classes
Definition: GeoDataColorStyle.h:64
Marble::operator!=
bool operator!=(GeoDataLatLonBox const &lhs, GeoDataLatLonBox const &rhs)
Definition: GeoDataLatLonBox.cpp:59
QColor
QVector< qreal >
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