Marble
MercatorProjection.cpp
45 return QObject::tr( "<p><b>Mercator Projection</b></p><p>Applications: popular standard map projection for navigation.</p>" );
218 geoCoordinates( screenRect.left(), screenRect.top(), viewport, west, north, GeoDataCoordinates::Radian );
222 geoCoordinates( screenRect.right(), screenRect.bottom(), viewport, east, south, GeoDataCoordinates::Radian );
qreal gdInv(qreal x)
This method is a fast Mac Laurin power series approximation of the.
Definition: MarbleMath.h:73
QString name() const override
Returns the user-visible name of the projection.
Definition: MercatorProjection.cpp:38
qreal height() const const
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:42
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:161
int right() const const
int left() const const
QString description() const override
Returns a short user description of the projection that can be used in tooltips or dialogs.
Definition: MercatorProjection.cpp:43
int bottom() const const
int top() const const
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:41
qreal minValidLat() const override
Returns the minimum (southern) latitude that is mathematically defined and reasonable.
Definition: MercatorProjection.cpp:59
A base class for the Equirectangular and Mercator projections in Marble.
Definition: CylindricalProjection.h:28
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:65
qreal minLat() const
Returns the arbitrarily chosen minimum (southern) latitude.
Definition: AbstractProjection.cpp:101
Binds a QML item to a specific geodetic location in screen coordinates.
Definition: AbstractDataPlugin.cpp:22
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:163
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:213
bool mapCoversViewport(const ViewportParams *viewport) const override
Returns whether the projected data fully obstructs the current viewport.
Definition: MercatorProjection.cpp:251
qreal maxLat() const
Returns the arbitrarily chosen maximum (northern) latitude.
Definition: AbstractProjection.cpp:79
QString tr(const char *sourceText, const char *disambiguation, int n)
qreal maxValidLat() const override
Returns the maximum (northern) latitude that is mathematically defined and reasonable.
Definition: MercatorProjection.cpp:53
qreal width() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 04:09:40 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 04:09:40 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.