marble
#include <EquirectProjection.h>

| Public Member Functions | |
| EquirectProjection () | |
| virtual | ~EquirectProjection () | 
| bool | geoCoordinates (const int x, const int y, const ViewportParams *params, qreal &lon, qreal &lat, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Degree) const | 
| GeoDataLatLonAltBox | latLonAltBox (const QRect &screenRect, const ViewportParams *viewport) const | 
| bool | mapCoversViewport (const ViewportParams *viewport) const | 
| virtual qreal | maxValidLat () const | 
| virtual qreal | minValidLat () const | 
| virtual PreservationType | preservationType () const | 
| bool | screenCoordinates (const GeoDataCoordinates &coordinates, const ViewportParams *params, qreal &x, qreal &y, bool &globeHidesPoint) const | 
| bool | screenCoordinates (const GeoDataCoordinates &coordinates, const ViewportParams *viewport, qreal *x, qreal &y, int &pointRepeatNum, const QSizeF &size, bool &globeHidesPoint) const | 
|  Public Member Functions inherited from Marble::CylindricalProjection | |
| CylindricalProjection () | |
| virtual | ~CylindricalProjection () | 
| virtual QPainterPath | mapShape (const ViewportParams *viewport) const | 
| virtual bool | repeatableX () const | 
| virtual bool | screenCoordinates (const GeoDataLineString &lineString, const ViewportParams *viewport, QVector< QPolygonF * > &polygons) const | 
| virtual SurfaceType | surfaceType () const | 
| virtual bool | traversableDateLine () const | 
| virtual bool | traversablePoles () const | 
|  Public Member Functions inherited from Marble::AbstractProjection | |
| AbstractProjection () | |
| virtual | ~AbstractProjection () | 
| virtual bool | isOrientedNormal () const | 
| QRegion | mapRegion (const ViewportParams *viewport) const | 
| qreal | maxLat () const | 
| qreal | minLat () const | 
| bool | screenCoordinates (const qreal lon, const qreal lat, const ViewportParams *viewport, qreal &x, qreal &y) const | 
| bool | screenCoordinates (const GeoDataCoordinates &geopoint, const ViewportParams *viewport, qreal &x, qreal &y) const | 
| void | setMaxLat (qreal maxLat) | 
| void | setMinLat (qreal minLat) | 
| Additional Inherited Members | |
|  Public Types inherited from Marble::AbstractProjection | |
| enum | PreservationType { NoPreservation, Conformal, EqualArea } | 
| enum | SurfaceType { Cylindrical, Pseudocylindrical, Hybrid, Conical, Pseudoconical, Azimuthal } | 
|  Protected Member Functions inherited from Marble::CylindricalProjection | |
| CylindricalProjection (CylindricalProjectionPrivate *dd) | |
|  Protected Member Functions inherited from Marble::AbstractProjection | |
| AbstractProjection (AbstractProjectionPrivate *dd) | |
|  Protected Attributes inherited from Marble::AbstractProjection | |
| const QScopedPointer < AbstractProjectionPrivate > | d_ptr | 
Detailed Description
A class to implement the Equirectangular projection used by the "Flat Map" view.
Definition at line 35 of file EquirectProjection.h.
Constructor & Destructor Documentation
| EquirectProjection::EquirectProjection | ( | ) | 
Construct a new EquirectProjection.
Definition at line 24 of file EquirectProjection.cpp.
| 
 | virtual | 
Definition at line 31 of file EquirectProjection.cpp.
Member Function Documentation
| 
 | virtual | 
Get the earth coordinates corresponding to a pixel in the map.
If the pixel (x, y) is outside the globe, only lon will be calculated, and lat will be unchanged.
- Parameters
- 
  x the x coordinate of the pixel y the y coordinate of the pixel lon the longitude angle is returned through this parameter lat the latitude angle is returned through this parameter 
- Returns
- trueif the pixel (x, y) is within the map- falseif the pixel (x, y) is above or underneath the map
Implements Marble::AbstractProjection.
Definition at line 138 of file EquirectProjection.cpp.
| 
 | virtual | 
Reimplemented from Marble::AbstractProjection.
Definition at line 187 of file EquirectProjection.cpp.
| 
 | virtual | 
Implements Marble::AbstractProjection.
Definition at line 245 of file EquirectProjection.cpp.
| 
 | virtual | 
Reimplemented from Marble::AbstractProjection.
Definition at line 35 of file EquirectProjection.cpp.
| 
 | virtual | 
Reimplemented from Marble::AbstractProjection.
Definition at line 40 of file EquirectProjection.cpp.
| 
 | inlinevirtual | 
Reimplemented from Marble::AbstractProjection.
Definition at line 50 of file EquirectProjection.h.
| 
 | virtual | 
Get the screen coordinates corresponding to geographical coordinates in the map.
- Parameters
- 
  lon the lon coordinate of the requested pixel position lat the lat coordinate of the requested pixel position x the x coordinate of the pixel is returned through this parameter y the y coordinate of the pixel is returned through this parameter 
- Returns
- trueif the geographical coordinates are visible on the screen- falseif the geographical coordinates are not visible on the screen
Implements Marble::AbstractProjection.
Definition at line 45 of file EquirectProjection.cpp.
| 
 | virtual | 
Get the coordinates of screen points for geographical coordinates in the map.
- Parameters
- 
  coordinates the point on earth, including altitude, that we want the coordinates for. viewport the viewport parameters x the x coordinates of the pixels are returned through this parameter y the y coordinate of the pixel is returned through this parameter pointRepeatNum the amount of times that a single geographical point gets represented on the map globeHidesPoint whether the point gets hidden on the far side of the earth 
- Returns
- trueif the geographical coordinates are visible on the screen- falseif the geographical coordinates are not visible on the screen
- See also
- ViewportParams
Implements Marble::AbstractProjection.
Definition at line 77 of file EquirectProjection.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:44 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
 KDE API Reference
    KDE API Reference