Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QGeoPathPrivate Class Reference

#include <qgeopath_p.h>

+ Inheritance diagram for QGeoPathPrivate:
+ Collaboration diagram for QGeoPathPrivate:

Public Member Functions

 QGeoPathPrivate ()
 
 QGeoPathPrivate (const QList< QGeoCoordinate > &path, const qreal width=0.0)
 
 ~QGeoPathPrivate ()
 
virtual QGeoShapePrivateclone () 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 ()
 
- Public Member Functions inherited from QGeoShapePrivate
 QGeoShapePrivate (QGeoShape::ShapeType type)
 
virtual ~QGeoShapePrivate ()
 
- Public Member Functions inherited from QSharedData
 QSharedData () noexcept
 Constructs a QSharedData object with a reference count of 0.
 
 QSharedData (const QSharedData &) noexcept
 Constructs a QSharedData object with reference count 0.
 
QSharedDataoperator= (const QSharedData &)=delete
 
 ~QSharedData ()=default
 

Public Attributes

QList< QGeoCoordinatem_path
 
qreal m_width = 0
 
QGeoRectangle m_bbox
 
double m_leftBoundWrapped
 
bool m_bboxDirty = false
 
- Public Attributes inherited from QGeoShapePrivate
QGeoShape::ShapeType type
 
- Public Attributes inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Definition at line 136 of file qgeopath_p.h.

Constructor & Destructor Documentation

◆ QGeoPathPrivate() [1/2]

QGeoPathPrivate::QGeoPathPrivate ( )

Definition at line 344 of file qgeopath.cpp.

Referenced by clone().

+ Here is the caller graph for this function:

◆ QGeoPathPrivate() [2/2]

QGeoPathPrivate::QGeoPathPrivate ( const QList< QGeoCoordinate > & path,
const qreal width = 0.0 )

Definition at line 350 of file qgeopath.cpp.

References setPath(), and setWidth().

+ Here is the call graph for this function:

◆ ~QGeoPathPrivate()

QGeoPathPrivate::~QGeoPathPrivate ( )

Definition at line 357 of file qgeopath.cpp.

Member Function Documentation

◆ addCoordinate()

void QGeoPathPrivate::addCoordinate ( const QGeoCoordinate & coordinate)
virtual

Reimplemented in QGeoPathPrivateEager, and QGeoPolygonPrivateEager.

Definition at line 569 of file qgeopath.cpp.

References QList< T >::append(), QGeoCoordinate::isValid, m_path, and markDirty().

+ Here is the call graph for this function:

◆ boundingGeoRectangle()

QGeoRectangle QGeoPathPrivate::boundingGeoRectangle ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 541 of file qgeopath.cpp.

References computeBoundingBox(), m_bbox, and m_bboxDirty.

Referenced by center().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ center()

QGeoCoordinate QGeoPathPrivate::center ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 377 of file qgeopath.cpp.

References boundingGeoRectangle().

+ Here is the call graph for this function:

◆ clearPath()

void QGeoPathPrivate::clearPath ( )
virtual

Definition at line 563 of file qgeopath.cpp.

References QList< T >::clear(), m_path, and markDirty().

+ Here is the call graph for this function:

◆ clone()

QGeoShapePrivate * QGeoPathPrivate::clone ( ) const
overridevirtual

Implements QGeoShapePrivate.

Reimplemented in QGeoPathPrivateEager, QGeoPolygonPrivate, and QGeoPolygonPrivateEager.

Definition at line 362 of file qgeopath.cpp.

References QGeoPathPrivate().

+ Here is the call graph for this function:

◆ computeBoundingBox()

void QGeoPathPrivate::computeBoundingBox ( )
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, and QGeoRectangle::topLeft.

Referenced by boundingGeoRectangle(), lineContains(), and QGeoPolygonPrivate::updateClipperPath().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ contains()

bool QGeoPathPrivate::contains ( const QGeoCoordinate & coordinate) const
overridevirtual

Implements QGeoShapePrivate.

Reimplemented in QGeoPolygonPrivate.

Definition at line 468 of file qgeopath.cpp.

References lineContains().

+ Here is the call graph for this function:

◆ containsCoordinate()

bool QGeoPathPrivate::containsCoordinate ( const QGeoCoordinate & coordinate) const
virtual

Definition at line 516 of file qgeopath.cpp.

References QListSpecialMethodsBase< T >::indexOf(), and m_path.

+ Here is the call graph for this function:

◆ coordinateAt()

