marble
MarbleAbstractPresenter.cpp
Go to the documentation of this file.
57 void MarbleAbstractPresenter::rotateBy(const qreal deltaLon, const qreal deltaLat, FlyToMode mode)
389 map()->viewport()->setFocusPoint(GeoDataCoordinates(destLon, destLat, 0, GeoDataCoordinates::Degree));
void zoomOut(FlyToMode mode=Automatic)
Definition: MarbleAbstractPresenter.cpp:248
qreal moveStep() const
Definition: MarbleAbstractPresenter.cpp:299
void centerOn(const qreal lon, const qreal lat, bool animated=false)
Definition: MarbleAbstractPresenter.cpp:410
qreal height(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the height of the latitude interval.
Definition: GeoDataLatLonBox.cpp:255
const GeoDataLookAt * lookAt() const
Returns GeoDataLookAt object if lookAt is setup earlier otherwise It will convert GeoDataCoordinates ...
Definition: GeoDataPlacemark.cpp:162
GeoDataLatLonAltBox latLonAltBox(const QRect &screenRect) const
Definition: ViewportParams.cpp:317
void updateRequired()
A sane value is chosen automatically depending on animation settings and the action.
Definition: MarbleGlobal.h:174
ViewportParams * viewport()
Definition: MarbleAbstractPresenter.cpp:564
virtual bool isEmpty() const
Indicates whether the bounding box is not initialised (and contains nothing).
Definition: GeoDataLatLonBox.cpp:768
void zoomAt(const QPoint &pos, qreal newDistance)
Definition: MarbleAbstractPresenter.cpp:348
qreal width(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the width of the longitude interval.
Definition: GeoDataLatLonBox.cpp:236
MarbleLocale::MeasurementSystem measurementSystem() const
Definition: MarbleLocale.cpp:45
void setProjection(Projection newProjection)
Definition: ViewportParams.cpp:139
void flyTo(const GeoDataLookAt &target, FlyToMode mode=Instant)
Initiate an animation to the target according to the given mode.
Definition: MarblePhysics.cpp:123
qreal longitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the longitude of the GeoDataLookAt object use the unit parameter to switch between Radian a...
Definition: GeoDataLookAt.cpp:104
bool geoCoordinates(const int x, const int y, qreal &lon, qreal &lat, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Degree) const
Get the earth coordinates corresponding to a pixel in the map.
Definition: ViewportParams.cpp:391
void rotateBy(const qreal deltaLon, const qreal deltaLat, FlyToMode mode=Instant)
Definition: MarbleAbstractPresenter.cpp:57
void setRadius(int radius)
Definition: MarbleAbstractPresenter.cpp:316
ViewContext
This enum is used to choose context in which map quality gets used.
Definition: MarbleGlobal.h:74
QPoint bottomRight() const
int preferredRadiusFloor(int radius)
Definition: MarbleMap.cpp:391
MarbleModel * model()
Definition: MarbleAbstractPresenter.cpp:554
void moveTo(const QPoint &pos, qreal factor)
Definition: MarbleAbstractPresenter.cpp:393
GeoDataCoordinates coordinate(const QDateTime &dateTime=QDateTime(), bool *iconAtCoordinates=0) const
Return the coordinates of the placemark at time dateTime as a GeoDataCoordinates. ...
Definition: GeoDataPlacemark.cpp:172
qreal viewAngle() const
Definition: MarbleAbstractPresenter.cpp:539
void distanceChanged(const QString &distanceString)
void setCenterLongitude(qreal lon, FlyToMode mode)
Definition: MarbleAbstractPresenter.cpp:477
MapQuality
This enum is used to choose the map quality shown in the view.
Definition: MarbleGlobal.h:82
qreal distanceFromRadius(qreal radius) const
Definition: MarbleAbstractPresenter.cpp:148
int radius() const
Definition: MarbleAbstractPresenter.cpp:311
bool animationsEnabled() const
Definition: MarbleAbstractPresenter.cpp:514
const Planet * planet() const
Returns the planet object for the current map.
Definition: MarbleModel.cpp:644
void goHome(FlyToMode mode=Automatic)
Definition: MarbleAbstractPresenter.cpp:276
void setLongitude(qreal longitude, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
set the longitude in a GeoDataLookAt object
Definition: GeoDataLookAt.cpp:98
QString tr(const char *sourceText, const char *disambiguation, int n)
void setViewContext(ViewContext viewContext)
Definition: MarbleMap.cpp:317
qreal range() const
Retrieve the distance (in meters) between the camera and the object looked at.
Definition: GeoDataLookAt.cpp:120
int x() const
int y() const
int maximumZoom() const
Definition: MarbleAbstractPresenter.cpp:185
void moveByStep(int stepsRight, int stepsDown, FlyToMode mode=Automatic)
Rotate the globe in the given direction in discrete steps.
Definition: MarbleAbstractPresenter.cpp:291
GeoDataGeometry * geometry()
The geometry of the GeoDataPlacemark is to be rendered to the marble map along with the icon at the c...
Definition: GeoDataPlacemark.cpp:152
virtual ~MarbleAbstractPresenter()
Definition: MarbleAbstractPresenter.cpp:43
qreal altitude() const
return the altitude of the Point in meters
Definition: GeoDataCoordinates.cpp:1197
qreal north(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the northern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:93
qreal east(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the eastern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:135
void setFocusPoint(const GeoDataCoordinates &focusPoint)
Change the point of focus, overridding any previously set focus point.
Definition: ViewportParams.cpp:427
int maximumZoom() const
return the minimum zoom value for the current map theme.
Definition: MarbleMap.cpp:430
void zoomChanged(int zoom)
void setRange(qreal range)
Change the distance (in meters) between the camera and the object looked at.
Definition: GeoDataLookAt.cpp:114
void flyTo(const GeoDataLookAt &newLookAt, FlyToMode mode=Automatic)
Definition: MarbleAbstractPresenter.cpp:77
void setAnimationsEnabled(bool enabled)
Definition: MarbleAbstractPresenter.cpp:519
void home(qreal &lon, qreal &lat, int &zoom) const
get the home point
Definition: MarbleModel.cpp:446
qreal radiusFromDistance(qreal distance) const
Definition: MarbleAbstractPresenter.cpp:164
bool screenCoordinates(const qreal lon, const qreal lat, qreal &x, qreal &y) const
Get the screen coordinates corresponding to geographical coordinates in the map.
Definition: ViewportParams.cpp:357
int polarity() const
Definition: MarbleAbstractPresenter.cpp:170
qreal latitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the latitude of the GeoDataLookAt object use the unit parameter to switch between Radian an...
Definition: GeoDataLookAt.cpp:93
void centerOn(qreal lon, qreal lat)
Definition: ViewportParams.cpp:210
qreal centerLatitude() const
Definition: MarbleAbstractPresenter.cpp:482
int minimumZoom() const
return the minimum zoom value for the current map theme.
Definition: MarbleMap.cpp:422
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
bool geoCoordinates(int x, int y, qreal &lon, qreal &lat, GeoDataCoordinates::Unit=GeoDataCoordinates::Degree) const
Get the earth coordinates corresponding to a pixel in the map.
Definition: MarbleMap.cpp:686
virtual GeoDataCoordinates center() const
returns the center of this box
Definition: GeoDataLatLonBox.cpp:276
void setSelection(const QRect ®ion)
Definition: MarbleAbstractPresenter.cpp:588
int minimumZoom() const
Definition: MarbleAbstractPresenter.cpp:180
This file contains the headers for ViewportParams.
Definition: GeoDataLookAt.h:23
qreal centerLatitude() const
Definition: ViewportParams.cpp:294
qreal zoomFromDistance(qreal distance) const
Definition: MarbleAbstractPresenter.cpp:271
FlyToMode
Describes possible flight mode (interpolation between source and target camera positions) ...
Definition: MarbleGlobal.h:173
ViewContext viewContext() const
Definition: MarbleAbstractPresenter.cpp:492
qreal distanceFromZoom(qreal zoom) const
Definition: MarbleAbstractPresenter.cpp:266
qreal west(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the western boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:156
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
qreal centerLongitude() const
Return the longitude of the center point.
Definition: MarbleMap.cpp:414
MarbleAbstractPresenter()
Definition: MarbleAbstractPresenter.cpp:31
void setZoom(int newZoom, FlyToMode mode=Instant)
Definition: MarbleAbstractPresenter.cpp:190
qreal distance() const
Definition: MarbleAbstractPresenter.cpp:143
qreal centerLongitude() const
Definition: ViewportParams.cpp:289
int logzoom() const
Definition: MarbleAbstractPresenter.cpp:524
Definition: Quaternion.h:41
void zoomIn(FlyToMode mode=Automatic)
Definition: MarbleAbstractPresenter.cpp:230
qreal south(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
Get the southern boundary of the bounding box.
Definition: GeoDataLatLonBox.cpp:114
void zoomView(int zoom, FlyToMode mode=Instant)
Definition: MarbleAbstractPresenter.cpp:220
QPoint topLeft() const
void zoomViewBy(int zoomStep, FlyToMode mode=Instant)
Definition: MarbleAbstractPresenter.cpp:225
void setDistance(qreal newDistance)
Definition: MarbleAbstractPresenter.cpp:574
Definition: MarbleGlobal.h:277
virtual const GeoDataLatLonAltBox & latLonAltBox() const
Definition: GeoDataGeometry.cpp:122
void centerOn(const qreal lon, const qreal lat)
Center the view on a geographical point.
Definition: MarbleMap.cpp:643
qreal centerLongitude() const
Definition: MarbleAbstractPresenter.cpp:487
int zoomStep() const
Definition: MarbleAbstractPresenter.cpp:534
void getSpherical(qreal &lon, qreal &lat) const
Definition: Quaternion.cpp:48
void setAltitude(qreal altitude)
set the altitude in a GeoDataLookAt object
Definition: GeoDataLookAt.cpp:76
void setLogzoom(int value)
Definition: MarbleAbstractPresenter.cpp:529
void regionSelected(const QList< double > &)
This signal is emitted when a new rectangle region is selected over the map The list of double values...
void setCenterLatitude(qreal lat, FlyToMode mode)
Definition: MarbleAbstractPresenter.cpp:472
GeoDataLookAt lookAt() const
Definition: MarbleAbstractPresenter.cpp:131
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
int preferredRadiusCeil(int radius)
Definition: MarbleMap.cpp:382
void setLatitude(qreal latitude, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
set the latitude in a GeoDataLookAt object
Definition: GeoDataLookAt.cpp:87
Linear interpolation of lon, lat and distance to ground.
Definition: MarbleGlobal.h:176
void setCoordinates(const GeoDataCoordinates &coordinates)
set the GeoDataCoordinates object
Definition: GeoDataLookAt.cpp:66
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:51
QString distanceString() const
Definition: MarbleAbstractPresenter.cpp:105
void setViewContext(ViewContext viewContext)
Definition: MarbleAbstractPresenter.cpp:497
MapQuality mapQuality(ViewContext viewContext) const
Definition: MarbleMap.cpp:307
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.