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

(796d0c3d74605a0a90ce065f97ee959962ecc845)

#include "qquickgeocoordinateanimation_p.h"
#include "qquickgeocoordinateanimation_p_p.h"
#include <QtQuick/private/qquickanimation_p_p.h>
#include <QtPositioning/private/qdoublevector2d_p.h>
#include <QtPositioning/private/qwebmercator_p.h>
#include <QtPositioning/private/qgeocoordinate_p.h>
#include "moc_qquickgeocoordinateanimation_p.cpp"
+ Include dependency graph for qquickgeocoordinateanimation.cpp:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE QVariant q_coordinateInterpolator (const QGeoCoordinate &from, const QGeoCoordinate &to, qreal progress)
 \qmltype CoordinateAnimation \inherits PropertyAnimation \inqmlmodule QtPositioning
 
QVariant q_coordinateShortestInterpolator (const QGeoCoordinate &from, const QGeoCoordinate &to, qreal progress)
 
QVariant q_coordinateEastInterpolator (const QGeoCoordinate &from, const QGeoCoordinate &to, qreal progress)
 
QVariant q_coordinateWestInterpolator (const QGeoCoordinate &from, const QGeoCoordinate &to, qreal progress)
 

Function Documentation

◆ q_coordinateEastInterpolator()

QVariant q_coordinateEastInterpolator ( const QGeoCoordinate & from,
const QGeoCoordinate & to,
qreal progress )

Definition at line 88 of file qquickgeocoordinateanimation.cpp.

References QGeoCoordinate::altitude, QVariant::fromValue(), QGeoCoordinatePrivate::get(), QGeoMercatorCoordinatePrivate::m_mercatorX, and QWebMercator::mercatorToCoord().

Referenced by QQuickGeoCoordinateAnimation::setDirection().

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

◆ q_coordinateInterpolator()

QT_BEGIN_NAMESPACE QVariant q_coordinateInterpolator ( const QGeoCoordinate & from,
const QGeoCoordinate & to,
qreal progress )

\qmltype CoordinateAnimation \inherits PropertyAnimation \inqmlmodule QtPositioning

Since
5.3

A PropertyAnimation for geo coordinate properties.

A specialized \l{PropertyAnimation} that defines an animation between two \l{coordinate}{coordinates}.

By default, a \l{latitude} of the \l{coordinate} is animated in the direction of shortest (geodesic) distance between those coordinates. Since CoordinateAnimation uses Mercator map projection, the \l{latitude} animation is always between -90 and 90 degrees. The \l{longitude} animation path is not limited and can go over 180 degrees in both west and east directions.

The \l{direction} property can be set to specify the direction in which the \l{longitude} animation should occur.

See also
{Animation and Transitions in Qt Quick}

Definition at line 36 of file qquickgeocoordinateanimation.cpp.

References QWebMercator::coordinateInterpolation(), and QVariant::fromValue().

Referenced by QtPositioningDeclarative_initializeModule().

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

◆ q_coordinateShortestInterpolator()

QVariant q_coordinateShortestInterpolator ( const QGeoCoordinate & from,
const QGeoCoordinate & to,
qreal progress )

Definition at line 51 of file qquickgeocoordinateanimation.cpp.

References QGeoCoordinate::altitude, QVariant::fromValue(), QGeoCoordinatePrivate::get(), QGeoMercatorCoordinatePrivate::m_mercatorX, QWebMercator::mercatorToCoord(), and qAbs().

Referenced by QQuickGeoCoordinateAnimation::setDirection().

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

◆ q_coordinateWestInterpolator()

QVariant q_coordinateWestInterpolator ( const QGeoCoordinate & from,
const QGeoCoordinate & to,
qreal progress )

Definition at line 118 of file qquickgeocoordinateanimation.cpp.

References QGeoCoordinate::altitude, QVariant::fromValue(), QGeoCoordinatePrivate::get(), QGeoMercatorCoordinatePrivate::m_mercatorX, and QWebMercator::mercatorToCoord().

Referenced by QQuickGeoCoordinateAnimation::setDirection().

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