Marble

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

KDE's Doxygen guidelines are available online.