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