![]() |
Qt 6.x
The Qt SDK
|
#include <qgeopath_p.h>
Public Member Functions | |
QGeoPathPrivateEager () | |
QGeoPathPrivateEager (const QList< QGeoCoordinate > &path, const qreal width=0.0) | |
~QGeoPathPrivateEager () | |
virtual QGeoShapePrivate * | clone () const override |
virtual void | translate (double degreesLatitude, double degreesLongitude) override |
virtual void | markDirty () override |
virtual void | addCoordinate (const QGeoCoordinate &coordinate) override |
virtual void | computeBoundingBox () override |
void | updateBoundingBox () |
![]() | |
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< double > | m_deltaXs |
double | m_minX = 0 |
double | m_maxX = 0 |
double | m_minLati = 0 |
double | m_maxLati = 0 |
![]() | |
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 182 of file qgeopath_p.h.
QGeoPathPrivateEager::QGeoPathPrivateEager | ( | ) |
Definition at line 621 of file qgeopath.cpp.
References QGeoPathPrivate::m_bboxDirty.
Referenced by clone().
QGeoPathPrivateEager::QGeoPathPrivateEager | ( | const QList< QGeoCoordinate > & | path, |
const qreal | width = 0.0 |
||
) |
Definition at line 627 of file qgeopath.cpp.
References QGeoPathPrivate::m_bboxDirty.
QGeoPathPrivateEager::~QGeoPathPrivateEager | ( | ) |
Definition at line 633 of file qgeopath.cpp.
|
overridevirtual |
Reimplemented from QGeoPathPrivate.
Definition at line 664 of file qgeopath.cpp.
References QList< T >::append(), QGeoCoordinate::isValid, QGeoPathPrivate::m_path, and updateBoundingBox().
|
overridevirtual |
Reimplemented from QGeoPathPrivate.
Definition at line 638 of file qgeopath.cpp.
References QGeoPathPrivateEager().
|
overridevirtual |
Reimplemented from QGeoPathPrivate.
Referenced by markDirty().
|
overridevirtual |
Reimplemented from QGeoPathPrivate.
Definition at line 643 of file qgeopath.cpp.
References computeBoundingBox().
|
overridevirtual |
Reimplemented from QGeoPathPrivate.
Definition at line 648 of file qgeopath.cpp.
References QWebMercator::coordToMercator(), QGeoPathPrivate::m_bbox, QGeoPathPrivate::m_leftBoundWrapped, m_maxLati, m_minLati, QGeoPathPrivate::m_path, qMax(), qMin(), QGeoRectangle::topLeft, QGeoRectangle::translate(), QLocationUtils::wrapLong(), and QDoubleVector2D::x().
void QGeoPathPrivateEager::updateBoundingBox | ( | ) |
QList<double> QGeoPathPrivateEager::m_deltaXs |
Definition at line 202 of file qgeopath_p.h.
double QGeoPathPrivateEager::m_maxLati = 0 |
Definition at line 206 of file qgeopath_p.h.
Referenced by translate().
double QGeoPathPrivateEager::m_maxX = 0 |
Definition at line 204 of file qgeopath_p.h.
double QGeoPathPrivateEager::m_minLati = 0 |
Definition at line 205 of file qgeopath_p.h.
Referenced by translate().
double QGeoPathPrivateEager::m_minX = 0 |
Definition at line 203 of file qgeopath_p.h.