marble
GeoPhotoGraphicsItem.cpp
Go to the documentation of this file.
54 qreal const cameraDistance = 1000 * planetRadius * 0.4 / viewport->radius() / tan( 0.5 * viewAngle * DEG2RAD );
void setPhoto(const QImage &photo)
Definition: GeoPhotoGraphicsItem.cpp:28
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
GeoPhotoGraphicsItem(const GeoDataFeature *feature)
Definition: GeoPhotoGraphicsItem.cpp:23
Definition: GeoGraphicsItem.h:30
bool isNull() const
qreal altitude() const
return the altitude of the Point in meters
Definition: GeoDataCoordinates.cpp:1197
virtual void paint(GeoPainter *painter, const ViewportParams *viewport)
Paints the item using the given GeoPainter.
Definition: GeoPhotoGraphicsItem.cpp:48
void setPoint(const GeoDataPoint &point)
Definition: GeoPhotoGraphicsItem.cpp:105
bool isEmpty() const
virtual const GeoDataLatLonAltBox & latLonAltBox() const
Returns the bounding box covered by the item.
Definition: GeoPhotoGraphicsItem.cpp:100
QSize size() const
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
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
void moveCenter(const QPointF &position)
void drawImage(const GeoDataCoordinates ¢erPosition, const QImage &image)
Draws an image at the given position. The image is placed with its center located at the given center...
Definition: GeoPainter.cpp:428
bool isEmpty() const
This file contains the headers for ViewportParams.
QString photoPath() const
Definition: GeoPhotoGraphicsItem.cpp:43
QSize size() const
const GeoDataCoordinates & coordinates() const
Definition: GeoDataPoint.cpp:81
GeoDataPoint point() const
Definition: GeoPhotoGraphicsItem.cpp:110
virtual const GeoDataLatLonAltBox & latLonAltBox() const
Definition: GeoDataGeometry.cpp:122
qreal height() const
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
qreal width() const
void setPhotoFile(const QString &filename)
Definition: GeoPhotoGraphicsItem.cpp:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 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:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.