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
qgeocameratiles_p.h
Go to the documentation of this file.
1// Copyright (C) 2015 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 QGEOCAMERATILES_P_H
4#define QGEOCAMERATILES_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 <QtLocation/private/qlocationglobal_p.h>
18#include <QtCore/QScopedPointer>
19
20#include <memory>
21
22QT_BEGIN_NAMESPACE
23
24class QGeoCameraData;
25class QGeoTileSpec;
26class QGeoMapType;
27class QGeoCameraTilesPrivate;
28class QSize;
29class QRectF;
30
31class Q_LOCATION_EXPORT QGeoCameraTiles {
32public:
33 QGeoCameraTiles();
34 ~QGeoCameraTiles();
35
36 void setCameraData(const QGeoCameraData &camera);
37 QGeoCameraData cameraData() const;
38 void setVisibleArea(const QRectF &visibleArea);
39 void setScreenSize(const QSize &size);
40 void setTileSize(int tileSize);
41 int tileSize() const;
42 void setViewExpansion(double viewExpansion);
43 void setPluginString(const QString &pluginString);
44 void setMapType(const QGeoMapType &mapType);
45 QGeoMapType activeMapType() const;
46 void setMapVersion(int mapVersion);
47 const QSet<QGeoTileSpec>& createTiles();
48
49protected:
50 std::unique_ptr<QGeoCameraTilesPrivate> d_ptr;
51
52 friend class QGeoCameraTilesPrivate;
53 Q_DISABLE_COPY(QGeoCameraTiles)
54};
55
56QT_END_NAMESPACE
57
58#endif // QGEOCAMERATILES_P_H
static QDoubleVector3D toDoubleVector3D(const QVector3D &in)
static bool appendZIntersects(const QDoubleVector3D &start, const QDoubleVector3D &end, double z, QList< QDoubleVector3D > &results)
static QVector3D toVector3D(const QDoubleVector3D &in)
static void addXOffset(PolygonVector &footprint, double xoff)
QList< QDoubleVector3D > PolygonVector