• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • projections
CylindricalProjection.h
Go to the documentation of this file.
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 2007 Inge Wallin <ingwa@kde.org>
9 // Copyright 2007-2012 Torsten Rahn <rahn@kde.org>
10 // Copyright 2012 Cezar Mocan <mocancezar@gmail.com>
11 //
12 
13 #ifndef MARBLE_CYLINDRICALPROJECTION_H
14 #define MARBLE_CYLINDRICALPROJECTION_H
15 
21 #include "AbstractProjection.h"
22 
23 namespace Marble
24 {
25 
26 class CylindricalProjectionPrivate;
27 class AbstractProjectionPrivate;
28 
33 class CylindricalProjection : public AbstractProjection
34 {
35  // Not a QObject so far because we don't need to send signals.
36  public:
37 
38  CylindricalProjection();
39 
40  virtual ~CylindricalProjection();
41 
42  virtual bool repeatableX() const { return true; };
43 
44  virtual bool traversablePoles() const { return false; }
45  virtual bool traversableDateLine() const { return false; }
46 
47  virtual SurfaceType surfaceType() const { return Cylindrical; }
48 
49  virtual bool screenCoordinates( const GeoDataLineString &lineString,
50  const ViewportParams *viewport,
51  QVector<QPolygonF*> &polygons ) const;
52 
53  using AbstractProjection::screenCoordinates;
54 
55  virtual QPainterPath mapShape( const ViewportParams *viewport ) const;
56 
57  protected:
58  CylindricalProjection( CylindricalProjectionPrivate* dd );
59 
60  private:
61  Q_DECLARE_PRIVATE( CylindricalProjection )
62  Q_DISABLE_COPY( CylindricalProjection )
63 };
64 
65 }
66 
67 #endif
68 
Marble::CylindricalProjectionPrivate
Definition: CylindricalProjection_p.h:23
AbstractProjection.h
This file contains the headers for AbstractProjection.
Marble::CylindricalProjection
A base class for the Equirectangular and Mercator projections in Marble.
Definition: CylindricalProjection.h:33
Marble::CylindricalProjection::traversableDateLine
virtual bool traversableDateLine() const
Definition: CylindricalProjection.h:45
Marble::CylindricalProjection::screenCoordinates
virtual bool screenCoordinates(const GeoDataLineString &lineString, const ViewportParams *viewport, QVector< QPolygonF * > &polygons) const
Definition: CylindricalProjection.cpp:81
Marble::GeoDataLineString
A LineString that allows to store a contiguous set of line segments.
Definition: GeoDataLineString.h:75
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
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:118
Marble::CylindricalProjection::~CylindricalProjection
virtual ~CylindricalProjection()
Definition: CylindricalProjection.cpp:39
Marble::AbstractProjection::Cylindrical
Definition: AbstractProjection.h:54
Marble::AbstractProjection::SurfaceType
SurfaceType
Definition: AbstractProjection.h:53
QPainterPath
QVector
Marble::CylindricalProjection::repeatableX
virtual bool repeatableX() const
Definition: CylindricalProjection.h:42
Marble::AbstractProjection
A base class for all projections in Marble.
Definition: AbstractProjection.h:49
Marble::CylindricalProjection::traversablePoles
virtual bool traversablePoles() const
Definition: CylindricalProjection.h:44
Marble::CylindricalProjection::surfaceType
virtual SurfaceType surfaceType() const
Definition: CylindricalProjection.h:47
Marble::CylindricalProjection::CylindricalProjection
CylindricalProjection()
Definition: CylindricalProjection.cpp:29
Marble::CylindricalProjection::mapShape
virtual QPainterPath mapShape(const ViewportParams *viewport) const
Definition: CylindricalProjection.cpp:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



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