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
qgeotiledmap_p_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 QGEOTILEDMAP_P_P_H
4#define QGEOTILEDMAP_P_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 <QtCore/QPointer>
18
19#include <QtLocation/private/qlocationglobal_p.h>
20#include <QtLocation/private/qgeomap_p_p.h>
21#include <QtLocation/private/qgeocameradata_p.h>
22#include <QtLocation/private/qgeomaptype_p.h>
23
24#include <QtPositioning/private/qdoublevector2d_p.h>
25
27
28class QGeoCameraTiles;
29class QGeoTiledMapScene;
30class QAbstractGeoTileCache;
31class QGeoTiledMappingManagerEngine;
32class QGeoTiledMap;
33class QGeoTileRequestManager;
34class QGeoTileSpec;
35class QSGNode;
36class QQuickWindow;
37class QGeoCameraCapabilities;
38
39class Q_LOCATION_EXPORT QGeoTiledMapPrivate : public QGeoMapPrivate
40{
41 Q_DECLARE_PUBLIC(QGeoTiledMap)
42public:
43 QGeoTiledMapPrivate(QGeoTiledMappingManagerEngine *engine);
44 ~QGeoTiledMapPrivate();
45
46 QSGNode *updateSceneGraph(QSGNode *node, QQuickWindow *window);
47
48 void updateTile(const QGeoTileSpec &spec);
49 void prefetchTiles();
50 QGeoMapType activeMapType() const;
51 void onCameraCapabilitiesChanged(const QGeoCameraCapabilities &oldCameraCapabilities);
52
53protected:
54 void changeViewportSize(const QSize& size) override;
55 void changeCameraData(const QGeoCameraData &cameraData) override;
56 void changeActiveMapType(const QGeoMapType &mapType) override;
57 void changeTileVersion(int version);
58 void clearScene();
59
60 void updateScene();
61
62 void setVisibleArea(const QRectF &visibleArea) override;
63 QRectF visibleArea() const override;
64
65#ifdef QT_LOCATION_DEBUG
66public:
67#else
68protected:
69#endif
70 QAbstractGeoTileCache *m_cache;
71 QGeoCameraTiles *m_visibleTiles;
72 QGeoCameraTiles *m_prefetchTiles;
73 QGeoTiledMapScene *m_mapScene;
74 QGeoTileRequestManager *m_tileRequests;
75 QRectF m_visibleArea;
76 int m_maxZoomLevel;
77 int m_minZoomLevel;
78 QGeoTiledMap::PrefetchStyle m_prefetchStyle;
79 Q_DISABLE_COPY(QGeoTiledMapPrivate)
80};
81
82QT_END_NAMESPACE
83
84#endif // QGEOTILEDMAP_P_P_H
\inmodule QtCore\reentrant
Definition qpoint.h:217
Combined button and popup list for selecting options.
#define PREFETCH_FRUSTUM_SCALE