Marble

GeoTrackGraphicsItem.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2011 Guillaume Martres <[email protected]>
4 //
5 
6 #ifndef MARBLE_GEOTRACKGRAPHICSITEM_H
7 #define MARBLE_GEOTRACKGRAPHICSITEM_H
8 
9 #include "GeoLineStringGraphicsItem.h"
10 
11 namespace Marble
12 {
13 
14 class GeoDataPlacemark;
15 class GeoDataTrack;
16 
17 class MARBLE_EXPORT GeoTrackGraphicsItem : public GeoLineStringGraphicsItem
18 {
19 
20 public:
21  explicit GeoTrackGraphicsItem(const GeoDataPlacemark *placemark, const GeoDataTrack *track);
22 
23  void paint(GeoPainter *painter, const ViewportParams *viewport, const QString &layer, int tileZoomLevel) override;
24 
25 private:
26  void setTrack(const GeoDataTrack *track);
27 
28  const GeoDataTrack *m_track;
29  void update();
30 };
31 
32 }
33 
34 #endif // MARBLE_GEOTRACKGRAPHICSITEM_H
Binds a QML item to a specific geodetic location in screen coordinates.
void update(Part *part, const QByteArray &data, qint64 dataSize)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Oct 4 2023 04:09:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.