Marble
MercatorProjection.cpp
38 return QObject::tr("<p><b>Mercator Projection</b></p><p>Applications: popular standard map projection for navigation.</p>");
58bool MercatorProjection::screenCoordinates(const GeoDataCoordinates &geopoint, const ViewportParams *viewport, qreal &x, qreal &y, bool &globeHidesPoint) const
154bool MercatorProjection::geoCoordinates(const int x, const int y, const ViewportParams *viewport, qreal &lon, qreal &lat, GeoDataCoordinates::Unit unit) const
201GeoDataLatLonAltBox MercatorProjection::latLonAltBox(const QRect &screenRect, const ViewportParams *viewport) const
205 geoCoordinates(screenRect.left(), screenRect.top(), viewport, west, north, GeoDataCoordinates::Radian);
209 geoCoordinates(screenRect.right(), screenRect.bottom(), viewport, east, south, GeoDataCoordinates::Radian);
This file contains the headers for MercatorProjection.
This file contains the headers for ViewportParams.
qreal minLat() const
Returns the arbitrarily chosen minimum (southern) latitude.
Definition AbstractProjection.cpp:118
qreal maxLat() const
Returns the arbitrarily chosen maximum (northern) latitude.
Definition AbstractProjection.cpp:96
A base class for the Equirectangular and Mercator projections in Marble.
Definition CylindricalProjection.h:29
void geoCoordinates(qreal &lon, qreal &lat, GeoDataCoordinates::Unit unit) const
use this function to get the longitude and latitude with one call - use the unit parameter to switch ...
Definition GeoDataCoordinates.cpp:159
A class that defines a 3D bounding box for geographic data.
Definition GeoDataLatLonAltBox.h:40
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
qreal gdInv(qreal x)
This method is a fast Mac Laurin power series approximation of the.
Definition MarbleMath.h:71
QString tr(const char *sourceText, const char *disambiguation, int n)
int bottom() const const
int left() const const
int right() const const
int top() const const
qreal height() const const
qreal width() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.