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

marble

  • Marble
  • AbstractProjection
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Marble::AbstractProjection Class Referenceabstract

#include <AbstractProjection.h>

Inheritance diagram for Marble::AbstractProjection:
Inheritance graph
[legend]

Public Types

enum  PreservationType { NoPreservation, Conformal, EqualArea }
 
enum  SurfaceType {
  Cylindrical, Pseudocylindrical, Hybrid, Conical,
  Pseudoconical, Azimuthal
}
 

Public Member Functions

 AbstractProjection ()
 
virtual ~AbstractProjection ()
 
virtual bool geoCoordinates (const int x, const int y, const ViewportParams *viewport, qreal &lon, qreal &lat, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Degree) const =0
 
virtual bool isOrientedNormal () const
 
virtual GeoDataLatLonAltBox latLonAltBox (const QRect &screenRect, const ViewportParams *viewport) const
 
virtual bool mapCoversViewport (const ViewportParams *viewport) const =0
 
QRegion mapRegion (const ViewportParams *viewport) const
 
virtual QPainterPath mapShape (const ViewportParams *viewport) const =0
 
qreal maxLat () const
 
virtual qreal maxValidLat () const
 
qreal minLat () const
 
virtual qreal minValidLat () const
 
virtual PreservationType preservationType () const
 
virtual bool repeatableX () const
 
bool screenCoordinates (const qreal lon, const qreal lat, const ViewportParams *viewport, qreal &x, qreal &y) const
 
virtual bool screenCoordinates (const GeoDataCoordinates &geopoint, const ViewportParams *viewport, qreal &x, qreal &y, bool &globeHidesPoint) const =0
 
bool screenCoordinates (const GeoDataCoordinates &geopoint, const ViewportParams *viewport, qreal &x, qreal &y) const
 
virtual bool screenCoordinates (const GeoDataCoordinates &coordinates, const ViewportParams *viewport, qreal *x, qreal &y, int &pointRepeatNum, const QSizeF &size, bool &globeHidesPoint) const =0
 
virtual bool screenCoordinates (const GeoDataLineString &lineString, const ViewportParams *viewport, QVector< QPolygonF * > &polygons) const =0
 
void setMaxLat (qreal maxLat)
 
void setMinLat (qreal minLat)
 
virtual SurfaceType surfaceType () const =0
 
virtual bool traversableDateLine () const
 
virtual bool traversablePoles () const
 

Protected Member Functions

 AbstractProjection (AbstractProjectionPrivate *dd)
 

Protected Attributes

const QScopedPointer
< AbstractProjectionPrivate > 
d_ptr
 

Detailed Description

A base class for all projections in Marble.

Definition at line 49 of file AbstractProjection.h.

Member Enumeration Documentation

enum Marble::AbstractProjection::PreservationType
Enumerator
NoPreservation 
Conformal 
EqualArea 

Definition at line 62 of file AbstractProjection.h.

enum Marble::AbstractProjection::SurfaceType
Enumerator
Cylindrical 
Pseudocylindrical 
Hybrid 
Conical 
Pseudoconical 
Azimuthal 

Definition at line 53 of file AbstractProjection.h.

Constructor & Destructor Documentation

AbstractProjection::AbstractProjection ( )

Construct a new AbstractProjection.

Definition at line 28 of file AbstractProjection.cpp.

AbstractProjection::~AbstractProjection ( )
virtual

Definition at line 38 of file AbstractProjection.cpp.

AbstractProjection::AbstractProjection ( AbstractProjectionPrivate *  dd)
protected

Definition at line 33 of file AbstractProjection.cpp.

Member Function Documentation

virtual bool Marble::AbstractProjection::geoCoordinates ( const int  x,
const int  y,
const ViewportParams *  viewport,
qreal &  lon,
qreal &  lat,
GeoDataCoordinates::Unit  unit = GeoDataCoordinates::Degree 
) const
pure virtual

Get the earth coordinates corresponding to a pixel in the map.

Parameters
xthe x coordinate of the pixel
ythe y coordinate of the pixel
viewportthe viewport parameters
lonthe longitude angle is returned through this parameter
latthe latitude angle is returned through this parameter
unitthe unit of the angles for lon and lat.
Returns
true if the pixel (x, y) is within the globe false if the pixel (x, y) is outside the globe, i.e. in space.

Implemented in Marble::SphericalProjection, Marble::EquirectProjection, and Marble::MercatorProjection.

bool AbstractProjection::isOrientedNormal ( ) const
virtual

Definition at line 113 of file AbstractProjection.cpp.

GeoDataLatLonAltBox AbstractProjection::latLonAltBox ( const QRect &  screenRect,
const ViewportParams *  viewport 
) const
virtual

Reimplemented in Marble::SphericalProjection, Marble::EquirectProjection, and Marble::MercatorProjection.

Definition at line 136 of file AbstractProjection.cpp.

virtual bool Marble::AbstractProjection::mapCoversViewport ( const ViewportParams *  viewport) const
pure virtual

Implemented in Marble::SphericalProjection, Marble::EquirectProjection, and Marble::MercatorProjection.

QRegion AbstractProjection::mapRegion ( const ViewportParams *  viewport) const

Definition at line 216 of file AbstractProjection.cpp.