QGeoCoordinate QGeoPathPrivate::coordinateAt ( qsizetype index) const
virtual

Definition at line 508 of file qgeopath.cpp.

References QList< T >::at(), m_path, and QList< T >::size().

+ Here is the call graph for this function:

◆ hash()

size_t QGeoPathPrivate::hash ( size_t seed) const
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.

+ Here is the call graph for this function:

◆ insertCoordinate()

void QGeoPathPrivate::insertCoordinate ( qsizetype index,
const QGeoCoordinate & coordinate )
virtual

Definition at line 577 of file qgeopath.cpp.

References QList< T >::insert(), QGeoCoordinate::isValid, m_path, markDirty(), and QList< T >::size().

+ Here is the call graph for this function:

◆ isEmpty()

bool QGeoPathPrivate::isEmpty ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 372 of file qgeopath.cpp.

References path().

Referenced by isValid(), and length().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isValid()

bool QGeoPathPrivate::isValid ( ) const
overridevirtual

Implements QGeoShapePrivate.

Reimplemented in QGeoPolygonPrivate.

Definition at line 367 of file qgeopath.cpp.

References isEmpty().

+ Here is the call graph for this function:

◆ length()

double QGeoPathPrivate::length ( qsizetype indexFrom,
qsizetype indexTo ) const
virtual

Definition at line 485 of file qgeopath.cpp.

References QGeoCoordinate::distanceTo(), QList< T >::first(), i, isEmpty(), QList< T >::last(), m_path, path(), size(), and wrap().

+ Here is the call graph for this function:

◆ lineContains()

bool QGeoPathPrivate::lineContains ( const QGeoCoordinate & coordinate) const
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ markDirty()

void QGeoPathPrivate::markDirty ( )
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().

+ Here is the caller graph for this function:

◆ operator==()

bool QGeoPathPrivate::operator== ( const QGeoShapePrivate & other) const
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().

+ Here is the call graph for this function:

◆ path()

const QList< QGeoCoordinate > & QGeoPathPrivate::path ( ) const
virtual

Definition at line 393 of file qgeopath.cpp.

References m_path.

Referenced by isEmpty(), QGeoPolygonPrivate::isValid(), length(), and setPath().

+ Here is the caller graph for this function:

◆ removeCoordinate() [1/2]

void QGeoPathPrivate::removeCoordinate ( const QGeoCoordinate & coordinate)
virtual

Definition at line 593 of file qgeopath.cpp.

References QListSpecialMethodsBase< T >::lastIndexOf(), m_path, and removeCoordinate().

Referenced by removeCoordinate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeCoordinate() [2/2]

void QGeoPathPrivate::removeCoordinate ( qsizetype index)
virtual

Definition at line 599 of file qgeopath.cpp.

References m_path, markDirty(), QList< T >::removeAt(), and QList< T >::size().

+ Here is the call graph for this function:

◆ replaceCoordinate()

void QGeoPathPrivate::replaceCoordinate ( qsizetype index,
const QGeoCoordinate & coordinate )
virtual

Definition at line 585 of file qgeopath.cpp.

References QGeoCoordinate::isValid, m_path, markDirty(), and QList< T >::size().

+ Here is the call graph for this function:

◆ setPath()

void QGeoPathPrivate::setPath ( const QList< QGeoCoordinate > & path)
virtual

Definition at line 554 of file qgeopath.cpp.

References m_path, markDirty(), and path().

Referenced by QGeoPathPrivate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWidth()

void QGeoPathPrivate::setWidth ( const qreal & width)
virtual

Definition at line 478 of file qgeopath.cpp.

References m_width, qIsNaN(), and width().

Referenced by QGeoPathPrivate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ size()

qsizetype QGeoPathPrivate::size ( ) const
virtual

Definition at line 503 of file qgeopath.cpp.

References m_path, and QList< T >::size().

Referenced by length().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ translate()

void QGeoPathPrivate::translate ( double degreesLatitude,
double degreesLongitude )
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(), and QLocationUtils::wrapLong().

+ Here is the call graph for this function:

◆ width()

qreal QGeoPathPrivate::width ( ) const
virtual

Definition at line 473 of file qgeopath.cpp.

References m_width.

Referenced by lineContains(), and setWidth().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_bbox

◆ m_bboxDirty

◆ m_leftBoundWrapped

◆ m_path

◆ m_width

qreal QGeoPathPrivate::m_width = 0

Definition at line 176 of file qgeopath_p.h.

Referenced by hash(), operator==(), setWidth(), and width().


The documentation for this class was generated from the following files: