File indexing completed on 2025-01-05 03:59:03
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2011 Guillaume Martres <smarter@ubuntu.com> 0004 // 0005 0006 #ifndef MARBLE_GEOTRACKGRAPHICSITEM_H 0007 #define MARBLE_GEOTRACKGRAPHICSITEM_H 0008 0009 #include "GeoLineStringGraphicsItem.h" 0010 0011 namespace Marble 0012 { 0013 0014 class GeoDataPlacemark; 0015 class GeoDataTrack; 0016 0017 class DIGIKAM_EXPORT GeoTrackGraphicsItem : public GeoLineStringGraphicsItem 0018 { 0019 0020 public: 0021 explicit GeoTrackGraphicsItem(const GeoDataPlacemark *placemark, const GeoDataTrack *track); 0022 0023 void paint(GeoPainter *painter, const ViewportParams *viewport, const QString &layer, int tileZoomLevel) override; 0024 0025 private: 0026 void setTrack(const GeoDataTrack *track); 0027 0028 const GeoDataTrack *m_track; 0029 void update(); 0030 }; 0031 0032 } 0033 0034 #endif // MARBLE_GEOTRACKGRAPHICSITEM_H