Marble::CylindricalProjection
#include <CylindricalProjection.h>
Public Member Functions | |
QPainterPath | mapShape (const ViewportParams *viewport) const override |
bool | repeatableX () const override |
virtual bool | screenCoordinates (const GeoDataCoordinates &coordinates, const ViewportParams *viewport, qreal *x, qreal &y, int &pointRepeatNum, const QSizeF &size, bool &globeHidesPoint) const=0 |
bool | screenCoordinates (const GeoDataCoordinates &geopoint, 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 GeoDataLineString &lineString, const ViewportParams *viewport, QList< QPolygonF * > &polygons) const override |
bool | screenCoordinates (const qreal lon, const qreal lat, const ViewportParams *viewport, qreal &x, qreal &y) const |
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 GeoDataCoordinates &geopoint, const ViewportParams *viewport, qreal &x, qreal &y) const |
bool | screenCoordinates (const qreal lon, const qreal lat, const ViewportParams *viewport, qreal &x, qreal &y) const |
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.
Constructor & Destructor Documentation
◆ CylindricalProjection() [1/2]
Marble::CylindricalProjection::CylindricalProjection | ( | ) |
Definition at line 28 of file CylindricalProjection.cpp.
◆ CylindricalProjection() [2/2]
|
explicitprotected |
Definition at line 33 of file CylindricalProjection.cpp.
Member Function Documentation
◆ mapShape()
|
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 46 of file CylindricalProjection.cpp.
◆ repeatableX()
|
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 36 of file CylindricalProjection.h.
◆ screenCoordinates() [1/5]
|
virtual |
Get the coordinates of screen points for geographical coordinates in the map.
- Parameters
-
coordinates the point on earth, including altitude, that we want the coordinates for. viewport the viewport parameters x the x coordinates of the pixels are returned through this parameter y the y coordinate of the pixel is returned through this parameter pointRepeatNum the amount of times that a single geographical point gets represented on the map size the size globeHidesPoint whether the point gets hidden on the far side of the earth
- Returns
true
if the geographical coordinates are visible on the screenfalse
if the geographical coordinates are not visible on the screen
- See also
- ViewportParams
Implements Marble::AbstractProjection.
Reimplemented in Marble::EquirectProjection, and Marble::MercatorProjection.
◆ screenCoordinates() [2/5]
bool AbstractProjection::screenCoordinates | ( | const GeoDataCoordinates & | geopoint, |
const ViewportParams * | viewport, | ||
qreal & | x, | ||
qreal & | y ) const |
Definition at line 187 of file AbstractProjection.cpp.
◆ screenCoordinates() [3/5]
|
virtual |
Get the screen coordinates corresponding to geographical coordinates in the map.
- Parameters
-
geopoint the point on earth, including altitude, that we want the coordinates for. viewport the viewport parameters x the x coordinate of the pixel is returned through this parameter y the y coordinate of the pixel is returned through this parameter globeHidesPoint whether the point gets hidden on the far side of the earth
- Returns
true
if the geographical coordinates are visible on the screenfalse
if the geographical coordinates are not visible on the screen
- See also
- ViewportParams
Implements Marble::AbstractProjection.
Reimplemented in Marble::EquirectProjection, and Marble::MercatorProjection.
◆ screenCoordinates() [4/5]
|
overridevirtual |
Implements Marble::AbstractProjection.
Definition at line 72 of file CylindricalProjection.cpp.
◆ screenCoordinates() [5/5]
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
-
lon the lon coordinate of the requested pixel position in radians lat the lat coordinate of the requested pixel position in radians viewport the viewport parameters x the x coordinate of the pixel is returned through this parameter y the y coordinate of the pixel is returned through this parameter
- Returns
true
if the geographical coordinates are visible on the screenfalse
if the geographical coordinates are not visible on the screen
- See also
- ViewportParams
Definition at line 168 of file AbstractProjection.cpp.
◆ surfaceType()
|
inlineoverridevirtual |
Implements Marble::AbstractProjection.
Definition at line 50 of file CylindricalProjection.h.
◆ traversableDateLine()
|
inlineoverridevirtual |
Reimplemented from Marble::AbstractProjection.
Definition at line 45 of file CylindricalProjection.h.
◆ traversablePoles()
|
inlineoverridevirtual |
Returns whether the projection allows to navigate seamlessly "over" the pole.
Example: Azimuthal projections.
Reimplemented from Marble::AbstractProjection.
Definition at line 41 of file CylindricalProjection.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:51:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.