• 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
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 
41  virtual const char* nodeType() const;
42 
43  void setIcon( const QImage& icon );
44  QImage icon() const;
45 
46  void setIconPath( const QString& filename );
47  QString iconPath() const;
48 
49  void setHotSpot( const QPointF& hotSpot, GeoDataHotSpot::Units xunits, GeoDataHotSpot::Units yunits );
50  QPointF hotSpot( GeoDataHotSpot::Units& xunits, GeoDataHotSpot::Units& yunits ) const;
51 
52  void setScale( const float &scale );
53  float scale() const;
54 
55  int heading() const;
56  void setHeading( int heading );
57 
58  /*
59  * Serializable methods
60  */
61  virtual void pack( QDataStream& stream ) const;
62  virtual void unpack( QDataStream& stream );
63 
64  private:
65  GeoDataIconStylePrivate * const d;
66 };
67 
68 }
69 
70 #endif
Marble::GeoDataIconStyle
Definition: GeoDataIconStyle.h:29
GeoDataColorStyle.h
Marble::GeoDataHotSpot::Units
Units
Definition: GeoDataHotSpot.h:30
Marble::GeoDataColorStyle
an abstract base class for various style classes
Definition: GeoDataColorStyle.h:64
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 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