Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qgeomapitemsoverlay.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 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
6#include <QtLocation/private/qgeomap_p_p.h>
7#include <QtQuick/qsgnode.h>
8#include <QtQuick/qsgrectanglenode.h>
9#include <QtQuick/qquickwindow.h>
10
12
14{
15 Q_DECLARE_PUBLIC(QGeoMapItemsOverlay)
16public:
19
21
22 void setVisibleArea(const QRectF &visibleArea) override;
23 QRectF visibleArea() const override;
24
25protected:
26 void changeViewportSize(const QSize &size) override;
27 void changeCameraData(const QGeoCameraData &oldCameraData) override;
28 void changeActiveMapType(const QGeoMapType &mapType) override;
29
31};
32
35{
36
37}
38
40{
41}
42
43QGeoMap::Capabilities QGeoMapItemsOverlay::capabilities() const
44{
45 return Capabilities(SupportsVisibleRegion
48}
49
51{
54 if (va == m_visibleArea)
55 return;
56
57 m_visibleArea = va;
59
60 q->sgNodeChanged();
61}
62
64{
65 return m_visibleArea;
66}
67
69{
70 return node;
71}
72
75{
77}
78
80{
81}
82
84{
85}
86
88{
90}
91
93{
95}
96
98{
100}
101
103
104
105
106
void changeActiveMapType(const QGeoMapType &mapType) override
void changeViewportSize(const QSize &size) override
void setVisibleArea(const QRectF &visibleArea) override
void changeCameraData(const QGeoCameraData &oldCameraData) override
QRectF visibleArea() const override
QGeoMapItemsOverlayPrivate(QGeoMappingManagerEngineItemsOverlay *engine, QGeoMapItemsOverlay *map)
QGeoMap::Capabilities capabilities() const override
QGeoMapItemsOverlay(QGeoMappingManagerEngineItemsOverlay *engine, QObject *parent)
QSGNode * updateSceneGraph(QSGNode *node, QQuickWindow *window) override
QGeoProjection * m_geoProjection
Definition qgeomap_p_p.h:78
QRectF clampVisibleArea(const QRectF &visibleArea) const
Definition qgeomap.cpp:364
@ SupportsVisibleRegion
Definition qgeomap_p.h:60
@ SupportsAnchoringCoordinate
Definition qgeomap_p.h:62
@ SupportsSetBearing
Definition qgeomap_p.h:61
virtual void setVisibleArea(const QRectF &visibleArea)=0
\inmodule QtCore
Definition qobject.h:90
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
\inmodule QtCore\reentrant
Definition qrect.h:483
\group qtquick-scenegraph-nodes \title Qt Quick Scene Graph Node classes
Definition qsgnode.h:37
\inmodule QtCore
Definition qsize.h:25
#define this
Definition dialogs.cpp:9
QMap< QString, QString > map
[6]
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLdouble GLdouble GLdouble GLdouble q
Definition qopenglext.h:259
#define Q_UNUSED(x)
QJSEngine engine
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent