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
qgeomap_p_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
QGEOMAP_P_P_H
5
#
define
QGEOMAP_P_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
<
QtLocation
/
private
/
qlocationglobal_p
.
h
>
19
#
include
<
QtLocation
/
private
/
qgeocameradata_p
.
h
>
20
#
include
<
QtLocation
/
private
/
qgeomaptype_p
.
h
>
21
#
include
<
QtLocation
/
private
/
qgeoprojection_p
.
h
>
22
#
include
<
QtLocation
/
private
/
qgeomap_p
.
h
>
23
#
include
<
QtLocation
/
private
/
qgeocameracapabilities_p
.
h
>
24
25
#
include
<
QtCore
/
private
/
qobject_p
.
h
>
26
#
include
<
QtCore
/
qpointer
.
h
>
27
#
include
<
QtCore
/
QSize
>
28
#
include
<
QtCore
/
QList
>
29
30
#
include
"qgeomap_p.h"
31
32
33
QT_BEGIN_NAMESPACE
34
35
class
QGeoMappingManagerEngine;
36
class
QGeoMap;
37
class
QGeoMapController;
38
class
QDeclarativeGeoMapItemBase;
39
40
class
Q_LOCATION_EXPORT
QGeoMapPrivate
:
public
QObjectPrivate
41
{
42
Q_DECLARE_PUBLIC(QGeoMap)
43
public
:
44
QGeoMapPrivate(QGeoMappingManagerEngine *engine, QGeoProjection *geoProjection);
45
virtual
~QGeoMapPrivate();
46
47
const
QGeoProjection *geoProjection()
const
;
48
void
setCameraCapabilities(
const
QGeoCameraCapabilities &cameraCapabilities);
49
const
QGeoCameraCapabilities &cameraCapabilities()
const
;
50
51
static
const
QGeoMapPrivate *get(
const
QGeoMap &map);
52
53
protected
:
54
/* Hooks into the actual map implementations */
55
virtual
QGeoMap::ItemTypes supportedMapItemTypes()
const
;
56
virtual
void
addMapItem(QDeclarativeGeoMapItemBase *item);
57
virtual
void
removeMapItem(QDeclarativeGeoMapItemBase *item);
58
59
virtual
void
changeViewportSize(
const
QSize &size) = 0;
// called by QGeoMap::setSize()
60
virtual
void
changeCameraData(
const
QGeoCameraData &oldCameraData) = 0;
// called by QGeoMap::setCameraData()
61
virtual
void
changeActiveMapType(
const
QGeoMapType &mapType) = 0;
// called by QGeoMap::setActiveMapType()
62
63
virtual
double
mapWidth()
const
;
64
virtual
double
mapHeight()
const
;
65
66
virtual
void
setCopyrightVisible(
bool
visible);
67
virtual
bool
copyrightVisible()
const
;
68
virtual
double
maximumCenterLatitudeAtZoom(
const
QGeoCameraData &cameraData)
const
;
69
virtual
double
minimumCenterLatitudeAtZoom(
const
QGeoCameraData &cameraData)
const
;
70
71
virtual
void
setVisibleArea(
const
QRectF &visibleArea);
72
virtual
QRectF visibleArea()
const
;
73
74
QRectF clampVisibleArea(
const
QRectF &visibleArea)
const
;
75
76
#
ifdef
QT_LOCATION_DEBUG
77
public
:
78
#
else
79
protected
:
80
#
endif
81
QSize m_viewportSize;
82
QGeoProjection *m_geoProjection;
83
QPointer<QGeoMappingManagerEngine> m_engine;
84
QGeoCameraData m_cameraData;
85
QGeoMapType m_activeMapType;
86
QList<QDeclarativeGeoMapItemBase *> m_mapItems;
87
QGeoCameraCapabilities m_cameraCapabilities;
88
bool
m_copyrightVisible =
true
;
89
mutable
double
m_maximumViewportLatitude = 0;
90
mutable
double
m_minimumViewportLatitude = 0;
91
};
92
93
QT_END_NAMESPACE
94
95
#
endif
// QGEOMAP_P_P_H
QGeoMapPrivate
Definition
qgeomap_p_p.h:41
QGeoMap
Definition
qgeomap_p.h:40
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtlocation
src
location
maps
qgeomap_p_p.h
Generated on
for Qt by
1.18.0