• Skip to content
  • Skip to link menu
Brand

API Documentation

  1. KDE API Reference
  2. Marble
  • KDE Home
  • Contact Us

Quick Links

Skip menu "Marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • File List
  • Related Pages

Class Picker

About

Marble framework, a library for maps, virtual globes and world atlases

Maintainers
Torsten Rahn,
Dennis Nienhüser
Supported platforms
Android, Linux, MacOSX, Windows
Community
IRC: #marble on Freenode
Mailing list: marble-devel
Use with CMake
find_package(Marble)
target_link_libraries(yourapp Marble)
Use with QMake
QT += Marble 
Clone
git clone git://anongit.kde.org/marble.git
Browse source
Marble on cgit.kde.org

Marble

  • kde
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • projections
LambertAzimuthalProjection.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_LAMBERTAZIMUTHALPROJECTION_H
13 #define MARBLE_LAMBERTAZIMUTHALPROJECTION_H
14 
15 
16 #include "AbstractProjection.h"
17 #include "AzimuthalProjection.h"
18 
19 namespace Marble
20 {
21 
22 class LambertAzimuthalProjectionPrivate;
23 
28 class LambertAzimuthalProjection : public AzimuthalProjection
29 {
30  // Not a QObject so far because we don't need to send signals.
31  public:
32 
36  LambertAzimuthalProjection();
37 
38  ~LambertAzimuthalProjection() override;
39 
43  QString name() const override;
44 
49  QString description() const override;
50 
54  QIcon icon() const override;
55 
56  qreal clippingRadius() const override;
57 
68  bool screenCoordinates( const GeoDataCoordinates &coordinates,
69  const ViewportParams *params,
70  qreal &x, qreal &y, bool &globeHidesPoint ) const override;
71 
72  bool screenCoordinates( const GeoDataCoordinates &coordinates,
73  const ViewportParams * viewport,
74  qreal *x, qreal &y, int &pointRepeatNum,
75  const QSizeF& size,
76  bool &globeHidesPoint ) const override;
77 
78  using AbstractProjection::screenCoordinates;
79 
91  bool geoCoordinates( const int x, const int y,
92  const ViewportParams *params,
93  qreal& lon, qreal& lat,
94  GeoDataCoordinates::Unit unit = GeoDataCoordinates::Degree ) const override;
95 
96  protected:
97  explicit LambertAzimuthalProjection(LambertAzimuthalProjectionPrivate *dd );
98 
99  private:
100  Q_DECLARE_PRIVATE(LambertAzimuthalProjection)
101  Q_DISABLE_COPY( LambertAzimuthalProjection )
102 };
103 
104 }
105 
106 #endif
Marble::GeoDataCoordinates::Unit
Unit
enum used constructor to specify the units used
Definition: GeoDataCoordinates.h:57
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:45
Marble
Binds a QML item to a specific geodetic location in screen coordinates.
Definition: AbstractDataPlugin.cpp:27
Marble::AzimuthalProjection
A base class for the Gnomonic and Orthographic (Globe) projections in Marble.
Definition: AzimuthalProjection.h:30
Marble::LambertAzimuthalProjection
A class to implement the spherical projection used by the "Globe" view.
Definition: LambertAzimuthalProjection.h:28
AbstractProjection.h
This file contains the headers for AbstractProjection.
Marble::LambertAzimuthalProjection::LambertAzimuthalProjection
LambertAzimuthalProjection()
Construct a new LambertAzimuthalProjection.
Definition: LambertAzimuthalProjection.cpp:41
Marble::LambertAzimuthalProjection::screenCoordinates
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: LambertAzimuthalProjection.cpp:85
Marble::LambertAzimuthalProjection::description
QString description() const override
Returns a short user description of the projection that can be used in tooltips or dialogs...
Definition: LambertAzimuthalProjection.cpp:70
Marble::LambertAzimuthalProjection::geoCoordinates
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.
Definition: LambertAzimuthalProjection.cpp:152
QString
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:46
Marble::LambertAzimuthalProjection::icon
QIcon icon() const override
Returns an icon for the projection.
Definition: LambertAzimuthalProjection.cpp:75
Marble::AbstractProjection::screenCoordinates
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.
Definition: AbstractProjection.cpp:159
Marble::LambertAzimuthalProjection::name
QString name() const override
Returns the user-visible name of the projection.
Definition: LambertAzimuthalProjection.cpp:65
QSizeF
AzimuthalProjection.h
This file contains the headers for AzimuthalProjection.
QIcon
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Thu Dec 12 2019 02:50:57 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal