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
qgeocircle.h
Go to the documentation of this file.
1
// Copyright (C) 2016 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
5
#
ifndef
QGEOCIRCLE_H
6
#
define
QGEOCIRCLE_H
7
8
#
include
<
QtPositioning
/
QGeoRectangle
>
9
10
QT_BEGIN_NAMESPACE
11
12
class
QGeoCoordinate;
13
class
QGeoCirclePrivate;
14
15
class
Q_POSITIONING_EXPORT
QGeoCircle
:
public
QGeoShape
16
{
17
Q_GADGET
18
Q_PROPERTY(QGeoCoordinate center READ center WRITE setCenter)
19
Q_PROPERTY(qreal radius READ radius WRITE setRadius)
20
21
public
:
22
QGeoCircle();
23
QGeoCircle(
const
QGeoCoordinate ¢er, qreal radius = -1.0);
24
QGeoCircle(
const
QGeoCircle &other);
25
QGeoCircle(
const
QGeoShape &other);
26
27
~QGeoCircle();
28
29
QGeoCircle &operator=(
const
QGeoCircle &other);
30
31
void
setCenter(
const
QGeoCoordinate ¢er);
32
QGeoCoordinate center()
const
;
33
34
void
setRadius(qreal radius);
35
qreal radius()
const
;
36
37
Q_INVOKABLE
void
translate(
double
degreesLatitude,
double
degreesLongitude);
38
Q_INVOKABLE QGeoCircle translated(
double
degreesLatitude,
double
degreesLongitude)
const
;
39
Q_INVOKABLE
void
extendCircle(
const
QGeoCoordinate &coordinate);
40
41
Q_INVOKABLE QString toString()
const
;
42
43
private
:
44
inline
QGeoCirclePrivate *d_func();
45
inline
const
QGeoCirclePrivate *d_func()
const
;
46
47
#
ifndef
QT_NO_DATASTREAM
48
friend
QDataStream &operator<<(QDataStream &stream,
const
QGeoCircle &circle)
49
{
50
return
stream <<
static_cast
<
const
QGeoShape &>(circle);
51
}
52
friend
QDataStream &operator>>(QDataStream &stream, QGeoCircle &circle)
53
{
54
return
stream >>
static_cast
<QGeoShape &>(circle);
55
}
56
#
endif
57
};
58
59
Q_DECLARE_TYPEINFO
(QGeoCircle, Q_RELOCATABLE_TYPE);
60
61
QT_END_NAMESPACE
62
63
QT_DECL_METATYPE_EXTERN(QGeoCircle, Q_POSITIONING_EXPORT)
64
65
#
endif
QGeoCircle
\inmodule QtPositioning
Definition
qgeocircle.h:16
QGeoCodingManagerEnginePrivate
Definition
qgeocodingmanagerengine_p.h:26
QGeoCodingManagerEngine
\inmodule QtLocation
Definition
qgeocodingmanagerengine.h:20
QGeoCodingManagerPrivate
Definition
qgeocodingmanager_p.h:28
QGeoCodingManagerPrivate::QGeoCodingManagerPrivate
QGeoCodingManagerPrivate()=default
QGeoCodingManagerPrivate::engine
std::unique_ptr< QGeoCodingManagerEngine > engine
Definition
qgeocodingmanager_p.h:32
QGeoCodingManager
\inmodule QtLocation
Definition
qgeocodingmanager.h:22
QGeoRectangle
\inmodule QtPositioning
Definition
qgeorectangle.h:15
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
Q_DECLARE_TYPEINFO
Q_DECLARE_TYPEINFO(QByteArrayView, Q_PRIMITIVE_TYPE)
qtpositioning
src
positioning
qgeocircle.h
Generated on
for Qt by
1.18.0