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{
19public:
20 explicit GeoTrackGraphicsItem(const GeoDataPlacemark *placemark, const GeoDataTrack *track);
21
22 void paint(GeoPainter *painter, const ViewportParams *viewport, const QString &layer, int tileZoomLevel) override;
23
24private:
25 void setTrack(const GeoDataTrack *track);
26
27 const GeoDataTrack *m_track;
28 void update();
29};
30
31}
32
33#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 Nov 8 2024 12:02:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.