Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qgeocoordinate_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QGEOCOORDINATE_P_H
5#define QGEOCOORDINATE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QSharedData>
19#include "qgeocoordinate.h"
20#include "private/qglobal_p.h"
21
22QT_BEGIN_NAMESPACE
23
24class QGeoCoordinatePrivate : public QSharedData
25{
26public:
27 QGeoCoordinatePrivate();
28 QGeoCoordinatePrivate(const QGeoCoordinatePrivate &other);
29 // The destructor needs to be virtual because we have a derived class
30 // QGeoMercatorCoordinatePrivate, which is used by
31 // QQuickGeoCoordinateAnimation to create QGeoCoordinate.
32 virtual ~QGeoCoordinatePrivate();
33
34 double lat;
35 double lng;
36 double alt;
37
38 static void atDistanceAndAzimuth(const QGeoCoordinate &coord,
39 qreal distance, qreal azimuth,
40 double *lon, double *lat);
41 static const QGeoCoordinatePrivate *get(const QGeoCoordinate *c) {
42 return c->d.constData();
43 }
44};
45
46class Q_POSITIONING_EXPORT QGeoMercatorCoordinatePrivate : public QGeoCoordinatePrivate
47{
48public:
49 QGeoMercatorCoordinatePrivate();
50 QGeoMercatorCoordinatePrivate(const QGeoMercatorCoordinatePrivate &other);
51 ~QGeoMercatorCoordinatePrivate();
52
53 double m_mercatorX;
54 double m_mercatorY;
55};
56
57
58QT_END_NAMESPACE
59
60#endif // QGEOCOORDINATE_P_H
Combined button and popup list for selecting options.
constexpr size_t qHash(const QSize &s, size_t seed=0) noexcept
Definition qsize.h:191