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.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_H
5#define QGEOTILEDMAP_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 <QObject>
19#include <QString>
20#include <QtLocation/private/qlocationglobal_p.h>
21#include <QtLocation/private/qgeomap_p.h>
22
23QT_BEGIN_NAMESPACE
24
25class QGeoTileSpec;
26struct QGeoTileTexture;
27class QAbstractGeoTileCache;
28class QGeoTiledMapPrivate;
29class QGeoTiledMappingManagerEngine;
30class QGeoTileRequestManager;
31
32class QQuickWindow;
33class QSGNode;
34
35class QPointF;
36
37class Q_LOCATION_EXPORT QGeoTiledMap : public QGeoMap
38{
39 Q_OBJECT
40 Q_DECLARE_PRIVATE(QGeoTiledMap)
41public:
42 enum PrefetchStyle { NoPrefetching, PrefetchNeighbourLayer, PrefetchTwoNeighbourLayers };
43 QGeoTiledMap(QGeoTiledMappingManagerEngine *engine, QObject *parent);
44 virtual ~QGeoTiledMap();
45
46 QAbstractGeoTileCache *tileCache();
47 QGeoTileRequestManager *requestManager();
48 void updateTile(const QGeoTileSpec &spec);
49 void setPrefetchStyle(PrefetchStyle style);
50
51 void prefetchData() override;
52 void clearData() override;
53 Capabilities capabilities() const override;
54
55 void setCopyrightVisible(bool visible) override;
56
57public Q_SLOTS:
58 virtual void clearScene(int mapId);
59
60protected:
61 QSGNode *updateSceneGraph(QSGNode *, QQuickWindow *window) override;
62 virtual void evaluateCopyrights(const QSet<QGeoTileSpec> &visibleTiles);
63
64 QGeoTiledMap(QGeoTiledMapPrivate &dd, QGeoTiledMappingManagerEngine *engine, QObject *parent);
65
66private Q_SLOTS:
67 void handleTileVersionChanged();
68
69private:
70 Q_DISABLE_COPY(QGeoTiledMap)
71
72};
73
74QT_END_NAMESPACE
75
76#endif // QGEOMAP_P_H
\inmodule QtCore\reentrant
Definition qpoint.h:232
#define PREFETCH_FRUSTUM_SCALE