• 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
GeoDataHotSpot.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 Torsten Rahn <rahn@kde.org>
9 // Copyright 2008 Inge Wallin <inge@lysator.liu.se>
10 //
11 
12 
13 #ifndef MARBLE_GEODATAHOTSPOT_H
14 #define MARBLE_GEODATAHOTSPOT_H
15 
16 #include <QPoint>
17 
18 #include "GeoDataObject.h"
19 
20 #include "geodata_export.h"
21 
22 namespace Marble
23 {
24 
25 class GeoDataHotSpotPrivate;
26 
27 class GEODATA_EXPORT GeoDataHotSpot : public GeoDataObject
28 {
29  public:
30  enum Units{Fraction, Pixels, InsetPixels};
31 
32  GeoDataHotSpot( const QPointF& hotSpot = QPointF( 0.5, 0.5 ),
33  Units xunits = Fraction, Units yunits = Fraction );
34  GeoDataHotSpot( const GeoDataHotSpot& other );
35  ~GeoDataHotSpot();
36 
37  GeoDataHotSpot& operator=( const GeoDataHotSpot& other );
38  bool operator==( const GeoDataHotSpot& other );
39  bool operator!=( const GeoDataHotSpot& other );
40 
42  virtual const char* nodeType() const;
43 
50  const QPointF& hotSpot( Units& xunits, Units& yunits ) const;
51 
52  void setHotSpot( const QPointF& hotSpot = QPointF( 0.5, 0.5 ),
53  Units xunits = Fraction, Units yunits = Fraction );
54 
56  virtual void pack( QDataStream& stream ) const;
58  virtual void unpack( QDataStream& stream );
59 
60  private:
61  GeoDataHotSpotPrivate *const d;
62 };
63 
64 }
65 
66 #endif
QDataStream
Marble::GeoDataObject
A base class for all geodata objects.
Definition: GeoDataObject.h:48
Marble::GeoDataHotSpot::Units
Units
Definition: GeoDataHotSpot.h:30
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
QPointF
Marble::GeoDataHotSpot
Definition: GeoDataHotSpot.h:27
GeoDataObject.h
Marble::operator!=
bool operator!=(GeoDataLatLonBox const &lhs, GeoDataLatLonBox const &rhs)
Definition: GeoDataLatLonBox.cpp:59
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