Marble::CylindricalProjection

Search for usage in LXR

Marble::CylindricalProjection Class Reference

#include <CylindricalProjection.h>

Inheritance diagram for Marble::CylindricalProjection:

Public Member Functions

QPainterPath mapShape (const ViewportParams *viewport) const override
 
bool repeatableX () const override
 
bool screenCoordinates (const GeoDataLineString &lineString, const ViewportParams *viewport, QVector< QPolygonF * > &polygons) const override
 
SurfaceType surfaceType () const override
 
bool traversableDateLine () const override
 
bool traversablePoles () const override
 
- Public Member Functions inherited from Marble::AbstractProjection
 AbstractProjection ()
 
virtual qreal clippingRadius () const
 
virtual QString description () const =0
 
virtual bool geoCoordinates (const int x, const int y, const ViewportParams *viewport, qreal &lon, qreal &lat, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Degree) const =0
 
virtual QIcon icon () const =0
 
virtual bool isClippedToSphere () const
 
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
 
qreal maxLat () const
 
virtual qreal maxValidLat () const
 
qreal minLat () const
 
virtual qreal minValidLat () const
 
virtual QString name () const =0
 
virtual PreservationType preservationType () 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
 
void setMaxLat (qreal maxLat)
 
void setMinLat (qreal minLat)
 

Protected Member Functions

 CylindricalProjection (CylindricalProjectionPrivate *dd)
 
- Protected Member Functions inherited from Marble::AbstractProjection
 AbstractProjection (AbstractProjectionPrivate *dd)
 

Additional Inherited Members

- Public Types inherited from Marble::AbstractProjection
enum  PreservationType { NoPreservation, Conformal, EqualArea }
 
enum  SurfaceType {
  Cylindrical, Pseudocylindrical, Hybrid, Conical,
  Pseudoconical, Azimuthal
}
 
- Protected Attributes inherited from Marble::AbstractProjection
const QScopedPointer< AbstractProjectionPrivate > d_ptr
 

Detailed Description

A base class for the Equirectangular and Mercator projections in Marble.

Definition at line 28 of file CylindricalProjection.h.

Member Function Documentation

QPainterPath Marble::CylindricalProjection::mapShape ( const ViewportParams viewport) const
overridevirtual

Returns the shape/outline of a map projection.

This call allows e.g. to draw the default background color of the map itself.

Example: For an azimuthal projection a circle is returned at low zoom values.

Implements Marble::AbstractProjection.

Definition at line 49 of file CylindricalProjection.cpp.

bool Marble::CylindricalProjection::repeatableX ( ) const
inlineoverridevirtual

Returns whether the projection allows for wrapping in x direction (along the longitude scale).

Example: Cylindrical projections allow for repeating.

Reimplemented from Marble::AbstractProjection.

Definition at line 37 of file CylindricalProjection.h.

bool Marble::CylindricalProjection::traversablePoles ( ) const
inlineoverridevirtual

Returns whether the projection allows to navigate seamlessly "over" the pole.

Example: Azimuthal projections.

Reimplemented from Marble::AbstractProjection.

Definition at line 39 of file CylindricalProjection.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Dec 2 2021 23:11:54 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.