Marble
MercatorProjection.h
Go to the documentation of this file.
71 bool screenCoordinates(const GeoDataCoordinates &coordinates, const ViewportParams *params, qreal &x, qreal &y, bool &globeHidesPoint) const override;
98 bool geoCoordinates(const int x, const int y, const ViewportParams *params, qreal &lon, qreal &lat, GeoDataCoordinates::Unit = GeoDataCoordinates::Degree)
101 GeoDataLatLonAltBox latLonAltBox(const QRect &screenRect, const ViewportParams *viewport) const override;
This file contains the headers for CylindricalProjection.
A base class for the Equirectangular and Mercator projections in Marble.
Definition CylindricalProjection.h:29
A class that defines a 3D bounding box for geographic data.
Definition GeoDataLatLonAltBox.h:40
A class to implement the Mercator projection.
Definition MercatorProjection.h:27
GeoDataLatLonAltBox latLonAltBox(const QRect &screenRect, const ViewportParams *viewport) const override
Returns a GeoDataLatLonAltBox bounding box of the given screenrect inside the given viewport.
Definition MercatorProjection.cpp:201
qreal minValidLat() const override
Returns the minimum (southern) latitude that is mathematically defined and reasonable.
Definition MercatorProjection.cpp:52
bool screenCoordinates(const GeoDataCoordinates &coordinates, const ViewportParams *params, qreal &x, qreal &y, bool &globeHidesPoint) const override
Get the screen coordinates corresponding to geographical coordinates in the map.
Definition MercatorProjection.cpp:58
QString description() const override
Returns a short user description of the projection that can be used in tooltips or dialogs.
Definition MercatorProjection.cpp:36
QString name() const override
Returns the user-visible name of the projection.
Definition MercatorProjection.cpp:31
bool mapCoversViewport(const ViewportParams *viewport) const override
Returns whether the projected data fully obstructs the current viewport.
Definition MercatorProjection.cpp:237
qreal maxValidLat() const override
Returns the maximum (northern) latitude that is mathematically defined and reasonable.
Definition MercatorProjection.cpp:46
bool geoCoordinates(const int x, const int y, const ViewportParams *params, qreal &lon, qreal &lat, GeoDataCoordinates::Unit=GeoDataCoordinates::Degree) const override
Get the earth coordinates corresponding to a pixel in the map.
Definition MercatorProjection.cpp:154
A public class that controls what is visible in the viewport of a Marble map.
Definition ViewportParams.h:41
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:08:53 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:08:53 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.