Marble

PlaybackAnimatedUpdateItem.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <sanjiban22393@gmail.com>
4//
5
6#ifndef PLAYBACKANIMATEDUPDATEITEM_H
7#define PLAYBACKANIMATEDUPDATEITEM_H
8
9#include "PlaybackItem.h"
10
11namespace Marble
12{
13
14class GeoDataAnimatedUpdate;
15class GeoDataDocument;
16class GeoDataFeature;
17class GeoDataObject;
18
19class PlaybackAnimatedUpdateItem : public PlaybackItem
20{
22public:
23 explicit PlaybackAnimatedUpdateItem( GeoDataAnimatedUpdate *animatedUpdate );
24 const GeoDataAnimatedUpdate* animatedUpdate() const;
25 double duration() const override;
26 void play() override;
27 void pause() override;
28 void seek( double ) override;
29 void stop() override;
30 bool isApplied() const;
31
32private:
33 static bool canDelete(const GeoDataFeature &feature);
34 GeoDataDocument* rootDocument( GeoDataObject *object ) const;
35 GeoDataFeature* findFeature( GeoDataFeature* feature, const QString& id ) const;
36 GeoDataAnimatedUpdate* m_animatedUpdate;
37 QList<GeoDataFeature*> m_deletedObjects;
38 GeoDataDocument* m_rootDocument;
39 bool m_playing;
40};
41
42}
43#endif
Binds a QML item to a specific geodetic location in screen coordinates.
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 21 2024 12:00:07 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.