File indexing completed on 2025-01-05 03:59:02
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2012 Dennis Nienhüser <nienhueser@kde.org> 0004 // 0005 0006 #ifndef MARBLE_GEOPHOTOGRAPHICSITEM_H 0007 #define MARBLE_GEOPHOTOGRAPHICSITEM_H 0008 0009 #include "GeoDataPoint.h" 0010 #include "GeoGraphicsItem.h" 0011 #include "digikam_export.h" 0012 0013 #include <QImage> 0014 0015 namespace Marble 0016 { 0017 0018 class DIGIKAM_EXPORT GeoPhotoGraphicsItem : public GeoGraphicsItem 0019 { 0020 public: 0021 explicit GeoPhotoGraphicsItem( const GeoDataFeature *feature ); 0022 0023 void setPoint( const GeoDataPoint& point ); 0024 0025 GeoDataPoint point() const; 0026 0027 void paint(GeoPainter* painter, const ViewportParams *viewport, const QString &layer, int tileZoomLevel) override; 0028 0029 const GeoDataLatLonAltBox& latLonAltBox() const override; 0030 0031 bool contains(const QPoint &point, const ViewportParams *viewport) const override; 0032 0033 protected: 0034 GeoDataPoint m_point; 0035 0036 QImage m_photo; 0037 }; 0038 0039 } 0040 0041 #endif