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

#include <qgeopath_p.h>

Inheritance diagram for QGeoPathPrivateBase:
Collaboration diagram for QGeoPathPrivateBase:

Public Member Functions

 QGeoPathPrivateBase ()
 QGeoPathPrivateBase (const QList< QGeoCoordinate > &path)
 QGeoPathPrivateBase (const QGeoPathPrivateBase &other)
 ~QGeoPathPrivateBase () override
bool isValid () const override
bool isEmpty () const override
QGeoCoordinate center () const override
bool operator== (const QGeoShapePrivate &other) const override
QGeoRectangle boundingGeoRectangle () const override
size_t hash (size_t seed) 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 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 markDirty ()
void ensureBoundingBoxUpdated () const
Public Member Functions inherited from QGeoShapePrivate
 QGeoShapePrivate (QGeoShape::ShapeType type)
virtual ~QGeoShapePrivate ()
virtual bool contains (const QGeoCoordinate &coordinate) const =0
virtual QGeoShapePrivateclone () const =0
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
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 141 of file qgeopath_p.h.

Constructor & Destructor Documentation

◆ QGeoPathPrivateBase() [1/3]

QGeoPathPrivateBase::QGeoPathPrivateBase ( )

Definition at line 350 of file qgeopath.cpp.

◆ QGeoPathPrivateBase() [2/3]

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

Definition at line 355 of file qgeopath.cpp.

◆ QGeoPathPrivateBase() [3/3]

QGeoPathPrivateBase::QGeoPathPrivateBase ( const QGeoPathPrivateBase & other)

Definition at line 361 of file qgeopath.cpp.

◆ ~QGeoPathPrivateBase()

QGeoPathPrivateBase::~QGeoPathPrivateBase ( )
override

Definition at line 370 of file qgeopath.cpp.

Member Function Documentation

◆ addCoordinate()

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

Reimplemented in QGeoPathPrivateEager, and QGeoPolygonPrivateEager.

Definition at line 486 of file qgeopath.cpp.

◆ boundingGeoRectangle()

QGeoRectangle QGeoPathPrivateBase::boundingGeoRectangle ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 398 of file qgeopath.cpp.

◆ center()

QGeoCoordinate QGeoPathPrivateBase::center ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 384 of file qgeopath.cpp.

◆ clearPath()

void QGeoPathPrivateBase::clearPath ( )
virtual

Definition at line 480 of file qgeopath.cpp.

◆ containsCoordinate()

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

Definition at line 445 of file qgeopath.cpp.

◆ coordinateAt()

QGeoCoordinate QGeoPathPrivateBase::coordinateAt ( qsizetype index) const
virtual

Definition at line 437 of file qgeopath.cpp.

◆ ensureBoundingBoxUpdated()

void QGeoPathPrivateBase::ensureBoundingBoxUpdated ( ) const

Definition at line 529 of file qgeopath.cpp.

◆ hash()

size_t QGeoPathPrivateBase::hash ( size_t seed) const
overridevirtual

Implements QGeoShapePrivate.

Reimplemented in QGeoPolygonPrivate.

Definition at line 404 of file qgeopath.cpp.

◆ insertCoordinate()

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

Definition at line 494 of file qgeopath.cpp.

◆ isEmpty()

bool QGeoPathPrivateBase::isEmpty ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 379 of file qgeopath.cpp.

◆ isValid()

bool QGeoPathPrivateBase::isValid ( ) const
overridevirtual

Implements QGeoShapePrivate.

Reimplemented in QGeoPolygonPrivate.

Definition at line 374 of file qgeopath.cpp.

◆ length()

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

Definition at line 414 of file qgeopath.cpp.

◆ markDirty()

void QGeoPathPrivateBase::markDirty ( )
virtual

Reimplemented in QGeoPathPrivateEager, QGeoPolygonPrivate, and QGeoPolygonPrivateEager.

Definition at line 524 of file qgeopath.cpp.

◆ operator==()

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

Reimplemented from QGeoShapePrivate.

Reimplemented in QGeoPolygonPrivate.

Definition at line 389 of file qgeopath.cpp.

◆ path()

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

Definition at line 409 of file qgeopath.cpp.

◆ removeCoordinate() [1/2]

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

Definition at line 510 of file qgeopath.cpp.

◆ removeCoordinate() [2/2]

void QGeoPathPrivateBase::removeCoordinate ( qsizetype index)
virtual

Definition at line 516 of file qgeopath.cpp.

◆ replaceCoordinate()

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

Definition at line 502 of file qgeopath.cpp.

◆ setPath()

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

Definition at line 470 of file qgeopath.cpp.

◆ size()

qsizetype QGeoPathPrivateBase::size ( ) const
virtual

Definition at line 432 of file qgeopath.cpp.

◆ translate()

void QGeoPathPrivateBase::translate ( double degreesLatitude,
double degreesLongitude )
virtual

Reimplemented in QGeoPathPrivateEager, QGeoPolygonPrivate, and QGeoPolygonPrivateEager.

Definition at line 450 of file qgeopath.cpp.

Member Data Documentation

◆ m_bbox

QGeoRectangle QGeoPathPrivateBase::m_bbox
mutable

Definition at line 177 of file qgeopath_p.h.

◆ m_bboxDirty

std::atomic<bool> QGeoPathPrivateBase::m_bboxDirty = true
mutable

Definition at line 178 of file qgeopath_p.h.

◆ m_path

QList<QGeoCoordinate> QGeoPathPrivateBase::m_path

Definition at line 176 of file qgeopath_p.h.


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