Marble

GeoPhotoGraphicsItem.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2012 Dennis Nienhüser <nienhueser@kde.org>
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
15namespace Marble
16{
17
18class MARBLE_EXPORT GeoPhotoGraphicsItem : public GeoGraphicsItem
19{
20public:
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
33protected:
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-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.