Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QGeoCirclePrivate Class Reference

#include <qgeocircle_p.h>

+ Inheritance diagram for QGeoCirclePrivate:
+ Collaboration diagram for QGeoCirclePrivate:

Public Member Functions

 QGeoCirclePrivate ()
 
 QGeoCirclePrivate (const QGeoCoordinate &center, qreal radius)
 
 QGeoCirclePrivate (const QGeoCirclePrivate &other)
 
 ~QGeoCirclePrivate ()
 
bool isValid () const override
 
bool isEmpty () const override
 
bool contains (const QGeoCoordinate &coordinate) const override
 
QGeoCoordinate center () const override
 
QGeoRectangle boundingGeoRectangle () const override
 
bool crossNorthPole () const
 
bool crossSouthPole () const
 
void updateBoundingBox ()
 
void setCenter (const QGeoCoordinate &c)
 
void setRadius (const qreal r)
 
void extendCircle (const QGeoCoordinate &coordinate)
 
QGeoShapePrivateclone () const override
 
bool operator== (const QGeoShapePrivate &other) const override
 
size_t hash (size_t seed) const override
 
- 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

QGeoCoordinate m_center
 
qreal m_radius
 
QGeoRectangle m_bbox
 
- Public Attributes inherited from QGeoShapePrivate
QGeoShape::ShapeType type
 
- Public Attributes inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Definition at line 23 of file qgeocircle_p.h.

Constructor & Destructor Documentation

◆ QGeoCirclePrivate() [1/3]

QGeoCirclePrivate::QGeoCirclePrivate ( )

Definition at line 389 of file qgeocircle.cpp.

Referenced by clone().

+ Here is the caller graph for this function:

◆ QGeoCirclePrivate() [2/3]

QGeoCirclePrivate::QGeoCirclePrivate ( const QGeoCoordinate & center,
qreal radius )

Definition at line 394 of file qgeocircle.cpp.

References updateBoundingBox().

+ Here is the call graph for this function:

◆ QGeoCirclePrivate() [3/3]

QGeoCirclePrivate::QGeoCirclePrivate ( const QGeoCirclePrivate & other)

Definition at line 400 of file qgeocircle.cpp.

◆ ~QGeoCirclePrivate()

QGeoCirclePrivate::~QGeoCirclePrivate ( )

Definition at line 406 of file qgeocircle.cpp.

Member Function Documentation

◆ boundingGeoRectangle()

QGeoRectangle QGeoCirclePrivate::boundingGeoRectangle ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 193 of file qgeocircle.cpp.

References m_bbox.

◆ center()

QGeoCoordinate QGeoCirclePrivate::center ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 188 of file qgeocircle.cpp.

References m_center.

◆ clone()

QGeoShapePrivate * QGeoCirclePrivate::clone ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 408 of file qgeocircle.cpp.

References QGeoCirclePrivate().

+ Here is the call graph for this function:

◆ contains()

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

Implements QGeoShapePrivate.

Definition at line 175 of file qgeocircle.cpp.

References QGeoCoordinate::distanceTo(), isValid(), QGeoCoordinate::isValid, m_center, m_radius, and qFuzzyCompare().

Referenced by extendCircle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ crossNorthPole()

bool QGeoCirclePrivate::crossNorthPole ( ) const

Definition at line 272 of file qgeocircle.cpp.

References QGeoCoordinate::distanceTo(), QGeoCoordinate::longitude, m_center, and m_radius.

Referenced by updateBoundingBox().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ crossSouthPole()

bool QGeoCirclePrivate::crossSouthPole ( ) const

Definition at line 281 of file qgeocircle.cpp.

References QGeoCoordinate::distanceTo(), QGeoCoordinate::longitude, m_center, and m_radius.

Referenced by updateBoundingBox().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ extendCircle()

void QGeoCirclePrivate::extendCircle ( const QGeoCoordinate & coordinate)

Definition at line 293 of file qgeocircle.cpp.

References contains(), QGeoCoordinate::distanceTo(), isValid(), QGeoCoordinate::isValid, m_center, and setRadius().

+ Here is the call graph for this function:

◆ hash()

size_t QGeoCirclePrivate::hash ( size_t seed) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 423 of file qgeocircle.cpp.

References m_center, m_radius, qHashMulti(), and seed.

+ Here is the call graph for this function:

◆ isEmpty()

bool QGeoCirclePrivate::isEmpty ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 130 of file qgeocircle.cpp.

References isValid(), and m_radius.

Referenced by updateBoundingBox().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isValid()

bool QGeoCirclePrivate::isValid ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 125 of file qgeocircle.cpp.

References QGeoCoordinate::isValid, m_center, m_radius, and qIsNaN().

Referenced by contains(), extendCircle(), and isEmpty().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator==()

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

Reimplemented from QGeoShapePrivate.

Definition at line 413 of file qgeocircle.cpp.

References m_center, m_radius, and other().

+ Here is the call graph for this function:

◆ setCenter()

void QGeoCirclePrivate::setCenter ( const QGeoCoordinate & c)

Definition at line 260 of file qgeocircle.cpp.

References m_center, and updateBoundingBox().

+ Here is the call graph for this function:

◆ setRadius()

void QGeoCirclePrivate::setRadius ( const qreal r)

Definition at line 266 of file qgeocircle.cpp.

References m_radius, and updateBoundingBox().

Referenced by extendCircle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateBoundingBox()

void QGeoCirclePrivate::updateBoundingBox ( )

Definition at line 198 of file qgeocircle.cpp.

References QGeoCoordinate::atDistanceAndAzimuth(), QLocationUtils::clipLat(), crossNorthPole(), crossSouthPole(), QLocationUtils::degrees(), QLocationUtils::earthMeanRadius(), isEmpty(), QGeoCoordinate::isValid, QGeoCoordinate::latitude, QGeoCoordinate::longitude, m_bbox, m_center, m_radius, QLocationUtils::radians(), QGeoRectangle::setBottomRight(), QGeoCoordinate::setLatitude(), QGeoCoordinate::setLongitude(), QGeoRectangle::setTopLeft(), and QLocationUtils::wrapLong().

Referenced by QGeoCirclePrivate(), setCenter(), and setRadius().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_bbox

QGeoRectangle QGeoCirclePrivate::m_bbox

Definition at line 55 of file qgeocircle_p.h.

Referenced by boundingGeoRectangle(), and updateBoundingBox().

◆ m_center

◆ m_radius

qreal QGeoCirclePrivate::m_radius

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