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