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
QGeoPolygonPrivate Class Reference

#include <qgeopolygon_p.h>

+ Inheritance diagram for QGeoPolygonPrivate:
+ Collaboration diagram for QGeoPolygonPrivate:

Public Member Functions

 QGeoPolygonPrivate ()
 
 QGeoPolygonPrivate (const QList< QGeoCoordinate > &path)
 
 ~QGeoPolygonPrivate ()
 
virtual QGeoShapePrivateclone () 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< QGeoCoordinateholePath (qsizetype index) const
 
virtual void addHole (const QList< QGeoCoordinate > &holePath)
 
virtual void removeHole (qsizetype index)
 
virtual void updateClipperPath ()
 
- Public Member Functions inherited from QGeoPathPrivate
 QGeoPathPrivate ()
 
 QGeoPathPrivate (const QList< QGeoCoordinate > &path, const qreal width=0.0)
 
 ~QGeoPathPrivate ()
 
virtual bool isEmpty () const override
 
virtual QGeoCoordinate center () const override
 
virtual QGeoRectangle boundingGeoRectangle () 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 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 ()
 
- 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

bool m_clipperDirty = true
 
QList< QList< QGeoCoordinate > > m_holesList
 
QClipperUtils m_clipperWrapper
 
- Public Attributes inherited from QGeoPathPrivate
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 24 of file qgeopolygon_p.h.

Constructor & Destructor Documentation

◆ QGeoPolygonPrivate() [1/2]

QGeoPolygonPrivate::QGeoPolygonPrivate ( )

Definition at line 418 of file qgeopolygon.cpp.

References QGeoShape::PolygonType.

Referenced by clone(), and QGeoPolygonPrivateEager::clone().

+ Here is the caller graph for this function:

◆ QGeoPolygonPrivate() [2/2]

QGeoPolygonPrivate::QGeoPolygonPrivate ( const QList< QGeoCoordinate > & path)

Definition at line 424 of file qgeopolygon.cpp.

References QGeoShape::PolygonType.

◆ ~QGeoPolygonPrivate()

QGeoPolygonPrivate::~QGeoPolygonPrivate ( )

Definition at line 430 of file qgeopolygon.cpp.

Member Function Documentation

◆ addHole()

void QGeoPolygonPrivate::addHole ( const QList< QGeoCoordinate > & holePath)
virtual

Definition at line 505 of file qgeopolygon.cpp.

References holePath(), and m_holesList.

+ Here is the call graph for this function:

◆ clone()

QGeoShapePrivate * QGeoPolygonPrivate::clone ( ) const
overridevirtual

Reimplemented from QGeoPathPrivate.

Reimplemented in QGeoPolygonPrivateEager.

Definition at line 432 of file qgeopolygon.cpp.

References QGeoPolygonPrivate().

+ Here is the call graph for this function:

◆ contains()

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

Reimplemented from QGeoPathPrivate.

Definition at line 442 of file qgeopolygon.cpp.

References polygonContains().

+ Here is the call graph for this function:

◆ hash()

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

+ Here is the call graph for this function:

◆ holePath()

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().

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

◆ holesCount()

qsizetype QGeoPolygonPrivate::holesCount ( ) const

Definition at line 529 of file qgeopolygon.cpp.

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

+ Here is the call graph for this function:

◆ isValid()

bool QGeoPolygonPrivate::isValid ( ) const
overridevirtual

Reimplemented from QGeoPathPrivate.

Definition at line 437 of file qgeopolygon.cpp.

References QGeoPathPrivate::path().

+ Here is the call graph for this function:

◆ markDirty()

void QGeoPolygonPrivate::markDirty ( )
overridevirtual

Reimplemented from QGeoPathPrivate.

Reimplemented in QGeoPolygonPrivateEager.

Definition at line 558 of file qgeopolygon.cpp.

References QGeoPathPrivate::m_bboxDirty, and m_clipperDirty.

◆ operator==()

bool QGeoPolygonPrivate::operator== ( const QGeoShapePrivate & other) const
overridevirtual

Reimplemented from QGeoPathPrivate.

Definition at line 486 of file qgeopolygon.cpp.

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

+ Here is the call graph for this function:

◆ polygonContains()

bool QGeoPolygonPrivate::polygonContains ( const QGeoCoordinate & coordinate) const

Definition at line 534 of file qgeopolygon.cpp.

References QWebMercator::coordToMercator(), holePath(), m_clipperDirty, m_clipperWrapper, m_holesList, QGeoPathPrivate::m_leftBoundWrapped, QClipperUtils::pointInPolygon(), QGeoPolygon::setPerimeter(), and updateClipperPath().

Referenced by contains().

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

◆ removeHole()

void QGeoPolygonPrivate::removeHole ( qsizetype index)
virtual

Definition at line 520 of file qgeopolygon.cpp.

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

+ Here is the call graph for this function:

◆ translate()

void QGeoPolygonPrivate::translate ( double degreesLatitude,
double degreesLongitude )
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, and translatePoly().

+ Here is the call graph for this function:

◆ updateClipperPath()

void QGeoPolygonPrivate::updateClipperPath ( )
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, and QClipperUtils::setPolygon().

Referenced by polygonContains().

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

Member Data Documentation

◆ m_clipperDirty

◆ m_clipperWrapper

QClipperUtils QGeoPolygonPrivate::m_clipperWrapper

Definition at line 54 of file qgeopolygon_p.h.

Referenced by polygonContains(), and updateClipperPath().

◆ m_holesList


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