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

(688fd0edd9d6149e3e02f2186e7590ca13c087d5)

#include "qgeoprojection_p.h"
#include <QSize>
#include <QtGui/QMatrix4x4>
#include <QtPositioning/QGeoPolygon>
#include <QtPositioning/QGeoRectangle>
#include <QtPositioning/private/qwebmercator_p.h>
#include <QtPositioning/private/qlocationutils_p.h>
#include <QtPositioning/private/qclipperutils_p.h>
#include <cmath>
+ Include dependency graph for qgeoprojection.cpp:

Go to the source code of this file.

Functions

static QMatrix4x4 toMatrix4x4 (const QDoubleMatrix4x4 &m)
 
static QPointF centerOffset (const QSizeF &screenSize, const QRectF &visibleArea)
 
static QPointF marginsOffset (const QSizeF &screenSize, const QRectF &visibleArea)
 

Function Documentation

◆ centerOffset()

static QPointF centerOffset ( const QSizeF & screenSize,
const QRectF & visibleArea )
static

Definition at line 36 of file qgeoprojection.cpp.

References QRectF::center(), QSizeF::height(), QRectF::isNull(), screen, and QSizeF::width().

Referenced by QGeoProjectionWebMercator::itemPositionToWrappedMapProjection(), marginsOffset(), QGeoProjectionWebMercator::maximumCenterLatitudeAtZoom(), QGeoProjectionWebMercator::minimumCenterLatitudeAtZoom(), and QQuickMultiEffectPrivate::updateCenterOffset().

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

◆ marginsOffset()

static QPointF marginsOffset ( const QSizeF & screenSize,
const QRectF & visibleArea )
static

Definition at line 51 of file qgeoprojection.cpp.

References centerOffset(), QSizeF::height(), QSizeF::width(), QPointF::x(), and QPointF::y().

+ Here is the call graph for this function:

◆ toMatrix4x4()

static QMatrix4x4 toMatrix4x4 ( const QDoubleMatrix4x4 & m)
static

Definition at line 28 of file qgeoprojection.cpp.

Referenced by QGeoProjectionWebMercator::projectionTransformation(), QGeoProjectionWebMercator::projectionTransformation_centered(), QGeoProjectionWebMercator::qsgTransform(), and QGeoProjectionWebMercator::quickItemTransformation().

+ Here is the caller graph for this function: