Marble

GeoDataLocation.h
1 
2 // SPDX-License-Identifier: LGPL-2.1-or-later
3 //
4 // SPDX-FileCopyrightText: 2013 Sanjiban Bairagya <[email protected]>
5 //
6 
7 #ifndef GEODATALOCATION_H
8 #define GEODATALOCATION_H
9 
10 #include "GeoDataObject.h"
11 #include "GeoDataCoordinates.h"
12 #include "MarbleGlobal.h"
13 
14 namespace Marble {
15 
16 class GeoDataLocationPrivate;
17 
18 /**
19  */
20 class GEODATA_EXPORT GeoDataLocation: public GeoDataObject
21 {
22 public:
23  GeoDataLocation();
24 
25  GeoDataLocation( const GeoDataLocation &other );
26 
27  GeoDataLocation& operator=( const GeoDataLocation &other );
28 
29  bool operator==( const GeoDataLocation &other ) const;
30  bool operator!=( const GeoDataLocation &other ) const;
31 
32  ~GeoDataLocation() override;
33 
34  /** Provides type information for downcasting a GeoNode */
35  const char* nodeType() const override;
36 
37  qreal latitude(GeoDataCoordinates::Unit) const;
38 
39  qreal longitude(GeoDataCoordinates::Unit) const;
40 
41  void setLatitude(qreal latitude, GeoDataCoordinates::Unit unit);
42 
43  void setLongitude(qreal longitude, GeoDataCoordinates::Unit unit);
44 
45  /** Returns the distance to earth's surface in meters, interpreted according to altitudeMode */
46  qreal altitude() const;
47 
48  void setAltitude( qreal altitude );
49 
50 protected:
51  GeoDataLocationPrivate* const d;
52 };
53 
54 }
55 
56 #endif // GEODATAORIENTATION_H
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
bool operator!=(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
Binds a QML item to a specific geodetic location in screen coordinates.
Unit
enum used constructor to specify the units used
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.