marble
#include <GeoPhotoGraphicsItem.h>
![Inheritance graph](classMarble_1_1GeoPhotoGraphicsItem__inherit__graph.png)
Public Member Functions | |
GeoPhotoGraphicsItem (const GeoDataFeature *feature) | |
virtual const GeoDataLatLonAltBox & | latLonAltBox () const |
virtual void | paint (GeoPainter *painter, const ViewportParams *viewport) |
QImage | photo () const |
QString | photoPath () const |
GeoDataPoint | point () const |
void | setPhoto (const QImage &photo) |
void | setPhotoFile (const QString &filename) |
void | setPoint (const GeoDataPoint &point) |
![]() | |
GeoGraphicsItem (const GeoDataFeature *feature) | |
virtual | ~GeoGraphicsItem () |
const GeoDataFeature * | feature () const |
GeoGraphicsItemFlags | flags () const |
int | minZoomLevel () const |
void | setFlag (GeoGraphicsItemFlag flag, bool enabled=true) |
void | setFlags (GeoGraphicsItemFlags flags) |
void | setLatLonAltBox (const GeoDataLatLonAltBox &latLonAltBox) |
void | setMinZoomLevel (int zoomLevel) |
void | setStyle (const GeoDataStyle *style) |
void | setVisible (bool visible) |
void | setZValue (qreal z) |
const GeoDataStyle * | style () const |
bool | visible () const |
qreal | zValue () const |
Protected Attributes | |
QImage | m_photo |
QString | m_photoPath |
GeoDataPoint | m_point |
Additional Inherited Members | |
![]() | |
enum | GeoGraphicsItemFlag { NoOptions = 0x0, ItemIsMovable = 0x1, ItemIsSelectable = 0x2, ItemIsVisible = 0x4 } |
![]() | |
GeoGraphicsItemPrivate * | p () const |
Detailed Description
Definition at line 23 of file GeoPhotoGraphicsItem.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 23 of file GeoPhotoGraphicsItem.cpp.
Member Function Documentation
|
virtual |
Returns the bounding box covered by the item.
Reimplemented from Marble::GeoGraphicsItem.
Definition at line 100 of file GeoPhotoGraphicsItem.cpp.
|
virtual |
Paints the item using the given GeoPainter.
Note that depending on the projection and zoom level, the item may be visible more than once, which is taken care of by GeoPainter.
- Todo:
- FIXME: need access to MarbleModel here ideally
- Todo:
- : Taken from MarbleWidgetPrivate
- Todo:
- : Extract the distance between camera and photo from kml
- Todo:
- : Load in a thread
Implements Marble::GeoGraphicsItem.
Definition at line 48 of file GeoPhotoGraphicsItem.cpp.
QImage Marble::GeoPhotoGraphicsItem::photo | ( | ) | const |
Definition at line 33 of file GeoPhotoGraphicsItem.cpp.
QString Marble::GeoPhotoGraphicsItem::photoPath | ( | ) | const |
Definition at line 43 of file GeoPhotoGraphicsItem.cpp.
GeoDataPoint Marble::GeoPhotoGraphicsItem::point | ( | ) | const |
Definition at line 110 of file GeoPhotoGraphicsItem.cpp.
void Marble::GeoPhotoGraphicsItem::setPhoto | ( | const QImage & | photo | ) |
Definition at line 28 of file GeoPhotoGraphicsItem.cpp.
void Marble::GeoPhotoGraphicsItem::setPhotoFile | ( | const QString & | filename | ) |
Definition at line 38 of file GeoPhotoGraphicsItem.cpp.
void Marble::GeoPhotoGraphicsItem::setPoint | ( | const GeoDataPoint & | point | ) |
Definition at line 105 of file GeoPhotoGraphicsItem.cpp.
Member Data Documentation
|
protected |
Definition at line 47 of file GeoPhotoGraphicsItem.h.
|
protected |
Definition at line 49 of file GeoPhotoGraphicsItem.h.
|
protected |
Definition at line 45 of file GeoPhotoGraphicsItem.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.