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
qgeopolygon.cpp File Reference

(eb93ee3de85b3d2a797210261ecd59a31c355edc)

#include "qgeopolygon.h"
#include "qgeopolygon_p.h"
#include "qgeopath_p.h"
#include "qgeocircle.h"
#include "qgeocoordinate.h"
#include "qnumeric.h"
#include "qlocationutils_p.h"
#include "qwebmercator_p.h"
#include "qdoublevector2d_p.h"
#include "qdoublevector3d_p.h"
#include "moc_qgeopolygon_p.cpp"
#include "moc_qgeopolygon.cpp"
+ Include dependency graph for qgeopolygon.cpp:

Go to the source code of this file.

Functions

static void calculatePeripheralPoints (QList< QGeoCoordinate > &path, const QGeoCircle &circle, int steps)
 
static void translatePoly (QList< QGeoCoordinate > &m_path, QList< QList< QGeoCoordinate > > &m_holesList, QGeoRectangle &m_bbox, double degreesLatitude, double degreesLongitude, double m_maxLati, double m_minLati)
 

Variables

QT_BEGIN_NAMESPACE constexpr int kMaxInt = std::numeric_limits<int>::max()
 
constexpr auto kTooManyHoles
 
constexpr auto kTooManyElements
 

Function Documentation

◆ calculatePeripheralPoints()

static void calculatePeripheralPoints ( QList< QGeoCoordinate > & path,
const QGeoCircle & circle,
int steps )
static

Definition at line 99 of file qgeopolygon.cpp.

References QGeoCircle::center, QLocationUtils::degrees(), QLocationUtils::earthMeanRadius(), i, M_PI, qMax(), QLocationUtils::radians(), QGeoCircle::radius, and QLocationUtils::wrapLong().

Referenced by QGeoPolygon::QGeoPolygon().

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

◆ translatePoly()

static void translatePoly ( QList< QGeoCoordinate > & m_path,
QList< QList< QGeoCoordinate > > & m_holesList,
QGeoRectangle & m_bbox,
double degreesLatitude,
double degreesLongitude,
double m_maxLati,
double m_minLati )
inlinestatic

Definition at line 447 of file qgeopolygon.cpp.

References qMax(), qMin(), QGeoRectangle::translate(), and QLocationUtils::wrapLong().

Referenced by QGeoPolygonPrivate::translate(), and QGeoPolygonPrivateEager::translate().

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

Variable Documentation

◆ kMaxInt

QT_BEGIN_NAMESPACE constexpr int kMaxInt = std::numeric_limits<int>::max()
constexpr

◆ kTooManyElements

constexpr auto kTooManyElements
constexpr
Initial value:
= u"The polygon has more elements than fit into an int. "
"This can cause errors while querying elements from QML"

Definition at line 25 of file qgeopolygon.cpp.

Referenced by QGeoPolygon::addCoordinate(), and QGeoPolygon::size().

◆ kTooManyHoles

constexpr auto kTooManyHoles
constexpr
Initial value:
= u"The polygon has more holes than fit into an int. "
"This can cause errors while querying holes from QML"

Definition at line 23 of file qgeopolygon.cpp.

Referenced by QGeoPolygon::addHole(), and QGeoPolygon::holesCount().