![]() |
Qt 6.x
The Qt SDK
|
#include <qgeocircle_p.h>
Public Member Functions | |
QGeoCirclePrivate () | |
QGeoCirclePrivate (const QGeoCoordinate ¢er, qreal radius) | |
QGeoCirclePrivate (const QGeoCirclePrivate &other) | |
~QGeoCirclePrivate () | |
bool | isValid () const override |
bool | isEmpty () const override |
bool | contains (const QGeoCoordinate &coordinate) const override |
QGeoCoordinate | center () const override |
QGeoRectangle | boundingGeoRectangle () const override |
bool | crossNorthPole () const |
bool | crossSouthPole () const |
void | updateBoundingBox () |
void | setCenter (const QGeoCoordinate &c) |
void | setRadius (const qreal r) |
void | extendCircle (const QGeoCoordinate &coordinate) |
QGeoShapePrivate * | clone () const override |
bool | operator== (const QGeoShapePrivate &other) const override |
size_t | hash (size_t seed) const override |
![]() | |
QGeoShapePrivate (QGeoShape::ShapeType type) | |
virtual | ~QGeoShapePrivate () |
virtual bool | isValid () const =0 |
virtual bool | isEmpty () const =0 |
virtual bool | contains (const QGeoCoordinate &coordinate) const =0 |
virtual QGeoCoordinate | center () const =0 |
virtual QGeoRectangle | boundingGeoRectangle () const =0 |
virtual QGeoShapePrivate * | clone () const =0 |
virtual bool | operator== (const QGeoShapePrivate &other) const |
virtual size_t | hash (size_t seed) const =0 |
![]() | |
QSharedData () noexcept | |
Constructs a QSharedData object with a reference count of 0. | |
QSharedData (const QSharedData &) noexcept | |
Constructs a QSharedData object with reference count 0. | |
QSharedData & | operator= (const QSharedData &)=delete |
~QSharedData ()=default | |
Public Attributes | |
QGeoCoordinate | m_center |
qreal | m_radius |
QGeoRectangle | m_bbox |
![]() | |
QGeoShape::ShapeType | type |
![]() | |
QAtomicInt | ref |
Definition at line 23 of file qgeocircle_p.h.
QGeoCirclePrivate::QGeoCirclePrivate | ( | ) |
Definition at line 389 of file qgeocircle.cpp.
Referenced by clone().
QGeoCirclePrivate::QGeoCirclePrivate | ( | const QGeoCoordinate & | center, |
qreal | radius | ||
) |
Definition at line 394 of file qgeocircle.cpp.
References updateBoundingBox().
QGeoCirclePrivate::QGeoCirclePrivate | ( | const QGeoCirclePrivate & | other | ) |
Definition at line 400 of file qgeocircle.cpp.
QGeoCirclePrivate::~QGeoCirclePrivate | ( | ) |
Definition at line 406 of file qgeocircle.cpp.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Implements QGeoShapePrivate.
Definition at line 408 of file qgeocircle.cpp.
References QGeoCirclePrivate().
|
overridevirtual |
Implements QGeoShapePrivate.
Definition at line 175 of file qgeocircle.cpp.
References QGeoCoordinate::distanceTo(), isValid(), QGeoCoordinate::isValid, m_center, m_radius, and qFuzzyCompare().
Referenced by extendCircle().
bool QGeoCirclePrivate::crossNorthPole | ( | ) | const |
Definition at line 272 of file qgeocircle.cpp.
References QGeoCoordinate::distanceTo(), QGeoCoordinate::longitude, m_center, and m_radius.
Referenced by updateBoundingBox().
bool QGeoCirclePrivate::crossSouthPole | ( | ) | const |
Definition at line 281 of file qgeocircle.cpp.
References QGeoCoordinate::distanceTo(), QGeoCoordinate::longitude, m_center, and m_radius.
Referenced by updateBoundingBox().
void QGeoCirclePrivate::extendCircle | ( | const QGeoCoordinate & | coordinate | ) |
Definition at line 293 of file qgeocircle.cpp.
References contains(), QGeoCoordinate::distanceTo(), isValid(), QGeoCoordinate::isValid, m_center, and setRadius().
|
overridevirtual |
Implements QGeoShapePrivate.
Definition at line 423 of file qgeocircle.cpp.
References m_center, m_radius, qHashMulti(), and seed.
|
overridevirtual |
Implements QGeoShapePrivate.
Definition at line 130 of file qgeocircle.cpp.
References e, isValid(), and m_radius.
Referenced by updateBoundingBox().
|
overridevirtual |
Implements QGeoShapePrivate.
Definition at line 125 of file qgeocircle.cpp.
References e, QGeoCoordinate::isValid, m_center, m_radius, and qIsNaN().
Referenced by contains(), extendCircle(), and isEmpty().
|
overridevirtual |
Reimplemented from QGeoShapePrivate.
Definition at line 413 of file qgeocircle.cpp.
References m_center, m_radius, and other().
void QGeoCirclePrivate::setCenter | ( | const QGeoCoordinate & | c | ) |
Definition at line 260 of file qgeocircle.cpp.
References m_center, and updateBoundingBox().
Definition at line 266 of file qgeocircle.cpp.
References m_radius, and updateBoundingBox().
Referenced by extendCircle().
void QGeoCirclePrivate::updateBoundingBox | ( | ) |
Definition at line 198 of file qgeocircle.cpp.
References QGeoCoordinate::atDistanceAndAzimuth(), QLocationUtils::clipLat(), crossNorthPole(), crossSouthPole(), QLocationUtils::degrees(), QLocationUtils::earthMeanRadius(), isEmpty(), QGeoCoordinate::isValid, QGeoCoordinate::latitude, QGeoCoordinate::longitude, m_bbox, m_center, m_radius, QLocationUtils::radians(), QGeoRectangle::setBottomRight(), QGeoCoordinate::setLatitude(), QGeoCoordinate::setLongitude(), QGeoRectangle::setTopLeft(), and QLocationUtils::wrapLong().
Referenced by QGeoCirclePrivate(), setCenter(), and setRadius().
QGeoRectangle QGeoCirclePrivate::m_bbox |
Definition at line 55 of file qgeocircle_p.h.
Referenced by boundingGeoRectangle(), and updateBoundingBox().
QGeoCoordinate QGeoCirclePrivate::m_center |
Definition at line 53 of file qgeocircle_p.h.
Referenced by center(), contains(), crossNorthPole(), crossSouthPole(), extendCircle(), hash(), isValid(), operator==(), setCenter(), and updateBoundingBox().
qreal QGeoCirclePrivate::m_radius |
Definition at line 54 of file qgeocircle_p.h.
Referenced by contains(), crossNorthPole(), crossSouthPole(), hash(), isEmpty(), isValid(), operator==(), setRadius(), and updateBoundingBox().