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
qgeotiledmapscene_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 QGEOTILEDMAPSCENE_P_H
4#define QGEOTILEDMAPSCENE_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 <QObject>
18#include <QtLocation/private/qlocationglobal_p.h>
19
21
22class QGeoCameraData;
23class QGeoTileSpec;
24class QDoubleVector2D;
25struct QGeoTileTexture;
26class QSGNode;
27class QQuickWindow;
28class QGeoTiledMapScenePrivate;
29
30class Q_LOCATION_EXPORT QGeoTiledMapScene : public QObject
31{
32 Q_OBJECT
33 Q_DECLARE_PRIVATE(QGeoTiledMapScene)
34public:
35 explicit QGeoTiledMapScene(QObject *parent = nullptr);
36 virtual ~QGeoTiledMapScene();
37
38 void setScreenSize(const QSize &size);
39 void setTileSize(int tileSize);
40 void setCameraData(const QGeoCameraData &cameraData);
41 void setVisibleArea(const QRectF &visibleArea);
42
43 void setVisibleTiles(const QSet<QGeoTileSpec> &tiles);
44 const QSet<QGeoTileSpec> &visibleTiles() const;
45
46 void addTile(const QGeoTileSpec &spec, QSharedPointer<QGeoTileTexture> texture);
47
48 QSGNode *updateSceneGraph(QSGNode *oldNode, QQuickWindow *window);
49
50 QSet<QGeoTileSpec> texturedTiles();
51
52 void clearTexturedTiles();
53
54Q_SIGNALS:
55 void newTilesVisible(const QSet<QGeoTileSpec> &newTiles);
56
57private:
58 void updateSceneParameters();
59
60 Q_DISABLE_COPY(QGeoTiledMapScene)
61};
62
63QT_END_NAMESPACE
64
65#endif // QGEOTILEDMAPSCENE_P_H
\inmodule QtCore\reentrant
Definition qpoint.h:231
#define PREFETCH_FRUSTUM_SCALE