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

#include <qgeorectangle_p.h>

+ Inheritance diagram for QGeoRectanglePrivate:
+ Collaboration diagram for QGeoRectanglePrivate:

Public Member Functions

 QGeoRectanglePrivate ()
 
 QGeoRectanglePrivate (const QGeoCoordinate &topLeft, const QGeoCoordinate &bottomRight)
 
 QGeoRectanglePrivate (const QGeoRectanglePrivate &other)
 
 ~QGeoRectanglePrivate ()
 
bool isValid () const override
 
bool isEmpty () const override
 
bool contains (const QGeoCoordinate &coordinate) const override
 
QGeoCoordinate center () const override
 
QGeoRectangle boundingGeoRectangle () const override
 
void extendRectangle (const QGeoCoordinate &coordinate)
 Extends the rectangle in the smallest possible way to include coordinate in the shape.
 
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 topLeft
 
QGeoCoordinate bottomRight
 
- Public Attributes inherited from QGeoShapePrivate
QGeoShape::ShapeType type
 
- Public Attributes inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Definition at line 23 of file qgeorectangle_p.h.

Constructor & Destructor Documentation

◆ QGeoRectanglePrivate() [1/3]

QGeoRectanglePrivate::QGeoRectanglePrivate ( )

Definition at line 875 of file qgeorectangle.cpp.

Referenced by clone().

+ Here is the caller graph for this function:

◆ QGeoRectanglePrivate() [2/3]

QGeoRectanglePrivate::QGeoRectanglePrivate ( const QGeoCoordinate & topLeft,
const QGeoCoordinate & bottomRight )

Definition at line 880 of file qgeorectangle.cpp.

◆ QGeoRectanglePrivate() [3/3]

QGeoRectanglePrivate::QGeoRectanglePrivate ( const QGeoRectanglePrivate & other)

Definition at line 886 of file qgeorectangle.cpp.

◆ ~QGeoRectanglePrivate()

QGeoRectanglePrivate::~QGeoRectanglePrivate ( )

Definition at line 892 of file qgeorectangle.cpp.

Member Function Documentation

◆ boundingGeoRectangle()

QGeoRectangle QGeoRectanglePrivate::boundingGeoRectangle ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 584 of file qgeorectangle.cpp.

References bottomRight, and topLeft.

◆ center()

QGeoCoordinate QGeoRectanglePrivate::center ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 569 of file qgeorectangle.cpp.

References bottomRight, isValid(), QGeoCoordinate::latitude, QGeoCoordinate::longitude, topLeft, and QLocationUtils::wrapLong().

+ Here is the call graph for this function:

◆ clone()

QGeoShapePrivate * QGeoRectanglePrivate::clone ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 894 of file qgeorectangle.cpp.

References QGeoRectanglePrivate().

+ Here is the call graph for this function:

◆ contains()

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

Implements QGeoShapePrivate.

Definition at line 534 of file qgeorectangle.cpp.

References bottomRight, QGeoCoordinate::isValid, isValid(), QGeoCoordinate::latitude, QGeoCoordinate::longitude, and topLeft.

Referenced by extendRectangle().

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

◆ extendRectangle()

void QGeoRectanglePrivate::extendRectangle ( const QGeoCoordinate & coordinate)

Extends the rectangle in the smallest possible way to include coordinate in the shape.

Both the rectangle and coordinate needs to be valid. If the rectangle already covers the coordinate noting happens.

Definition at line 747 of file qgeorectangle.cpp.

References bottomRight, contains(), QGeoCoordinate::isValid, isValid(), QGeoCoordinate::latitude, QGeoCoordinate::longitude, qAbs(), qMax(), qMin(), topLeft, and wrap().

Referenced by QGeoRectangle::QGeoRectangle().

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

◆ hash()

size_t QGeoRectanglePrivate::hash ( size_t seed) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 909 of file qgeorectangle.cpp.

References bottomRight, qHashMulti(), seed, and topLeft.

+ Here is the call graph for this function:

◆ isEmpty()

bool QGeoRectanglePrivate::isEmpty ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 248 of file qgeorectangle.cpp.

References bottomRight, isValid(), QGeoCoordinate::latitude, QGeoCoordinate::longitude, and topLeft.

+ Here is the call graph for this function:

◆ isValid()

bool QGeoRectanglePrivate::isValid ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 242 of file qgeorectangle.cpp.

References bottomRight, QGeoCoordinate::isValid, QGeoCoordinate::latitude, and topLeft.

Referenced by center(), contains(), extendRectangle(), and isEmpty().

+ Here is the caller graph for this function:

◆ operator==()

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

Reimplemented from QGeoShapePrivate.

Definition at line 899 of file qgeorectangle.cpp.

References bottomRight, other(), and topLeft.

+ Here is the call graph for this function:

Member Data Documentation

◆ bottomRight

◆ topLeft


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