Marble

GeoTrackGraphicsItem.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2011 Guillaume Martres <smarter@ubuntu.com>
4//
5
6#ifndef MARBLE_GEOTRACKGRAPHICSITEM_H
7#define MARBLE_GEOTRACKGRAPHICSITEM_H
8
9#include "GeoLineStringGraphicsItem.h"
10
11namespace Marble
12{
13
14class GeoDataPlacemark;
15class GeoDataTrack;
16
17class MARBLE_EXPORT GeoTrackGraphicsItem : public GeoLineStringGraphicsItem
18{
19
20public:
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
25private:
26 void setTrack(const GeoDataTrack *track);
27
28 const GeoDataTrack *m_track;
29 void update();
30};
31
32}
33
34#endif // MARBLE_GEOTRACKGRAPHICSITEM_H
void update(Part *part, const QByteArray &data, qint64 dataSize)
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 Fri Jul 12 2024 11:58:55 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.