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// Qt-Security score:significant reason:default
4
5#ifndef QGEOCOORDINATE_P_H
6#define QGEOCOORDINATE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QSharedData>
20#include "qgeocoordinate.h"
21#include "private/qglobal_p.h"
22
23QT_BEGIN_NAMESPACE
24
25class Q_POSITIONING_EXPORT QGeoCoordinatePrivate : public QSharedData
26{
27public:
28 QGeoCoordinatePrivate();
29 QGeoCoordinatePrivate(const QGeoCoordinatePrivate &other);
30 // The destructor needs to be virtual because we have a derived class
31 // QGeoMercatorCoordinatePrivate, which is used by
32 // QQuickGeoCoordinateAnimation to create QGeoCoordinate.
33 virtual ~QGeoCoordinatePrivate();
34
35 double lat;
36 double lng;
37 double alt;
38
39 static void atDistanceAndAzimuth(const QGeoCoordinate &coord,
40 qreal distance, qreal azimuth,
41 double *lon, double *lat);
42 static const QGeoCoordinatePrivate *get(const QGeoCoordinate *c) {
43 return c->d.constData();
44 }
45};
46
47class Q_POSITIONING_EXPORT QGeoMercatorCoordinatePrivate : public QGeoCoordinatePrivate
48{
49public:
50 QGeoMercatorCoordinatePrivate();
51 QGeoMercatorCoordinatePrivate(const QGeoMercatorCoordinatePrivate &other);
52 ~QGeoMercatorCoordinatePrivate();
53
54 double m_mercatorX;
55 double m_mercatorY;
56};
57
58
59QT_END_NAMESPACE
60
61#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:192