Marble
AbstractProjection.cpp
168}
170bool AbstractProjection::screenCoordinates(const qreal lon, const qreal lat, const ViewportParams *viewport, qreal &x, qreal &y) const
177bool AbstractProjection::screenCoordinates(const GeoDataCoordinates &geopoint, const ViewportParams *viewport, qreal &x, qreal &y) const
184GeoDataLatLonAltBox AbstractProjection::latLonAltBox(const QRect &screenRect, const ViewportParams *viewport) const
207 if (geoCoordinates(mapRect.right(), mapRect.top(), viewport, lon, lat, GeoDataCoordinates::Radian)) {
211 if (geoCoordinates(mapRect.right(), mapRect.bottom(), viewport, lon, lat, GeoDataCoordinates::Radian)) {
241 if (latLonAltBox.north() > maxLat() || screenCoordinates(maxLatPoint, viewport, dummyX, dummyY)) {
244 if (latLonAltBox.north() < minLat() || screenCoordinates(minLatPoint, viewport, dummyX, dummyY)) {
This file contains the headers for AbstractProjection.
This file contains the headers for ViewportParams.
A base class for all projections in Marble.
Definition AbstractProjection.h:45
qreal minLat() const
Returns the arbitrarily chosen minimum (southern) latitude.
Definition AbstractProjection.cpp:118
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:170
qreal maxLat() const
Returns the arbitrarily chosen maximum (northern) latitude.
Definition AbstractProjection.cpp:96
virtual bool geoCoordinates(const int x, const int y, const ViewportParams *viewport, qreal &lon, qreal &lat, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Degree) const =0
Get the earth coordinates corresponding to a pixel in the map.
virtual QPainterPath mapShape(const ViewportParams *viewport) const =0
Returns the shape/outline of a map projection.
virtual bool traversablePoles() const
Returns whether the projection allows to navigate seamlessly "over" the pole.
Definition AbstractProjection.cpp:140
virtual qreal maxValidLat() const
Returns the maximum (northern) latitude that is mathematically defined and reasonable.
Definition AbstractProjection.cpp:91
virtual bool isClippedToSphere() const
Defines whether a projection is supposed to be clipped to a certain radius.
Definition AbstractProjection.cpp:160
virtual bool repeatableX() const
Returns whether the projection allows for wrapping in x direction (along the longitude scale).
Definition AbstractProjection.cpp:135
virtual GeoDataLatLonAltBox latLonAltBox(const QRect &screenRect, const ViewportParams *viewport) const
Returns a GeoDataLatLonAltBox bounding box of the given screenrect inside the given viewport.
Definition AbstractProjection.cpp:184
virtual qreal minValidLat() const
Returns the minimum (southern) latitude that is mathematically defined and reasonable.
Definition AbstractProjection.cpp:113
A class that defines a 3D bounding box for geographic data.
Definition GeoDataLatLonAltBox.h:40
qreal north(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the northern boundary of the bounding box.
Definition GeoDataLatLonBox.cpp:80
qreal east(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the eastern boundary of the bounding box.
Definition GeoDataLatLonBox.cpp:122
qreal west(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the western boundary of the bounding box.
Definition GeoDataLatLonBox.cpp:143
A LineString that allows to store a contiguous set of line segments.
Definition GeoDataLineString.h:66
const GeoDataLatLonAltBox & latLonAltBox() const override
Returns the smallest latLonAltBox that contains the LineString.
Definition GeoDataLineString.cpp:786
A public class that controls what is visible in the viewport of a Marble map.
Definition ViewportParams.h:41
Binds a QML item to a specific geodetic location in screen coordinates.
Definition AbstractDataPlugin.cpp:23
int bottom() const const
QRect intersected(const QRect &rectangle) const const
int left() const const
int right() const const
int top() const const
QRect boundingRect() const const
Q_D(Todo)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.