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
qgeoshape_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 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
4#ifndef QGEOSHAPE_P_H
5#define QGEOSHAPE_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 <QtCore/QSharedData>
19
20#include "qgeorectangle.h"
21#include "private/qglobal_p.h"
22
24
26{
27public:
29 virtual ~QGeoShapePrivate();
30
31 virtual bool isValid() const = 0;
32 virtual bool isEmpty() const = 0;
33 virtual bool contains(const QGeoCoordinate &coordinate) const = 0;
34
35 virtual QGeoCoordinate center() const = 0;
36
38
39 virtual QGeoShapePrivate *clone() const = 0;
40
41 virtual bool operator==(const QGeoShapePrivate &other) const;
42
43 virtual size_t hash(size_t seed) const = 0;
44
46};
47
48// don't use the copy constructor when detaching from a QSharedDataPointer, use virtual clone()
49// call instead.
50template <>
52{
53 return d->clone();
54}
55
57
58#endif
\inmodule QtPositioning
\inmodule QtPositioning
virtual QGeoShapePrivate * clone() const =0
virtual bool operator==(const QGeoShapePrivate &other) const
Definition qgeoshape.cpp:33
virtual ~QGeoShapePrivate()
Definition qgeoshape.cpp:29
virtual QGeoCoordinate center() const =0
virtual size_t hash(size_t seed) const =0
virtual QGeoRectangle boundingGeoRectangle() const =0
virtual bool isValid() const =0
QGeoShapePrivate(QGeoShape::ShapeType type)
Definition qgeoshape.cpp:24
QGeoShape::ShapeType type
Definition qgeoshape_p.h:45
virtual bool isEmpty() const =0
virtual bool contains(const QGeoCoordinate &coordinate) const =0
ShapeType
Describes the type of the shape.
Definition qgeoshape.h:30
\inmodule QtCore
Definition qshareddata.h:19
Combined button and popup list for selecting options.
GLenum type
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
Definition qrandom.cpp:196
QSharedPointer< T > other(t)
[5]