Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 (const QGeoPolygonPrivate &other)
 ~QGeoPolygonPrivate ()
QGeoShapePrivateclone () const override
bool isValid () const override
bool contains (const QGeoCoordinate &coordinate) const override
void translate (double degreesLatitude, double degreesLongitude) override
bool operator== (const QGeoShapePrivate &other) const override
size_t hash (size_t seed) const override
void markDirty () override
qsizetype holesCount () const
bool polygonContains (const QGeoCoordinate &coordinate) const
const QList< QGeoCoordinateholePath (qsizetype index) const
void addHole (const QList< QGeoCoordinate > &holePath)
void removeHole (qsizetype index)
void ensureClipperPathUpdated () const
Public Member Functions inherited from QGeoPathPrivateBase
 QGeoPathPrivateBase ()
 QGeoPathPrivateBase (const QList< QGeoCoordinate > &path)
 QGeoPathPrivateBase (const QGeoPathPrivateBase &other)
 ~QGeoPathPrivateBase () override
bool isEmpty () const override
QGeoCoordinate center () const override
QGeoRectangle boundingGeoRectangle () const override
virtual const QList< QGeoCoordinate > & path () 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 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)
void ensureBoundingBoxUpdated () const
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< QList< QGeoCoordinate > > m_holesList
QClipperUtils m_clipperWrapper
double m_leftBoundWrapped = 0.0
std::atomic< bool > m_clipperDirty = true
Public Attributes inherited from QGeoPathPrivateBase
QList< QGeoCoordinatem_path
QGeoRectangle m_bbox
std::atomic< bool > m_bboxDirty = true
Public Attributes inherited from QGeoShapePrivate
QGeoShape::ShapeType type
Public Attributes inherited from QSharedData
QAtomicInt ref

Detailed Description

Definition at line 25 of file qgeopolygon_p.h.

Constructor & Destructor Documentation

◆ QGeoPolygonPrivate() [1/3]

QGeoPolygonPrivate::QGeoPolygonPrivate ( )

Definition at line 430 of file qgeopolygon.cpp.

◆ QGeoPolygonPrivate() [2/3]

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

Definition at line 436 of file qgeopolygon.cpp.

◆ QGeoPolygonPrivate() [3/3]

QGeoPolygonPrivate::QGeoPolygonPrivate ( const QGeoPolygonPrivate & other)

Definition at line 442 of file qgeopolygon.cpp.

◆ ~QGeoPolygonPrivate()

QGeoPolygonPrivate::~QGeoPolygonPrivate ( )

Definition at line 452 of file qgeopolygon.cpp.

Member Function Documentation

◆ addHole()

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

Definition at line 523 of file qgeopolygon.cpp.

◆ clone()

QGeoShapePrivate * QGeoPolygonPrivate::clone ( ) const
overridevirtual

Implements QGeoShapePrivate.

Reimplemented in QGeoPolygonPrivateEager.

Definition at line 454 of file qgeopolygon.cpp.

◆ contains()

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

Implements QGeoShapePrivate.

Definition at line 464 of file qgeopolygon.cpp.

◆ ensureClipperPathUpdated()

void QGeoPolygonPrivate::ensureClipperPathUpdated ( ) const

Definition at line 581 of file qgeopolygon.cpp.

◆ hash()

size_t QGeoPolygonPrivate::hash ( size_t seed) const
overridevirtual

Reimplemented from QGeoPathPrivateBase.

Definition at line 516 of file qgeopolygon.cpp.

◆ holePath()

const QList< QGeoCoordinate > QGeoPolygonPrivate::holePath ( qsizetype index) const

Definition at line 533 of file qgeopolygon.cpp.

◆ holesCount()

qsizetype QGeoPolygonPrivate::holesCount ( ) const

Definition at line 547 of file qgeopolygon.cpp.

◆ isValid()

bool QGeoPolygonPrivate::isValid ( ) const
overridevirtual

Reimplemented from QGeoPathPrivateBase.

Definition at line 459 of file qgeopolygon.cpp.

◆ markDirty()

void QGeoPolygonPrivate::markDirty ( )
overridevirtual

Reimplemented from QGeoPathPrivateBase.

Reimplemented in QGeoPolygonPrivateEager.

Definition at line 575 of file qgeopolygon.cpp.

◆ operator==()

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

Reimplemented from QGeoPathPrivateBase.

Definition at line 507 of file qgeopolygon.cpp.

◆ polygonContains()

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

Definition at line 552 of file qgeopolygon.cpp.

◆ removeHole()

void QGeoPolygonPrivate::removeHole ( qsizetype index)

Definition at line 538 of file qgeopolygon.cpp.

◆ translate()

void QGeoPolygonPrivate::translate ( double degreesLatitude,
double degreesLongitude )
overridevirtual

Reimplemented from QGeoPathPrivateBase.

Reimplemented in QGeoPolygonPrivateEager.

Definition at line 496 of file qgeopolygon.cpp.

Member Data Documentation

◆ m_clipperDirty

std::atomic<bool> QGeoPolygonPrivate::m_clipperDirty = true
mutable

Definition at line 57 of file qgeopolygon_p.h.

◆ m_clipperWrapper

QClipperUtils QGeoPolygonPrivate::m_clipperWrapper
mutable

Definition at line 55 of file qgeopolygon_p.h.

◆ m_holesList

QList<QList<QGeoCoordinate> > QGeoPolygonPrivate::m_holesList

Definition at line 54 of file qgeopolygon_p.h.

◆ m_leftBoundWrapped

double QGeoPolygonPrivate::m_leftBoundWrapped = 0.0
mutable

Definition at line 56 of file qgeopolygon_p.h.


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