Marble

AzimuthalEquidistantProjection.h
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2013 Bernhard Beschow <[email protected]>
9 //
10 
11 
12 #ifndef MARBLE_AZIMUTHALEQUIDISTANTPROJECTION_H
13 #define MARBLE_AZIMUTHALEQUIDISTANTPROJECTION_H
14 
15 
16 #include "AbstractProjection.h"
17 #include "AzimuthalProjection.h"
18 
19 namespace Marble
20 {
21 
22 class AzimuthalEquidistantProjectionPrivate;
23 
29 {
30  // Not a QObject so far because we don't need to send signals.
31  public:
32 
37 
39 
43  QString name() const override;
44 
49  QString description() const override;
50 
54  QIcon icon() const override;
55 
56 
57  qreal clippingRadius() const override;
58 
69  bool screenCoordinates( const GeoDataCoordinates &coordinates,
70  const ViewportParams *params,
71  qreal &x, qreal &y, bool &globeHidesPoint ) const override;
72 
73  bool screenCoordinates( const GeoDataCoordinates &coordinates,
74  const ViewportParams * viewport,
75  qreal *x, qreal &y, int &pointRepeatNum,
76  const QSizeF& size,
77  bool &globeHidesPoint ) const override;
78 
80 
92  bool geoCoordinates( const int x, const int y,
93  const ViewportParams *params,
94  qreal& lon, qreal& lat,
95  GeoDataCoordinates::Unit unit = GeoDataCoordinates::Degree ) const override;
96 
97  protected:
98  explicit AzimuthalEquidistantProjection(AzimuthalEquidistantProjectionPrivate *dd );
99 
100  private:
101  Q_DECLARE_PRIVATE(AzimuthalEquidistantProjection)
102  Q_DISABLE_COPY( AzimuthalEquidistantProjection )
103 };
104 
105 }
106 
107 #endif
Unit
enum used constructor to specify the units used
bool geoCoordinates(const int x, const int y, const ViewportParams *params, qreal &lon, qreal &lat, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Degree) const override
Get the earth coordinates corresponding to a pixel in the map.
A 3d point representation.
QString name() const override
Returns the user-visible name of the projection.
Binds a QML item to a specific geodetic location in screen coordinates.
QString description() const override
Returns a short user description of the projection that can be used in tooltips or dialogs...
A base class for the Gnomonic and Orthographic (Globe) projections in Marble.
This file contains the headers for AbstractProjection.
QIcon icon() const override
Returns an icon for the projection.
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.
A public class that controls what is visible in the viewport of a Marble map.
bool screenCoordinates(const qreal lon, const qreal lat, const ViewportParams *viewport, qreal &x, qreal &y) const
Get the screen coordinates corresponding to geographical coordinates in the map.
AzimuthalEquidistantProjection()
Construct a new AzimuthalEquidistantProjection.
A class to implement the spherical projection used by the "Globe" view.
This file contains the headers for AzimuthalProjection.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Oct 24 2020 23:25:21 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.