Marble

GeoPhotoGraphicsItem.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2012 Dennis Nienhüser <[email protected]>
4 //
5 
6 #ifndef MARBLE_GEOPHOTOGRAPHICSITEM_H
7 #define MARBLE_GEOPHOTOGRAPHICSITEM_H
8 
9 #include "GeoDataPoint.h"
10 #include "GeoGraphicsItem.h"
11 #include "marble_export.h"
12 
13 #include <QImage>
14 
15 namespace Marble
16 {
17 
18 class MARBLE_EXPORT GeoPhotoGraphicsItem : public GeoGraphicsItem
19 {
20 public:
21  explicit GeoPhotoGraphicsItem( const GeoDataFeature *feature );
22 
23  void setPoint( const GeoDataPoint& point );
24 
25  GeoDataPoint point() const;
26 
27  void paint(GeoPainter* painter, const ViewportParams *viewport, const QString &layer, int tileZoomLevel) override;
28 
29  const GeoDataLatLonAltBox& latLonAltBox() const override;
30 
31  bool contains(const QPoint &point, const ViewportParams *viewport) const override;
32 
33 protected:
34  GeoDataPoint m_point;
35 
36  QImage m_photo;
37 };
38 
39 }
40 
41 #endif
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:50:19 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.