![]() |
Qt 6.x
The Qt SDK
|
#include <qgeopolygon_p.h>
Public Member Functions | |
QGeoPolygonPrivate () | |
QGeoPolygonPrivate (const QList< QGeoCoordinate > &path) | |
~QGeoPolygonPrivate () | |
virtual QGeoShapePrivate * | clone () const override |
virtual bool | isValid () const override |
virtual bool | contains (const QGeoCoordinate &coordinate) const override |
virtual void | translate (double degreesLatitude, double degreesLongitude) override |
virtual bool | operator== (const QGeoShapePrivate &other) const override |
size_t | hash (size_t seed) const override |
virtual void | markDirty () override |
qsizetype | holesCount () const |
bool | polygonContains (const QGeoCoordinate &coordinate) const |
const QList< QGeoCoordinate > | holePath (qsizetype index) const |
virtual void | addHole (const QList< QGeoCoordinate > &holePath) |
virtual void | removeHole (qsizetype index) |
virtual void | updateClipperPath () |
![]() | |
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 | |
bool | m_clipperDirty = true |
QList< QList< QGeoCoordinate > > | m_holesList |
QClipperUtils | m_clipperWrapper |
![]() | |
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 24 of file qgeopolygon_p.h.
QGeoPolygonPrivate::QGeoPolygonPrivate | ( | ) |
Definition at line 418 of file qgeopolygon.cpp.
References QGeoShape::PolygonType.
Referenced by clone(), and QGeoPolygonPrivateEager::clone().
QGeoPolygonPrivate::QGeoPolygonPrivate | ( | const QList< QGeoCoordinate > & | path | ) |
Definition at line 424 of file qgeopolygon.cpp.
References QGeoShape::PolygonType.
QGeoPolygonPrivate::~QGeoPolygonPrivate | ( | ) |
Definition at line 430 of file qgeopolygon.cpp.
|
virtual |
Definition at line 505 of file qgeopolygon.cpp.
References holePath(), and m_holesList.
|
overridevirtual |
Reimplemented from QGeoPathPrivate.
Reimplemented in QGeoPolygonPrivateEager.
Definition at line 432 of file qgeopolygon.cpp.
References QGeoPolygonPrivate().
|
overridevirtual |
Reimplemented from QGeoPathPrivate.
Definition at line 442 of file qgeopolygon.cpp.
References polygonContains().
|
overridevirtual |
Reimplemented from QGeoPathPrivate.
Definition at line 498 of file qgeopolygon.cpp.
References QList< T >::cbegin(), QList< T >::cend(), m_holesList, QGeoPathPrivate::m_path, qHashMulti(), qHashRange(), and seed.
const QList< QGeoCoordinate > QGeoPolygonPrivate::holePath | ( | qsizetype | index | ) | const |
Definition at line 515 of file qgeopolygon.cpp.
References QList< T >::at(), and m_holesList.
Referenced by addHole(), and polygonContains().
qsizetype QGeoPolygonPrivate::holesCount | ( | ) | const |
Definition at line 529 of file qgeopolygon.cpp.
References m_holesList, and QList< T >::size().
|
overridevirtual |
Reimplemented from QGeoPathPrivate.
Definition at line 437 of file qgeopolygon.cpp.
References QGeoPathPrivate::path(), and QList< T >::size().
|
overridevirtual |
Reimplemented from QGeoPathPrivate.
Reimplemented in QGeoPolygonPrivateEager.
Definition at line 558 of file qgeopolygon.cpp.
References QGeoPathPrivate::m_bboxDirty, and m_clipperDirty.
|
overridevirtual |
Reimplemented from QGeoPathPrivate.
Definition at line 486 of file qgeopolygon.cpp.
References m_holesList, QGeoPathPrivate::m_path, other(), and QList< T >::size().
bool QGeoPolygonPrivate::polygonContains | ( | const QGeoCoordinate & | coordinate | ) | const |
Definition at line 534 of file qgeopolygon.cpp.
References QGeoShape::contains(), QWebMercator::coordToMercator(), holePath(), m_clipperDirty, m_clipperWrapper, m_holesList, QGeoPathPrivate::m_leftBoundWrapped, QClipperUtils::pointInPolygon(), QGeoPolygon::setPerimeter(), and updateClipperPath().
Referenced by contains().
Definition at line 520 of file qgeopolygon.cpp.
References m_holesList, QList< T >::removeAt(), and QList< T >::size().
|
overridevirtual |
Reimplemented from QGeoPathPrivate.
Reimplemented in QGeoPolygonPrivateEager.
Definition at line 474 of file qgeopolygon.cpp.
References computeBBox(), QWebMercator::coordToMercator(), QGeoPathPrivate::m_bbox, QGeoPathPrivate::m_bboxDirty, m_clipperDirty, m_holesList, QGeoPathPrivate::m_leftBoundWrapped, QGeoPathPrivate::m_path, QGeoRectangle::topLeft, translatePoly(), and QDoubleVector2D::x().
|
virtual |
Definition at line 563 of file qgeopolygon.cpp.
References QGeoPathPrivate::computeBoundingBox(), QWebMercator::coordToMercator(), QGeoPathPrivate::m_bboxDirty, m_clipperDirty, m_clipperWrapper, QGeoPathPrivate::m_leftBoundWrapped, QGeoPathPrivate::m_path, QClipperUtils::setPolygon(), QDoubleVector2D::setX(), and QDoubleVector2D::x().
Referenced by polygonContains().
bool QGeoPolygonPrivate::m_clipperDirty = true |
Definition at line 52 of file qgeopolygon_p.h.
Referenced by QGeoPolygonPrivateEager::addCoordinate(), markDirty(), QGeoPolygonPrivateEager::markDirty(), polygonContains(), translate(), QGeoPolygonPrivateEager::translate(), and updateClipperPath().
QClipperUtils QGeoPolygonPrivate::m_clipperWrapper |
Definition at line 54 of file qgeopolygon_p.h.
Referenced by polygonContains(), and updateClipperPath().
QList<QList<QGeoCoordinate> > QGeoPolygonPrivate::m_holesList |
Definition at line 53 of file qgeopolygon_p.h.
Referenced by addHole(), hash(), holePath(), holesCount(), operator==(), polygonContains(), removeHole(), translate(), and QGeoPolygonPrivateEager::translate().