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
qwebmercator_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#ifndef QWEBMERCATOR_P_H
4#define QWEBMERCATOR_P_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <qglobal.h>
18#include <QtCore/qvariant.h>
20
21QT_BEGIN_NAMESPACE
22
23class QGeoCoordinate;
24class QDoubleVector2D;
25
26class Q_POSITIONING_EXPORT QWebMercator
27{
28public:
29 static QDoubleVector2D coordToMercator(const QGeoCoordinate &coord);
30 static QGeoCoordinate mercatorToCoord(const QDoubleVector2D &mercator);
31 static QGeoCoordinate coordinateInterpolation(const QGeoCoordinate &from, const QGeoCoordinate &to, qreal progress);
32
33private:
34 static double realmod(const double a, const double b);
35};
36
37QT_END_NAMESPACE
38
39#endif // QWEBMERCATOR_P_H
Combined button and popup list for selecting options.
static void updateBBox(const QList< QGeoCoordinate > &m_path, QList< double > &m_deltaXs, double &m_minX, double &m_maxX, double &m_minLati, double &m_maxLati, QGeoRectangle &m_bbox)
Definition qgeopath_p.h:79
static QT_BEGIN_NAMESPACE void computeBBox(const QList< QGeoCoordinate > &m_path, QList< double > &m_deltaXs, double &m_minX, double &m_maxX, double &m_minLati, double &m_maxLati, QGeoRectangle &m_bbox)
Definition qgeopath_p.h:27