![]() |
Qt 6.x
The Qt SDK
|
#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"
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) |
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, QGeoMercatorCoordinatePrivate::m_mercatorY, and QWebMercator::mercatorToCoord().
Referenced by QQuickGeoCoordinateAnimation::setDirection().
QT_BEGIN_NAMESPACE QVariant q_coordinateInterpolator | ( | const QGeoCoordinate & | from, |
const QGeoCoordinate & | to, | ||
qreal | progress | ||
) |
\qmltype CoordinateAnimation \inherits PropertyAnimation \inqmlmodule QtPositioning
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.
Definition at line 36 of file qquickgeocoordinateanimation.cpp.
References QWebMercator::coordinateInterpolation(), and QVariant::fromValue().
Referenced by QtPositioningDeclarative_initializeModule().
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, QGeoMercatorCoordinatePrivate::m_mercatorY, QWebMercator::mercatorToCoord(), and qAbs().
Referenced by QQuickGeoCoordinateAnimation::setDirection().
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, QGeoMercatorCoordinatePrivate::m_mercatorY, and QWebMercator::mercatorToCoord().
Referenced by QQuickGeoCoordinateAnimation::setDirection().