Qt 6.x
The Qt SDK
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 ()
 
virtual bool isValid () const =0
 
virtual bool isEmpty () const =0
 
virtual bool contains (const QGeoCoordinate &coordinate) const =0
 
virtual QGeoCoordinate center () const =0
 
virtual QGeoRectangle boundingGeoRectangle () const =0
 
virtual QGeoShapePrivateclone () const =0
 
virtual bool operator== (const QGeoShapePrivate &other) const
 
virtual size_t hash (size_t seed) 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

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 876 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 881 of file qgeorectangle.cpp.

◆ QGeoRectanglePrivate() [3/3]

QGeoRectanglePrivate::QGeoRectanglePrivate ( const QGeoRectanglePrivate other)

Definition at line 887 of file qgeorectangle.cpp.

◆ ~QGeoRectanglePrivate()

QGeoRectanglePrivate::~QGeoRectanglePrivate ( )

Definition at line 893 of file qgeorectangle.cpp.

Member Function Documentation

◆ boundingGeoRectangle()

QGeoRectangle QGeoRectanglePrivate::boundingGeoRectangle ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 585 of file qgeorectangle.cpp.

References bottomRight, and topLeft.

◆ center()

QGeoCoordinate QGeoRectanglePrivate::center ( ) const
overridevirtual

Implements QGeoShapePrivate.

Definition at line 570 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 895 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 535 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 748 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 910 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 249 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 243 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 900 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: