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 ()
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 updateClipperPath ()
Public Member Functions inherited from QGeoPathPrivateBase
 QGeoPathPrivateBase ()
 QGeoPathPrivateBase (const QList< QGeoCoordinate > &path)
 ~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)
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 QGeoPathPrivateBase
QList< QGeoCoordinatem_path
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 25 of file qgeopolygon_p.h.

Constructor & Destructor Documentation

◆ QGeoPolygonPrivate() [1/2]

QGeoPolygonPrivate::QGeoPolygonPrivate ( )

Definition at line 424 of file qgeopolygon.cpp.

◆ QGeoPolygonPrivate() [2/2]

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

Definition at line 430 of file qgeopolygon.cpp.

◆ ~QGeoPolygonPrivate()

QGeoPolygonPrivate::~QGeoPolygonPrivate ( )

Definition at line 436 of file qgeopolygon.cpp.

Member Function Documentation

◆ addHole()

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

Definition at line 508 of file qgeopolygon.cpp.

◆ clone()

QGeoShapePrivate * QGeoPolygonPrivate::clone ( ) const
overridevirtual

Implements QGeoShapePrivate.

Reimplemented in QGeoPolygonPrivateEager.

Definition at line 438 of file qgeopolygon.cpp.

◆ contains()

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

Implements QGeoShapePrivate.

Definition at line 448 of file qgeopolygon.cpp.

◆ hash()

size_t QGeoPolygonPrivate::hash ( size_t seed) const
overridevirtual

Reimplemented from QGeoPathPrivateBase.

Definition at line 501 of file qgeopolygon.cpp.

◆ holePath()

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

Definition at line 518 of file qgeopolygon.cpp.

◆ holesCount()

qsizetype QGeoPolygonPrivate::holesCount ( ) const

Definition at line 532 of file qgeopolygon.cpp.

◆ isValid()

bool QGeoPolygonPrivate::isValid ( ) const
overridevirtual

Reimplemented from QGeoPathPrivateBase.

Definition at line 443 of file qgeopolygon.cpp.

◆ markDirty()

void QGeoPolygonPrivate::markDirty ( )
overridevirtual

Reimplemented from QGeoPathPrivateBase.

Reimplemented in QGeoPolygonPrivateEager.

Definition at line 561 of file qgeopolygon.cpp.

◆ operator==()

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

Reimplemented from QGeoPathPrivateBase.

Definition at line 492 of file qgeopolygon.cpp.

◆ polygonContains()

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

Definition at line 537 of file qgeopolygon.cpp.

◆ removeHole()

void QGeoPolygonPrivate::removeHole ( qsizetype index)

Definition at line 523 of file qgeopolygon.cpp.

◆ translate()

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

Reimplemented from QGeoPathPrivateBase.

Reimplemented in QGeoPolygonPrivateEager.

Definition at line 480 of file qgeopolygon.cpp.

◆ updateClipperPath()

void QGeoPolygonPrivate::updateClipperPath ( )

Definition at line 566 of file qgeopolygon.cpp.

Member Data Documentation

◆ m_clipperDirty

bool QGeoPolygonPrivate::m_clipperDirty = true

Definition at line 53 of file qgeopolygon_p.h.

◆ m_clipperWrapper

QClipperUtils QGeoPolygonPrivate::m_clipperWrapper

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.


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