![]() |
Qt 6.x
The Qt SDK
|
#include <qgeorectangle_p.h>
Public Member Functions | |
QGeoRectanglePrivate () | |
QGeoRectanglePrivate (const QGeoCoordinate &topLeft, const QGeoCoordinate &bottomRight) | |
QGeoRectanglePrivate (const QGeoRectanglePrivate &other) | |
~QGeoRectanglePrivate () | |
bool | isValid () const override |
bool | isEmpty () const override |
bool | contains (const QGeoCoordinate &coordinate) const override |
QGeoCoordinate | center () const override |
QGeoRectangle | boundingGeoRectangle () const override |
void | extendRectangle (const QGeoCoordinate &coordinate) |
Extends the rectangle in the smallest possible way to include coordinate in the shape. | |
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 | topLeft |
QGeoCoordinate | bottomRight |
![]() | |
QGeoShape::ShapeType | type |
![]() | |
QAtomicInt | ref |
Definition at line 23 of file qgeorectangle_p.h.
QGeoRectanglePrivate::QGeoRectanglePrivate | ( | ) |
Definition at line 876 of file qgeorectangle.cpp.
Referenced by clone().
QGeoRectanglePrivate::QGeoRectanglePrivate | ( | const QGeoCoordinate & | topLeft, |
const QGeoCoordinate & | bottomRight | ||
) |
Definition at line 881 of file qgeorectangle.cpp.
QGeoRectanglePrivate::QGeoRectanglePrivate | ( | const QGeoRectanglePrivate & | other | ) |
Definition at line 887 of file qgeorectangle.cpp.
QGeoRectanglePrivate::~QGeoRectanglePrivate | ( | ) |
Definition at line 893 of file qgeorectangle.cpp.
|
overridevirtual |
Implements QGeoShapePrivate.
Definition at line 585 of file qgeorectangle.cpp.
References bottomRight, and topLeft.
|
overridevirtual |
Implements QGeoShapePrivate.
Definition at line 570 of file qgeorectangle.cpp.
References bottomRight, isValid(), QGeoCoordinate::latitude, QGeoCoordinate::longitude, topLeft, and QLocationUtils::wrapLong().
|
overridevirtual |
Implements QGeoShapePrivate.
Definition at line 895 of file qgeorectangle.cpp.
References QGeoRectanglePrivate().
|
overridevirtual |
Implements QGeoShapePrivate.
Definition at line 535 of file qgeorectangle.cpp.
References bottomRight, QGeoCoordinate::isValid, isValid(), QGeoCoordinate::latitude, QGeoCoordinate::longitude, and topLeft.
Referenced by extendRectangle().
void QGeoRectanglePrivate::extendRectangle | ( | const QGeoCoordinate & | coordinate | ) |
Extends the rectangle in the smallest possible way to include coordinate in the shape.
Both the rectangle and coordinate needs to be valid. If the rectangle already covers the coordinate noting happens.
Definition at line 748 of file qgeorectangle.cpp.
References bottomRight, contains(), QGeoCoordinate::isValid, isValid(), QGeoCoordinate::latitude, QGeoCoordinate::longitude, qAbs(), qMax(), qMin(), topLeft, and wrap().
Referenced by QGeoRectangle::QGeoRectangle().
|
overridevirtual |
Implements QGeoShapePrivate.
Definition at line 910 of file qgeorectangle.cpp.
References bottomRight, qHashMulti(), seed, and topLeft.
|
overridevirtual |
Implements QGeoShapePrivate.
Definition at line 249 of file qgeorectangle.cpp.
References bottomRight, isValid(), QGeoCoordinate::latitude, QGeoCoordinate::longitude, and topLeft.
|
overridevirtual |
Implements QGeoShapePrivate.
Definition at line 243 of file qgeorectangle.cpp.
References bottomRight, QGeoCoordinate::isValid, QGeoCoordinate::latitude, and topLeft.
Referenced by center(), contains(), extendRectangle(), and isEmpty().
|
overridevirtual |
Reimplemented from QGeoShapePrivate.
Definition at line 900 of file qgeorectangle.cpp.
References bottomRight, other(), and topLeft.
QGeoCoordinate QGeoRectanglePrivate::bottomRight |
Definition at line 48 of file qgeorectangle_p.h.
Referenced by boundingGeoRectangle(), center(), contains(), extendRectangle(), hash(), QGeoRectangle::intersects(), isEmpty(), isValid(), operator==(), and QGeoRectangle::operator|=().
QGeoCoordinate QGeoRectanglePrivate::topLeft |
Definition at line 47 of file qgeorectangle_p.h.
Referenced by boundingGeoRectangle(), center(), contains(), extendRectangle(), hash(), QGeoRectangle::intersects(), isEmpty(), isValid(), operator==(), and QGeoRectangle::operator|=().