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 "GeoDataObject.h"
11#include "GeoDataCoordinates.h"
12#include "MarbleGlobal.h"
13
14namespace Marble {
15
16class GeoDataLocationPrivate;
17
18/**
19 */
20class GEODATA_EXPORT GeoDataLocation: public GeoDataObject
21{
22public:
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
50protected:
51 GeoDataLocationPrivate* const d;
52};
53
54}
55
56#endif // GEODATAORIENTATION_H
Binds a QML item to a specific geodetic location in screen coordinates.
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
bool operator!=(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.