![]() |
Qt 6.x
The Qt SDK
|
#include <qgeoprojection_p.h>
Classes | |
struct | Line2D |
struct | Plane |
Additional Inherited Members | |
![]() | |
enum | ProjectionGroup { ProjectionOther , ProjectionCylindrical , ProjectionPseudocylindrical , ProjectionAzimuthal , ProjectionPseudoazimuthal , ProjectionConic , ProjectionPseudoconic } |
enum | Datum { DatumUnknown , DatumWGS84 , DatumSphere } |
enum | ProjectionType { ProjectionUnknown , ProjectionGeneralPerspective , ProjectionWebMercator } |
![]() | |
QTransform | m_itemToWindowTransform |
bool | m_qsgTransformDirty = true |
Definition at line 95 of file qgeoprojection_p.h.
QGeoProjectionWebMercator::QGeoProjectionWebMercator | ( | ) |
Definition at line 140 of file qgeoprojection.cpp.
QGeoProjectionWebMercator::~QGeoProjectionWebMercator | ( | ) |
Definition at line 162 of file qgeoprojection.cpp.
|
overridevirtual |
Reimplemented from QGeoProjection.
Definition at line 109 of file qgeoprojection.cpp.
References cameraData(), geoToWrappedMapProjection(), itemPositionToWrappedMapProjection(), and wrappedMapProjectionToGeo().
Referenced by setBearing().
|
overridevirtual |
Implements QGeoProjection.
Definition at line 813 of file qgeoprojection.cpp.
References m_cameraData.
Referenced by anchorCoordinateToPoint(), maximumCenterLatitudeAtZoom(), minimumCenterLatitudeAtZoom(), setBearing(), and setCameraData().
|
overridevirtual |
Implements QGeoProjection.
Definition at line 194 of file qgeoprojection.cpp.
References QGeoCameraData::center(), geoToMapProjection(), m_cameraData, and QDoubleVector2D::toVector3D().
|
overridevirtual |
Implements QGeoProjection.
Definition at line 364 of file qgeoprojection.cpp.
References geoToMapProjection(), isProjectable(), QGeoCoordinate::isValid, m_viewportHeight, m_viewportWidth, pos, qIsNaN(), qQNaN(), wrapMapProjection(), and wrappedMapProjectionToItemPosition().
|
overridevirtual |
Implements QGeoProjection.
Definition at line 550 of file qgeoprojection.cpp.
References QGeoProjection::DatumWGS84.
QPair< QGeoCoordinate, qreal > QGeoProjectionWebMercator::fitViewportToGeoRectangle | ( | const QGeoRectangle & | rectangle, |
const QMargins & | margins | ||
) | const |
Definition at line 512 of file qgeoprojection.cpp.
References QGeoRectangle::bottomRight, geoToMapProjection(), m_cameraData, m_viewportHeight, m_viewportWidth, mapHeight(), mapProjectionToGeo(), mapWidth(), qMax(), qQNaN(), QDoubleVector2D::setX(), QGeoRectangle::topLeft, QDoubleVector2D::x(), QDoubleVector2D::y(), and QGeoCameraData::zoomLevel().
QDoubleVector2D QGeoProjectionWebMercator::geoToMapProjection | ( | const QGeoCoordinate & | coordinate | ) | const |
Definition at line 274 of file qgeoprojection.cpp.
References QWebMercator::coordToMercator().
Referenced by centerMercator(), coordinateToItemPosition(), fitViewportToGeoRectangle(), and geoToWrappedMapProjection().
QDoubleVector2D QGeoProjectionWebMercator::geoToWrappedMapProjection | ( | const QGeoCoordinate & | coordinate | ) | const |
Definition at line 386 of file qgeoprojection.cpp.
References geoToMapProjection(), and wrapMapProjection().
Referenced by anchorCoordinateToPoint(), quickItemTransformation(), and setBearing().
bool QGeoProjectionWebMercator::isProjectable | ( | const QDoubleVector2D & | wrappedProjection | ) | const |
Definition at line 426 of file qgeoprojection.cpp.
References dot(), QDoubleVector3D::dotProduct(), m_cameraData, m_centerNearPlane, m_sideLengthPixels, m_viewNormalized, pos, and QGeoCameraData::tilt().
Referenced by coordinateToItemPosition(), itemPositionToCoordinate(), and setBearing().
|
overridevirtual |
Implements QGeoProjection.
Definition at line 344 of file qgeoprojection.cpp.
References isProjectable(), itemPositionToWrappedMapProjection(), m_viewportHeight, m_viewportWidth, mapProjectionToGeo(), pos, qIsNaN(), and unwrapMapProjection().
QDoubleVector2D QGeoProjectionWebMercator::itemPositionToWrappedMapProjection | ( | const QDoubleVector2D & | itemPosition | ) | const |
Definition at line 318 of file qgeoprojection.cpp.
References centerOffset(), m_1_viewportHeight, m_1_viewportWidth, m_minimumUnprojectableY, m_viewportHeight, m_viewportWidth, m_visibleArea, pos, and viewportToWrappedMapProjection().
Referenced by anchorCoordinateToPoint(), and itemPositionToCoordinate().
double QGeoProjectionWebMercator::mapHeight | ( | ) | const |
Definition at line 246 of file qgeoprojection.cpp.
References m_mapEdgeSize.
Referenced by fitViewportToGeoRectangle().
QGeoCoordinate QGeoProjectionWebMercator::mapProjectionToGeo | ( | const QDoubleVector2D & | projection | ) | const |
Definition at line 279 of file qgeoprojection.cpp.
References QWebMercator::mercatorToCoord().
Referenced by fitViewportToGeoRectangle(), itemPositionToCoordinate(), and wrappedMapProjectionToGeo().
double QGeoProjectionWebMercator::mapWidth | ( | ) | const |
Definition at line 241 of file qgeoprojection.cpp.
References m_mapEdgeSize.
Referenced by fitViewportToGeoRectangle(), and quickItemTransformation().
|
overridevirtual |
Implements QGeoProjection.
Definition at line 205 of file qgeoprojection.cpp.
References cameraData(), centerOffset(), QGeoCoordinate::latitude, m_viewportHeight, m_viewportWidth, m_visibleArea, QWebMercator::mercatorToCoord(), QPointF::y(), and QGeoCameraData::zoomLevel().
|
overridevirtual |
Implements QGeoProjection.
Definition at line 220 of file qgeoprojection.cpp.
References cameraData(), centerOffset(), QGeoCoordinate::latitude, m_viewportHeight, m_viewportWidth, m_visibleArea, QWebMercator::mercatorToCoord(), QPointF::y(), and QGeoCameraData::zoomLevel().
|
overridevirtual |
Implements QGeoProjection.
Definition at line 169 of file qgeoprojection.cpp.
References m_minimumZoom.
QList< QDoubleVector2D > QGeoProjectionWebMercator::projectableGeometry | ( | ) | const |
Definition at line 455 of file qgeoprojection.cpp.
References m_projectableRegion, and m_visibleRegionDirty.
|
overridevirtual |
Implements QGeoProjection.
Definition at line 545 of file qgeoprojection.cpp.
References QGeoProjection::ProjectionCylindrical.
|
overridevirtual |
Implements QGeoProjection.
Definition at line 174 of file qgeoprojection.cpp.
References m_transformation, and toMatrix4x4().
|
overridevirtual |
Implements QGeoProjection.
Definition at line 179 of file qgeoprojection.cpp.
References m_transformation0, and toMatrix4x4().
|
overridevirtual |
Implements QGeoProjection.
Definition at line 555 of file qgeoprojection.cpp.
References QGeoProjection::ProjectionWebMercator.
int QGeoProjectionWebMercator::projectionWrapFactor | ( | const QDoubleVector2D & | projection | ) | const |
Definition at line 284 of file qgeoprojection.cpp.
References m_cameraCenterXMercator, and QDoubleVector2D::x().
Referenced by wrapMapProjection().
|
overridevirtual |
Implements QGeoProjection.
Definition at line 184 of file qgeoprojection.cpp.
References QGeoProjection::m_itemToWindowTransform, m_qsgTransform, QGeoProjection::m_qsgTransformDirty, m_transformation0, and toMatrix4x4().
QMatrix4x4 QGeoProjectionWebMercator::quickItemTransformation | ( | const QGeoCoordinate & | coordinate, |
const QPointF & | anchorPoint, | ||
qreal | zoomLevel | ||
) | const |
Definition at line 396 of file qgeoprojection.cpp.
References geoToWrappedMapProjection(), m_cameraData, m_quickItemTransformation, m_sideLengthPixels, mapWidth(), QDoubleMatrix4x4::scale(), toMatrix4x4(), QDoubleMatrix4x4::translate(), QDoubleVector2D::x(), QPointF::x(), QDoubleVector2D::y(), QPointF::y(), and QGeoCameraData::zoomLevel().
|
overridevirtual |
Reimplemented from QGeoProjection.
Definition at line 120 of file qgeoprojection.cpp.
References anchorCoordinateToPoint(), camera, cameraData(), geoToWrappedMapProjection(), isProjectable(), setCameraData(), QDoubleVector2D::toPointF(), and wrappedMapProjectionToItemPosition().
|
overridevirtual |
Implements QGeoProjection.
Definition at line 264 of file qgeoprojection.cpp.
References cameraData(), m_cameraData, m_mapEdgeSize, and QGeoCameraData::zoomLevel().
Referenced by setBearing().
Implements QGeoProjection.
Definition at line 251 of file qgeoprojection.cpp.
References m_1_viewportHeight, m_1_viewportWidth, m_minimumZoom, m_viewportHeight, m_viewportWidth, and qMax().
Implements QGeoProjection.
Definition at line 235 of file qgeoprojection.cpp.
References m_visibleArea.
QDoubleVector2D QGeoProjectionWebMercator::unwrapMapProjection | ( | const QDoubleVector2D & | wrappedProjection | ) | const |
Definition at line 303 of file qgeoprojection.cpp.
References QDoubleVector2D::x(), and QDoubleVector2D::y().
Referenced by itemPositionToCoordinate(), and wrappedMapProjectionToGeo().
|
inline |
Definition at line 483 of file qgeoprojection.cpp.
References viewportToWrappedMapProjection().
Referenced by itemPositionToWrappedMapProjection(), and viewportToWrappedMapProjection().
|
inline |
Definition at line 492 of file qgeoprojection.cpp.
References m_centerNearPlane, m_eye, m_halfHeight, m_halfWidth, m_side, m_sideLengthPixels, m_up, QDoubleVector3D::normalize(), and pos.
QList< QDoubleVector2D > QGeoProjectionWebMercator::visibleGeometry | ( | ) | const |
Definition at line 441 of file qgeoprojection.cpp.
References m_visibleRegion, and m_visibleRegionDirty.
Referenced by visibleRegion().
QList< QDoubleVector2D > QGeoProjectionWebMercator::visibleGeometryExpanded | ( | ) | const |
Definition at line 448 of file qgeoprojection.cpp.
References m_visibleRegionDirty, and m_visibleRegionExpanded.
|
overridevirtual |
Reimplemented from QGeoProjection.
Definition at line 462 of file qgeoprojection.cpp.
References QGeoPolygon::addCoordinate(), i, qAbs(), visibleGeometry(), visibleRegion(), and wrappedMapProjectionToGeo().
Referenced by visibleRegion().
QDoubleVector2D QGeoProjectionWebMercator::wrapMapProjection | ( | const QDoubleVector2D & | projection | ) | const |
Definition at line 298 of file qgeoprojection.cpp.
References projectionWrapFactor(), QDoubleVector2D::x(), and QDoubleVector2D::y().
Referenced by coordinateToItemPosition(), and geoToWrappedMapProjection().
QGeoCoordinate QGeoProjectionWebMercator::wrappedMapProjectionToGeo | ( | const QDoubleVector2D & | wrappedProjection | ) | const |
Definition at line 391 of file qgeoprojection.cpp.
References mapProjectionToGeo(), and unwrapMapProjection().
Referenced by anchorCoordinateToPoint(), and visibleRegion().
QDoubleVector2D QGeoProjectionWebMercator::wrappedMapProjectionToItemPosition | ( | const QDoubleVector2D & | wrappedProjection | ) | const |
Definition at line 313 of file qgeoprojection.cpp.
References m_transformation.
Referenced by coordinateToItemPosition(), and setBearing().
|
protected |
Definition at line 203 of file qgeoprojection_p.h.
Referenced by itemPositionToWrappedMapProjection(), and setViewportSize().
|
protected |
Definition at line 202 of file qgeoprojection_p.h.
Referenced by itemPositionToWrappedMapProjection(), and setViewportSize().
|
protected |
Definition at line 218 of file qgeoprojection_p.h.
|
protected |
Definition at line 196 of file qgeoprojection_p.h.
Referenced by projectionWrapFactor().
|
protected |
Definition at line 197 of file qgeoprojection_p.h.
|
protected |
Definition at line 192 of file qgeoprojection_p.h.
Referenced by cameraData(), centerMercator(), fitViewportToGeoRectangle(), isProjectable(), quickItemTransformation(), and setCameraData().
|
protected |
Definition at line 205 of file qgeoprojection_p.h.
|
protected |
Definition at line 206 of file qgeoprojection_p.h.
|
protected |
Definition at line 212 of file qgeoprojection_p.h.
|
protected |
Definition at line 227 of file qgeoprojection_p.h.
|
protected |
Definition at line 216 of file qgeoprojection_p.h.
Referenced by isProjectable(), and viewportToWrappedMapProjection().
|
protected |
Definition at line 233 of file qgeoprojection_p.h.
|
protected |
Definition at line 210 of file qgeoprojection_p.h.
Referenced by viewportToWrappedMapProjection().
|
protected |
Definition at line 228 of file qgeoprojection_p.h.
|
protected |
Definition at line 229 of file qgeoprojection_p.h.
|
protected |
Definition at line 220 of file qgeoprojection_p.h.
|
protected |
Definition at line 222 of file qgeoprojection_p.h.
Referenced by viewportToWrappedMapProjection().
|
protected |
Definition at line 221 of file qgeoprojection_p.h.
Referenced by viewportToWrappedMapProjection().
|
protected |
Definition at line 193 of file qgeoprojection_p.h.
Referenced by mapHeight(), mapWidth(), and setCameraData().
|
protected |
Definition at line 223 of file qgeoprojection_p.h.
Referenced by itemPositionToWrappedMapProjection().
|
protected |
Definition at line 194 of file qgeoprojection_p.h.
Referenced by minimumZoom(), and setViewportSize().
|
protected |
Definition at line 219 of file qgeoprojection_p.h.
|
protected |
Definition at line 235 of file qgeoprojection_p.h.
|
protected |
Definition at line 234 of file qgeoprojection_p.h.
|
protected |
Definition at line 239 of file qgeoprojection_p.h.
Referenced by projectableGeometry().
|
mutableprotected |
Definition at line 242 of file qgeoprojection_p.h.
Referenced by qsgTransform().
|
protected |
Definition at line 209 of file qgeoprojection_p.h.
Referenced by quickItemTransformation().
|
protected |
Definition at line 215 of file qgeoprojection_p.h.
Referenced by viewportToWrappedMapProjection().
|
protected |
Definition at line 217 of file qgeoprojection_p.h.
Referenced by isProjectable(), quickItemTransformation(), and viewportToWrappedMapProjection().
|
protected |
Definition at line 232 of file qgeoprojection_p.h.
|
protected |
Definition at line 207 of file qgeoprojection_p.h.
Referenced by projectionTransformation(), and wrappedMapProjectionToItemPosition().
|
protected |
Definition at line 208 of file qgeoprojection_p.h.
Referenced by projectionTransformation_centered(), and qsgTransform().
|
protected |
Definition at line 211 of file qgeoprojection_p.h.
Referenced by viewportToWrappedMapProjection().
|
protected |
Definition at line 231 of file qgeoprojection_p.h.
|
protected |
Definition at line 224 of file qgeoprojection_p.h.
|
protected |
Definition at line 213 of file qgeoprojection_p.h.
|
protected |
Definition at line 230 of file qgeoprojection_p.h.
|
protected |
Definition at line 214 of file qgeoprojection_p.h.
Referenced by isProjectable().
|
protected |
Definition at line 201 of file qgeoprojection_p.h.
Referenced by coordinateToItemPosition(), fitViewportToGeoRectangle(), itemPositionToCoordinate(), itemPositionToWrappedMapProjection(), maximumCenterLatitudeAtZoom(), minimumCenterLatitudeAtZoom(), and setViewportSize().
|
protected |
Definition at line 200 of file qgeoprojection_p.h.
Referenced by coordinateToItemPosition(), fitViewportToGeoRectangle(), itemPositionToCoordinate(), itemPositionToWrappedMapProjection(), maximumCenterLatitudeAtZoom(), minimumCenterLatitudeAtZoom(), and setViewportSize().
|
protected |
Definition at line 243 of file qgeoprojection_p.h.
Referenced by itemPositionToWrappedMapProjection(), maximumCenterLatitudeAtZoom(), minimumCenterLatitudeAtZoom(), and setVisibleArea().
|
protected |
Definition at line 237 of file qgeoprojection_p.h.
Referenced by visibleGeometry().
|
protected |
Definition at line 240 of file qgeoprojection_p.h.
Referenced by projectableGeometry(), visibleGeometry(), and visibleGeometryExpanded().
|
protected |
Definition at line 238 of file qgeoprojection_p.h.
Referenced by visibleGeometryExpanded().