• 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
ElevationModel.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 2011 Niko Sams <niko.sams@gmail.com>
9 //
10 
11 
12 #ifndef MARBLE_ELEVATIONMODEL_H
13 #define MARBLE_ELEVATIONMODEL_H
14 
15 #include "GeoDataCoordinates.h"
16 #include "marble_export.h"
17 
18 #include <QObject>
19 #include <QCache>
20 #include <QImage>
21 
22 namespace Marble
23 {
24 
25 namespace {
26  unsigned int const invalidElevationData = 32768;
27 }
28 
29 class TileId;
30 class MarbleModel;
31 class ElevationModelPrivate;
32 
33 class MARBLE_EXPORT ElevationModel : public QObject
34 {
35  Q_OBJECT
36 public:
37  explicit ElevationModel( MarbleModel * const model );
38 
39  qreal height( qreal lon, qreal lat ) const;
40  QList<GeoDataCoordinates> heightProfile( qreal fromLon, qreal fromLat, qreal toLon, qreal toLat ) const;
41 
42 Q_SIGNALS:
47  void updateAvailable();
48 
49 private:
50  Q_PRIVATE_SLOT( d, void tileCompleted( TileId, QImage ) )
51 
52 private:
53  friend class ElevationModelPrivate;
54  ElevationModelPrivate *d;
55 };
56 
57 }
58 
59 #endif // MARBLE_ELEVATIONMODEL_H
GeoDataCoordinates.h
QObject
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
QList
Marble::ElevationModel
Definition: ElevationModel.h:33
QImage
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
Marble::TileId
Definition: TileId.h:27
marble_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