Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
26
QT_BEGIN_NAMESPACE
27
28
class
QGeoTiledMappingManagerEnginePrivate
;
29
class
QGeoTileFetcher;
30
struct
QGeoTileTexture
;
31
class
QGeoTileSpec;
32
class
QSize;
33
34
class
Q_LOCATION_EXPORT
QGeoTiledMappingManagerEngine
:
public
QGeoMappingManagerEngine
35
{
36
Q_OBJECT
37
38
public
:
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
59
protected
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
63
Q_SIGNALS:
64
void
tileError(
const
QGeoTileSpec &spec,
const
QString &errorString);
65
void
tileVersionChanged();
66
67
protected
:
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
83
QT_END_NAMESPACE
84
85
#
endif
QGeoTiledMapPrivate
Definition
qgeotiledmap_p_p.h:41
QGeoTiledMap
Definition
qgeotiledmap_p.h:38
QGeoTiledMappingManagerEnginePrivate
Definition
qgeotiledmappingmanagerengine_p_p.h:33
QGeoTiledMappingManagerEngine
Definition
qgeotiledmappingmanagerengine_p.h:35
QPointF
\inmodule QtCore\reentrant
Definition
qpoint.h:232
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
PREFETCH_FRUSTUM_SCALE
#define PREFETCH_FRUSTUM_SCALE
Definition
qgeotiledmap.cpp:18
QGeoTileTexture
Definition
qabstractgeotilecache_p.h:40
qtlocation
src
location
maps
qgeotiledmappingmanagerengine_p.h
Generated on
for Qt by
1.18.0