virtual QPainterPath Marble::AbstractProjection::mapShape ( const ViewportParams *  viewport) const
pure virtual

Implemented in Marble::SphericalProjection, and Marble::CylindricalProjection.

qreal AbstractProjection::maxLat ( ) const

Definition at line 54 of file AbstractProjection.cpp.

qreal AbstractProjection::maxValidLat ( ) const
virtual

Reimplemented in Marble::SphericalProjection, Marble::EquirectProjection, and Marble::MercatorProjection.

Definition at line 49 of file AbstractProjection.cpp.

qreal AbstractProjection::minLat ( ) const

Definition at line 76 of file AbstractProjection.cpp.

qreal AbstractProjection::minValidLat ( ) const
virtual

Reimplemented in Marble::SphericalProjection, Marble::EquirectProjection, and Marble::MercatorProjection.

Definition at line 71 of file AbstractProjection.cpp.

AbstractProjection::PreservationType AbstractProjection::preservationType ( ) const
virtual

Reimplemented in Marble::SphericalProjection, Marble::EquirectProjection, and Marble::MercatorProjection.

Definition at line 108 of file AbstractProjection.cpp.

bool AbstractProjection::repeatableX ( ) const
virtual

Reimplemented in Marble::SphericalProjection, and Marble::CylindricalProjection.

Definition at line 93 of file AbstractProjection.cpp.

bool AbstractProjection::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.

Parameters
lonthe lon coordinate of the requested pixel position in radians
latthe lat coordinate of the requested pixel position in radians
viewportthe viewport parameters
xthe x coordinate of the pixel is returned through this parameter
ythe y coordinate of the pixel is returned through this parameter
Returns
true if the geographical coordinates are visible on the screen false if the geographical coordinates are not visible on the screen
See also
ViewportParams

Definition at line 118 of file AbstractProjection.cpp.

virtual bool Marble::AbstractProjection::screenCoordinates ( const GeoDataCoordinates &  geopoint,
const ViewportParams *  viewport,
qreal &  x,
qreal &  y,
bool &  globeHidesPoint 
) const
pure virtual

Get the screen coordinates corresponding to geographical coordinates in the map.

Parameters
geopointthe point on earth, including altitude, that we want the coordinates for.
viewportthe viewport parameters
xthe x coordinate of the pixel is returned through this parameter
ythe y coordinate of the pixel is returned through this parameter
globeHidesPointwhether the point gets hidden on the far side of the earth
Returns
true if the geographical coordinates are visible on the screen false if the geographical coordinates are not visible on the screen
See also
ViewportParams

Implemented in Marble::SphericalProjection, Marble::EquirectProjection, and Marble::MercatorProjection.

bool AbstractProjection::screenCoordinates ( const GeoDataCoordinates &  geopoint,
const ViewportParams *  viewport,
qreal &  x,
qreal &  y 
) const

Definition at line 127 of file AbstractProjection.cpp.

virtual bool Marble::AbstractProjection::screenCoordinates ( const GeoDataCoordinates &  coordinates,
const ViewportParams *  viewport,
qreal *  x,
qreal &  y,
int &  pointRepeatNum,
const QSizeF &  size,
bool &  globeHidesPoint 
) const
pure virtual

Get the coordinates of screen points for geographical coordinates in the map.

Parameters
coordinatesthe point on earth, including altitude, that we want the coordinates for.
viewportthe viewport parameters
xthe x coordinates of the pixels are returned through this parameter
ythe y coordinate of the pixel is returned through this parameter
pointRepeatNumthe amount of times that a single geographical point gets represented on the map
globeHidesPointwhether the point gets hidden on the far side of the earth
Returns
true if the geographical coordinates are visible on the screen false if the geographical coordinates are not visible on the screen
See also
ViewportParams

Implemented in Marble::SphericalProjection, Marble::EquirectProjection, and Marble::MercatorProjection.

virtual bool Marble::AbstractProjection::screenCoordinates ( const GeoDataLineString &  lineString,
const ViewportParams *  viewport,
QVector< QPolygonF * > &  polygons 
) const
pure virtual

Implemented in Marble::SphericalProjection, and Marble::CylindricalProjection.

void AbstractProjection::setMaxLat ( qreal  maxLat)

Definition at line 60 of file AbstractProjection.cpp.

void AbstractProjection::setMinLat ( qreal  minLat)

Definition at line 82 of file AbstractProjection.cpp.

virtual SurfaceType Marble::AbstractProjection::surfaceType ( ) const
pure virtual

Implemented in Marble::SphericalProjection, and Marble::CylindricalProjection.

bool AbstractProjection::traversableDateLine ( ) const
virtual

Reimplemented in Marble::SphericalProjection, and Marble::CylindricalProjection.

Definition at line 103 of file AbstractProjection.cpp.

bool AbstractProjection::traversablePoles ( ) const
virtual

Reimplemented in Marble::SphericalProjection, and Marble::CylindricalProjection.

Definition at line 98 of file AbstractProjection.cpp.

Member Data Documentation

const QScopedPointer<AbstractProjectionPrivate> Marble::AbstractProjection::d_ptr
protected

Definition at line 193 of file AbstractProjection.h.


The documentation for this class was generated from the following files:
  • AbstractProjection.h
  • AbstractProjection.cpp
This file is part of the KDE documentation.
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.

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