marble
MercatorProjection.cpp
Go to the documentation of this file.
211 geoCoordinates( screenRect.left(), screenRect.top(), viewport, west, north, GeoDataCoordinates::Radian );
215 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:96
void setNorth(const qreal north, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
Definition: GeoDataLatLonBox.cpp:101
int right() const
This file contains the headers for MercatorProjection.
bool screenCoordinates(const GeoDataCoordinates &coordinates, const ViewportParams *params, qreal &x, qreal &y, bool &globeHidesPoint) const
Get the screen coordinates corresponding to geographical coordinates in the map.
Definition: MercatorProjection.cpp:50
bool mapCoversViewport(const ViewportParams *viewport) const
Definition: MercatorProjection.cpp:244
A base class for the Equirectangular and Mercator projections in Marble.
Definition: CylindricalProjection.h:33
void geoCoordinates(qreal &lon, qreal &lat, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
use this function to get the longitude and latitude with one call - use the unit parameter to switch ...
Definition: GeoDataCoordinates.cpp:715
void setMaxLat(qreal maxLat)
Definition: AbstractProjection.cpp:60
int top() const
int left() const
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
void setLatitude(qreal lat, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
set the longitude in a GeoDataCoordinates object
Definition: GeoDataCoordinates.cpp:699
This file contains the headers for ViewportParams.
GeoDataLatLonAltBox latLonAltBox(const QRect &screenRect, const ViewportParams *viewport) const
Definition: MercatorProjection.cpp:206
qreal centerLatitude() const
Definition: ViewportParams.cpp:294
qreal centerLongitude() const
Definition: ViewportParams.cpp:289
virtual ~MercatorProjection()
Definition: MercatorProjection.cpp:34
int bottom() const
virtual qreal minValidLat() const
Definition: MercatorProjection.cpp:44
bool geoCoordinates(const int x, const int y, const ViewportParams *params, qreal &lon, qreal &lat, GeoDataCoordinates::Unit=GeoDataCoordinates::Degree) const
Get the earth coordinates corresponding to a pixel in the map.
Definition: MercatorProjection.cpp:156
qreal height() const
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
void setMinLat(qreal minLat)
Definition: AbstractProjection.cpp:82
qreal width() const
virtual qreal maxValidLat() const
Definition: MercatorProjection.cpp:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.