Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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;
29
30class Q_LOCATION_EXPORT QGeoTiledMapScene : public QObject
31{
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
55 void newTilesVisible(const QSet<QGeoTileSpec> &newTiles);
56
57private:
58 void updateSceneParameters();
59
60 Q_DISABLE_COPY(QGeoTiledMapScene)
61};
62
64
65#endif // QGEOTILEDMAPSCENE_P_H
void newTilesVisible(const QSet< QGeoTileSpec > &newTiles)
\inmodule QtCore
Definition qobject.h:103
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
\inmodule QtCore\reentrant
Definition qrect.h:484
\group qtquick-scenegraph-nodes \title Qt Quick Scene Graph Node classes
Definition qsgnode.h:37
\inmodule QtCore
Definition qsize.h:25
Combined button and popup list for selecting options.
static QT_BEGIN_NAMESPACE const int tileSize
Definition qmemrotate.cpp:9
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint texture
#define Q_OBJECT
#define Q_SIGNALS
aWidget window() -> setWindowTitle("New Window Title")
[2]