![]() |
Qt 6.x
The Qt SDK
|
#include <qgeopath_p.h>
Public Member Functions | |
QGeoPathPrivate () | |
QGeoPathPrivate (const QList< QGeoCoordinate > &path, const qreal width=0.0) | |
~QGeoPathPrivate () | |
virtual QGeoShapePrivate * | clone () const override |
virtual bool | isValid () const override |
virtual bool | isEmpty () const override |
virtual QGeoCoordinate | center () const override |
virtual bool | operator== (const QGeoShapePrivate &other) const override |
virtual bool | contains (const QGeoCoordinate &coordinate) const override |
virtual QGeoRectangle | boundingGeoRectangle () const override |
size_t | hash (size_t seed) const override |
virtual const QList< QGeoCoordinate > & | path () const |
virtual bool | lineContains (const QGeoCoordinate &coordinate) const |
virtual qreal | width () const |
virtual double | length (qsizetype indexFrom, qsizetype indexTo) const |
virtual qsizetype | size () const |
virtual QGeoCoordinate | coordinateAt (qsizetype index) const |
virtual bool | containsCoordinate (const QGeoCoordinate &coordinate) const |
virtual void | setWidth (const qreal &width) |
virtual void | translate (double degreesLatitude, double degreesLongitude) |
virtual void | setPath (const QList< QGeoCoordinate > &path) |
virtual void | clearPath () |
virtual void | addCoordinate (const QGeoCoordinate &coordinate) |
virtual void | insertCoordinate (qsizetype index, const QGeoCoordinate &coordinate) |
virtual void | replaceCoordinate (qsizetype index, const QGeoCoordinate &coordinate) |
virtual void | removeCoordinate (const QGeoCoordinate &coordinate) |
virtual void | removeCoordinate (qsizetype index) |
virtual void | computeBoundingBox () |
virtual void | markDirty () |
![]() | |
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 | |
QList< QGeoCoordinate > | m_path |
qreal | m_width = 0 |
QGeoRectangle | m_bbox |
double | m_leftBoundWrapped |
bool | m_bboxDirty = false |
![]() | |
QGeoShape::ShapeType | type |
![]() | |
QAtomicInt | ref |
Definition at line 136 of file qgeopath_p.h.
QGeoPathPrivate::QGeoPathPrivate | ( | ) |
Definition at line 344 of file qgeopath.cpp.
Referenced by clone().
QGeoPathPrivate::QGeoPathPrivate | ( | const QList< QGeoCoordinate > & | path, |
const qreal | width = 0.0 |
||
) |
Definition at line 350 of file qgeopath.cpp.
References setPath(), and setWidth().
QGeoPathPrivate::~QGeoPathPrivate | ( | ) |
Definition at line 357 of file qgeopath.cpp.
|
virtual |
Reimplemented in QGeoPathPrivateEager, and QGeoPolygonPrivateEager.
Definition at line 569 of file qgeopath.cpp.
References QList< T >::append(), QGeoCoordinate::isValid, m_path, and markDirty().
|
overridevirtual |
Implements QGeoShapePrivate.
Definition at line 541 of file qgeopath.cpp.
References computeBoundingBox(), m_bbox, and m_bboxDirty.
Referenced by center().
|
overridevirtual |
Implements QGeoShapePrivate.
Definition at line 377 of file qgeopath.cpp.
References boundingGeoRectangle(), and QGeoRectangle::center.
|
virtual |
Definition at line 563 of file qgeopath.cpp.
References QList< T >::clear(), m_path, and markDirty().
|
overridevirtual |
Implements QGeoShapePrivate.
Reimplemented in QGeoPathPrivateEager, QGeoPolygonPrivate, and QGeoPolygonPrivateEager.
Definition at line 362 of file qgeopath.cpp.
References QGeoPathPrivate().
|
virtual |
Reimplemented in QGeoPathPrivateEager, and QGeoPolygonPrivateEager.
Definition at line 612 of file qgeopath.cpp.
References computeBBox(), QWebMercator::coordToMercator(), m_bbox, m_bboxDirty, m_leftBoundWrapped, m_path, QGeoRectangle::topLeft, and QDoubleVector2D::x().
Referenced by boundingGeoRectangle(), lineContains(), and QGeoPolygonPrivate::updateClipperPath().
|
overridevirtual |
Implements QGeoShapePrivate.
Reimplemented in QGeoPolygonPrivate.
Definition at line 468 of file qgeopath.cpp.
References lineContains().
|
virtual |
Definition at line 516 of file qgeopath.cpp.
References QListSpecialMethodsBase< T >::indexOf(), and m_path.
|
virtual |
Definition at line 508 of file qgeopath.cpp.
References QList< T >::at(), m_path, and QList< T >::size().
|
overridevirtual |
Implements QGeoShapePrivate.
Reimplemented in QGeoPolygonPrivate.
Definition at line 548 of file qgeopath.cpp.
References QList< T >::cbegin(), QList< T >::cend(), m_path, m_width, qHashMulti(), qHashRange(), and seed.
|
virtual |
Definition at line 577 of file qgeopath.cpp.
References QList< T >::insert(), QGeoCoordinate::isValid, m_path, markDirty(), and QList< T >::size().
|
overridevirtual |
Implements QGeoShapePrivate.
Definition at line 372 of file qgeopath.cpp.
References QList< T >::isEmpty(), and path().
Referenced by isValid(), and length().
|
overridevirtual |
Implements QGeoShapePrivate.
Reimplemented in QGeoPolygonPrivate.
Definition at line 367 of file qgeopath.cpp.
References isEmpty().
Definition at line 485 of file qgeopath.cpp.
References QGeoCoordinate::distanceTo(), QList< T >::first(), i, isEmpty(), QList< T >::last(), m_path, path(), size(), QList< T >::size(), and wrap().
|
virtual |
Definition at line 398 of file qgeopath.cpp.
References computeBoundingBox(), QWebMercator::coordToMercator(), QGeoCoordinate::distanceTo(), i, QList< T >::isEmpty(), m_bboxDirty, m_leftBoundWrapped, m_path, QWebMercator::mercatorToCoord(), qMax(), QDoubleVector2D::setX(), QList< T >::size(), width(), and QDoubleVector2D::x().
Referenced by contains().
|
virtual |
Reimplemented in QGeoPathPrivateEager, QGeoPolygonPrivate, and QGeoPolygonPrivateEager.
Definition at line 607 of file qgeopath.cpp.
References m_bboxDirty.
Referenced by addCoordinate(), clearPath(), insertCoordinate(), removeCoordinate(), replaceCoordinate(), and setPath().
|
overridevirtual |
Reimplemented from QGeoShapePrivate.
Reimplemented in QGeoPolygonPrivate.
Definition at line 382 of file qgeopath.cpp.
References m_path, m_width, other(), and QList< T >::size().
|
virtual |
Definition at line 393 of file qgeopath.cpp.
References m_path.
Referenced by isEmpty(), QGeoPolygonPrivate::isValid(), length(), and setPath().
|
virtual |
Definition at line 593 of file qgeopath.cpp.
References QListSpecialMethodsBase< T >::lastIndexOf(), m_path, and removeCoordinate().
Referenced by removeCoordinate().
Definition at line 599 of file qgeopath.cpp.
References m_path, markDirty(), QList< T >::removeAt(), and QList< T >::size().
|
virtual |
Definition at line 585 of file qgeopath.cpp.
References QGeoCoordinate::isValid, m_path, markDirty(), and QList< T >::size().
|
virtual |
Definition at line 554 of file qgeopath.cpp.
References m_path, markDirty(), and path().
Referenced by QGeoPathPrivate(), and QGeoPolygon::QGeoPolygon().
Definition at line 478 of file qgeopath.cpp.
References m_width, qIsNaN(), and width().
Referenced by QGeoPathPrivate().
|
virtual |
Definition at line 503 of file qgeopath.cpp.
References m_path, and QList< T >::size().
Referenced by length().
|
virtual |
Reimplemented in QGeoPathPrivateEager, QGeoPolygonPrivate, and QGeoPolygonPrivateEager.
Definition at line 521 of file qgeopath.cpp.
References computeBBox(), QWebMercator::coordToMercator(), m_bbox, m_bboxDirty, m_leftBoundWrapped, m_path, qMax(), qMin(), QGeoRectangle::topLeft, QGeoRectangle::translate(), QLocationUtils::wrapLong(), and QDoubleVector2D::x().
|
virtual |
Definition at line 473 of file qgeopath.cpp.
References m_width.
Referenced by lineContains(), and setWidth().
QGeoRectangle QGeoPathPrivate::m_bbox |
Definition at line 177 of file qgeopath_p.h.
Referenced by boundingGeoRectangle(), computeBoundingBox(), QGeoPolygonPrivateEager::computeBoundingBox(), translate(), QGeoPathPrivateEager::translate(), QGeoPolygonPrivate::translate(), QGeoPolygonPrivateEager::translate(), and QGeoPolygonPrivateEager::updateBoundingBox().
bool QGeoPathPrivate::m_bboxDirty = false |
Definition at line 179 of file qgeopath_p.h.
Referenced by QGeoPathPrivateEager::QGeoPathPrivateEager(), QGeoPathPrivateEager::QGeoPathPrivateEager(), QGeoPolygonPrivateEager::QGeoPolygonPrivateEager(), QGeoPolygonPrivateEager::QGeoPolygonPrivateEager(), boundingGeoRectangle(), computeBoundingBox(), lineContains(), markDirty(), QGeoPolygonPrivate::markDirty(), translate(), QGeoPolygonPrivate::translate(), and QGeoPolygonPrivate::updateClipperPath().
double QGeoPathPrivate::m_leftBoundWrapped |
Definition at line 178 of file qgeopath_p.h.
Referenced by computeBoundingBox(), QGeoPolygonPrivateEager::computeBoundingBox(), lineContains(), QGeoPolygonPrivate::polygonContains(), translate(), QGeoPathPrivateEager::translate(), QGeoPolygonPrivate::translate(), QGeoPolygonPrivateEager::translate(), and QGeoPolygonPrivate::updateClipperPath().
QList<QGeoCoordinate> QGeoPathPrivate::m_path |
Definition at line 175 of file qgeopath_p.h.
Referenced by addCoordinate(), QGeoPathPrivateEager::addCoordinate(), QGeoPolygonPrivateEager::addCoordinate(), clearPath(), computeBoundingBox(), QGeoPolygonPrivateEager::computeBoundingBox(), containsCoordinate(), coordinateAt(), hash(), QGeoPolygonPrivate::hash(), insertCoordinate(), length(), lineContains(), operator==(), QGeoPolygonPrivate::operator==(), path(), removeCoordinate(), removeCoordinate(), replaceCoordinate(), setPath(), size(), translate(), QGeoPathPrivateEager::translate(), QGeoPolygonPrivate::translate(), QGeoPolygonPrivateEager::translate(), QGeoPolygonPrivateEager::updateBoundingBox(), and QGeoPolygonPrivate::updateClipperPath().
qreal QGeoPathPrivate::m_width = 0 |
Definition at line 176 of file qgeopath_p.h.
Referenced by hash(), operator==(), setWidth(), and width().