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

#include <qgeopath_p.h>

+ Inheritance diagram for QGeoPathPrivate:
+ Collaboration diagram for QGeoPathPrivate:

Public Member Functions

 QGeoPathPrivate ()
 
 QGeoPathPrivate (const QList< QGeoCoordinate > &path, const qreal width=0.0)
 
 ~QGeoPathPrivate ()
 
virtual QGeoShapePrivateclone () const override
 
virtual bool isValid () const override
 
virtual bool isEmpty () const override
 
virtual QGeoCoordinate center () const override
 
virtual bool operator== (const QGeoShapePrivate &other) const override
 
virtual bool contains (const QGeoCoordinate &coordinate) const override
 
virtual QGeoRectangle boundingGeoRectangle () const override
 
size_t hash (size_t seed) 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 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 computeBoundingBox ()
 
virtual void markDirty ()
 
- 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< 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 136 of file qgeopath_p.h.

Constructor & Destructor Documentation

◆ QGeoPathPrivate() [1/2]

QGeoPathPrivate::QGeoPathPrivate ( )

Definition at line 344 of file qgeopath.cpp.

◆ QGeoPathPrivate() [2/2]

QGeoPathPrivate::QGeoPathPrivate ( const QList< QGeoCoordinate > & path,
const qreal width = 0.0 )

Definition at line 350 of file qgeopath.cpp.

◆ ~QGeoPathPrivate()

QGeoPathPrivate::~QGeoPathPrivate ( )

Definition at line 357 of file qgeopath.cpp.

Member Function Documentation

◆ addCoordinate()

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

Reimplemented in QGeoPathPrivateEager, and QGeoPolygonPrivateEager.

Definition at line 569 of file qgeopath.cpp.

◆ boundingGeoRectangle()

QGeoRectangle QGeoPathPrivate::boundingGeoRectangle ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 541 of file qgeopath.cpp.

◆ center()

QGeoCoordinate QGeoPathPrivate::center ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 377 of file qgeopath.cpp.

◆ clearPath()

void QGeoPathPrivate::clearPath ( )
virtual

Definition at line 563 of file qgeopath.cpp.

◆ clone()

QGeoShapePrivate * QGeoPathPrivate::clone ( ) const
overridevirtual

Implements QGeoShapePrivate.

Reimplemented in QGeoPathPrivateEager, QGeoPolygonPrivate, and QGeoPolygonPrivateEager.

Definition at line 362 of file qgeopath.cpp.

◆ computeBoundingBox()

void QGeoPathPrivate::computeBoundingBox ( )
virtual

Reimplemented in QGeoPathPrivateEager, and QGeoPolygonPrivateEager.

Definition at line 612 of file qgeopath.cpp.

◆ contains()

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

Implements QGeoShapePrivate.

Reimplemented in QGeoPolygonPrivate.

Definition at line 468 of file qgeopath.cpp.

◆ containsCoordinate()

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

Definition at line 516 of file qgeopath.cpp.

◆ coordinateAt()

QGeoCoordinate QGeoPathPrivate::coordinateAt ( qsizetype index) const
virtual

Definition at line 508 of file qgeopath.cpp.

◆ hash()

size_t QGeoPathPrivate::hash ( size_t seed) const
overridevirtual

Implements QGeoShapePrivate.

Reimplemented in QGeoPolygonPrivate.

Definition at line 548 of file qgeopath.cpp.

◆ insertCoordinate()

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

Definition at line 577 of file qgeopath.cpp.

◆ isEmpty()

bool QGeoPathPrivate::isEmpty ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 372 of file qgeopath.cpp.

◆ isValid()

bool QGeoPathPrivate::isValid ( ) const
overridevirtual

Implements QGeoShapePrivate.

Reimplemented in QGeoPolygonPrivate.

Definition at line 367 of file qgeopath.cpp.

◆ length()

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

Definition at line 485 of file qgeopath.cpp.

◆ lineContains()

bool QGeoPathPrivate::lineContains ( const QGeoCoordinate & coordinate) const
virtual

Definition at line 398 of file qgeopath.cpp.

◆ markDirty()

void QGeoPathPrivate::markDirty ( )
virtual

Reimplemented in QGeoPathPrivateEager, QGeoPolygonPrivate, and QGeoPolygonPrivateEager.

Definition at line 607 of file qgeopath.cpp.

◆ operator==()

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

Reimplemented from QGeoShapePrivate.

Reimplemented in QGeoPolygonPrivate.

Definition at line 382 of file qgeopath.cpp.

◆ path()

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

Definition at line 393 of file qgeopath.cpp.

◆ removeCoordinate() [1/2]

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

Definition at line 593 of file qgeopath.cpp.

◆ removeCoordinate() [2/2]

void QGeoPathPrivate::removeCoordinate ( qsizetype index)
virtual

Definition at line 599 of file qgeopath.cpp.

◆ replaceCoordinate()

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

Definition at line 585 of file qgeopath.cpp.

◆ setPath()

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

Definition at line 554 of file qgeopath.cpp.

◆ setWidth()

void QGeoPathPrivate::setWidth ( const qreal & width)
virtual

Definition at line 478 of file qgeopath.cpp.

◆ size()

qsizetype QGeoPathPrivate::size ( ) const
virtual

Definition at line 503 of file qgeopath.cpp.

◆ translate()

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

Reimplemented in QGeoPathPrivateEager, QGeoPolygonPrivate, and QGeoPolygonPrivateEager.

Definition at line 521 of file qgeopath.cpp.

◆ width()

qreal QGeoPathPrivate::width ( ) const
virtual

Definition at line 473 of file qgeopath.cpp.

Member Data Documentation

◆ m_bbox

QGeoRectangle QGeoPathPrivate::m_bbox

Definition at line 177 of file qgeopath_p.h.

◆ m_bboxDirty

bool QGeoPathPrivate::m_bboxDirty = false

Definition at line 179 of file qgeopath_p.h.

◆ m_leftBoundWrapped

double QGeoPathPrivate::m_leftBoundWrapped

Definition at line 178 of file qgeopath_p.h.

◆ m_path

QList<QGeoCoordinate> QGeoPathPrivate::m_path

Definition at line 175 of file qgeopath_p.h.

◆ m_width

qreal QGeoPathPrivate::m_width = 0

Definition at line 176 of file qgeopath_p.h.


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