• 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
GeoDataIconStyle.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 //
11 
12 
13 #ifndef MARBLE_GEODATAICONSTYLE_H
14 #define MARBLE_GEODATAICONSTYLE_H
15 
16 
17 #include <QPixmap>
18 
19 #include "GeoDataColorStyle.h"
20 #include "GeoDataHotSpot.h"
21 
22 #include "geodata_export.h"
23 
24 namespace Marble
25 {
26 
27 class GeoDataIconStylePrivate;
28 
29 class GEODATA_EXPORT GeoDataIconStyle : public GeoDataColorStyle
30 {
31  public:
32  GeoDataIconStyle();
33  GeoDataIconStyle( const GeoDataIconStyle& other );
34  explicit GeoDataIconStyle( const QImage& icon,
35  const QPointF &hotSpot = QPointF( 0.5, 0.5 ) );
36  ~GeoDataIconStyle();
37 
38  GeoDataIconStyle& operator=( const GeoDataIconStyle& other );
39 
40  bool operator==( const GeoDataIconStyle &other ) const;
41  bool operator!=( const GeoDataIconStyle &other ) const;
42 
44  virtual const char* nodeType() const;
45 
46  void setIcon( const QImage& icon );
47  QImage icon() const;
48 
49  void setIconPath( const QString& filename );
50  QString iconPath() const;
51 
52  void setHotSpot( const QPointF& hotSpot, GeoDataHotSpot::Units xunits, GeoDataHotSpot::Units yunits );
53  QPointF hotSpot( GeoDataHotSpot::Units& xunits, GeoDataHotSpot::Units& yunits ) const;
54 
55  void setScale( const float &scale );
56  float scale() const;
57 
58  int heading() const;
59  void setHeading( int heading );
60 
61  /*
62  * Serializable methods
63  */
64  virtual void pack( QDataStream& stream ) const;
65  virtual void unpack( QDataStream& stream );
66 
67  private:
68  GeoDataIconStylePrivate * const d;
69 };
70 
71 }
72 
73 #endif
Marble::GeoDataIconStyle
Definition: GeoDataIconStyle.h:29
GeoDataColorStyle.h
QDataStream
Marble::GeoDataHotSpot::Units
Units
Definition: GeoDataHotSpot.h:30
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
QPointF
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
QString
QImage
GeoDataHotSpot.h
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