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

marble

  • sources
  • kde-4.12
  • 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 
56  virtual const char* nodeType() const;
57 
62  void setWidth( const float &width );
67  float width() const;
68 
73  void setPhysicalWidth( const float &realWidth );
78  float physicalWidth() const;
79 
84  void setCapStyle( Qt::PenCapStyle style );
85 
90  Qt::PenCapStyle capStyle() const;
91 
96  void setPenStyle( Qt::PenStyle style );
97 
102  Qt::PenStyle penStyle() const;
103 
108  void setBackground( bool background );
109 
114  bool background() const;
115 
120  void setDashPattern( const QVector<qreal>& pattern );
121 
126  QVector<qreal> dashPattern() const;
127 
132  virtual void pack( QDataStream& stream ) const;
137  virtual void unpack( QDataStream& stream );
138 
139  private:
140  GeoDataLineStylePrivate * const d;
141 };
142 
143 }
144 
145 #endif
GeoDataColorStyle.h
Marble::GeoDataLineStyle
specifies the style how lines are drawn
Definition: GeoDataLineStyle.h:36
Marble::GeoDataColorStyle
an abstract base class for various style classes
Definition: GeoDataColorStyle.h:64
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:50 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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