Marble

AnimatedUpdateTrack.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <sanjiban22393@gmail.com>
4//
5
6#ifndef ANIMATEDUPDATETRACK_H
7#define ANIMATEDUPDATETRACK_H
8
9#include <QDateTime>
10#include <QTimer>
11
12namespace Marble
13{
14
15class GeoDataFeature;
16class GeoDataContainer;
17class GeoDataPlacemark;
18class PlaybackAnimatedUpdateItem;
19
20class AnimatedUpdateTrack : public QObject
21{
23
24public:
25 explicit AnimatedUpdateTrack( PlaybackAnimatedUpdateItem* item );
26 void setDelayBeforeTrackStarts( double delay );
27 double delayBeforeTrackStarts() const;
28 void play();
29 void pause();
30 void seek( double position );
31 void stop();
32 void setPaused( bool );
33
35 void balloonHidden();
36 void balloonShown( GeoDataPlacemark* );
37 void updated( GeoDataFeature* );
38 void added( GeoDataContainer *parent, GeoDataFeature *feature, int row );
39 void removed( const GeoDataFeature *feature );
40
41public Q_SLOTS:
42 void playSlot();
43
44private:
45 PlaybackAnimatedUpdateItem* m_item;
46 QDateTime m_playTime;
47 QDateTime m_pauseTime;
48 double m_delayBeforeTrackStarts;
49 double m_progress;
50 QTimer m_timer;
51 bool m_paused;
52};
53}
54#endif
Binds a QML item to a specific geodetic location in screen coordinates.
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 21 2024 12:00:06 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.