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

Definition at line 511 of file qgeopolygon.cpp.

◆ clone()

QGeoShapePrivate * QGeoPolygonPrivate::clone ( ) const
overridevirtual

Reimplemented from QGeoPathPrivate.

Reimplemented in QGeoPolygonPrivateEager.

Definition at line 438 of file qgeopolygon.cpp.

◆ contains()

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

Reimplemented from QGeoPathPrivate.

Definition at line 448 of file qgeopolygon.cpp.

◆ hash()

size_t QGeoPolygonPrivate::hash ( size_t seed) const
overridevirtual

Reimplemented from QGeoPathPrivate.

Definition at line 504 of file qgeopolygon.cpp.

◆ holePath()

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

Definition at line 521 of file qgeopolygon.cpp.

◆ holesCount()

qsizetype QGeoPolygonPrivate::holesCount ( ) const

Definition at line 535 of file qgeopolygon.cpp.

◆ isValid()

bool QGeoPolygonPrivate::isValid ( ) const
overridevirtual

Reimplemented from QGeoPathPrivate.

Definition at line 443 of file qgeopolygon.cpp.

◆ markDirty()

void QGeoPolygonPrivate::markDirty ( )
overridevirtual

Reimplemented from QGeoPathPrivate.

Reimplemented in QGeoPolygonPrivateEager.

Definition at line 564 of file qgeopolygon.cpp.

◆ operator==()

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

Reimplemented from QGeoPathPrivate.

Definition at line 492 of file qgeopolygon.cpp.

◆ polygonContains()

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

Definition at line 540 of file qgeopolygon.cpp.

◆ removeHole()

void QGeoPolygonPrivate::removeHole ( qsizetype index)
virtual

Definition at line 526 of file qgeopolygon.cpp.

◆ translate()

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

Reimplemented from QGeoPathPrivate.

Reimplemented in QGeoPolygonPrivateEager.

Definition at line 480 of file qgeopolygon.cpp.

◆ updateClipperPath()

void QGeoPolygonPrivate::updateClipperPath ( )
virtual

Definition at line 569 of file qgeopolygon.cpp.

Member Data Documentation

◆ m_clipperDirty

bool QGeoPolygonPrivate::m_clipperDirty = true

Definition at line 52 of file qgeopolygon_p.h.

◆ m_clipperWrapper

QClipperUtils QGeoPolygonPrivate::m_clipperWrapper

Definition at line 54 of file qgeopolygon_p.h.

◆ m_holesList

QList<QList<QGeoCoordinate> > QGeoPolygonPrivate::m_holesList

Definition at line 53 of file qgeopolygon_p.h.


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