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
qgeotiledmappingmanagerengine_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
5#ifndef QGEOTILEDMAPPINGMANAGERENGINE_H
6#define QGEOTILEDMAPPINGMANAGERENGINE_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QObject>
20#include <QtLocation/private/qlocationglobal_p.h>
21#include <QtLocation/private/qabstractgeotilecache_p.h>
22#include <QtLocation/private/qgeomappingmanagerengine_p.h>
23#include <QtLocation/private/qgeotiledmap_p.h>
24
25
27
29class QGeoTileFetcher;
30struct QGeoTileTexture;
31class QGeoTileSpec;
32class QSize;
33
34class Q_LOCATION_EXPORT QGeoTiledMappingManagerEngine : public QGeoMappingManagerEngine
35{
36 Q_OBJECT
37
38public:
39 explicit QGeoTiledMappingManagerEngine(QObject *parent = nullptr);
40 virtual ~QGeoTiledMappingManagerEngine();
41
42 QGeoTileFetcher *tileFetcher();
43
44 QGeoMap *createMap() override;
45 void releaseMap(QGeoTiledMap *map);
46
47 QSize tileSize() const;
48 int tileVersion() const;
49
50 virtual void updateTileRequests(QGeoTiledMap *map,
51 const QSet<QGeoTileSpec> &tilesAdded,
52 const QSet<QGeoTileSpec> &tilesRemoved);
53
54 QAbstractGeoTileCache *tileCache();
55 virtual QSharedPointer<QGeoTileTexture> getTileTexture(const QGeoTileSpec &spec);
56
57 QAbstractGeoTileCache::CacheAreas cacheHint() const;
58
59protected Q_SLOTS:
60 virtual void engineTileFinished(const QGeoTileSpec &spec, const QByteArray &bytes, const QString &format);
61 virtual void engineTileError(const QGeoTileSpec &spec, const QString &errorString);
62
63Q_SIGNALS:
64 void tileError(const QGeoTileSpec &spec, const QString &errorString);
65 void tileVersionChanged();
66
67protected:
68 void setTileFetcher(QGeoTileFetcher *fetcher);
69 void setTileSize(const QSize &tileSize);
70 void setTileVersion(int version);
71 void setCacheHint(QAbstractGeoTileCache::CacheAreas cacheHint);
72 void setTileCache(QAbstractGeoTileCache *cache);
73
74 QGeoTiledMap::PrefetchStyle m_prefetchStyle = QGeoTiledMap::PrefetchTwoNeighbourLayers;
75 QGeoTiledMappingManagerEnginePrivate *d_ptr;
76
77 Q_DECLARE_PRIVATE(QGeoTiledMappingManagerEngine)
78 Q_DISABLE_COPY(QGeoTiledMappingManagerEngine)
79
80 friend class QGeoTileFetcher;
81};
82
83QT_END_NAMESPACE
84
85#endif
\inmodule QtCore\reentrant
Definition qpoint.h:232
Combined button and popup list for selecting options.
#define PREFETCH_FRUSTUM_SCALE