8#ifndef OFILABS_KINETICMODEL
9#define OFILABS_KINETICMODEL
13#include <QScopedPointer>
15class KineticModelPrivate;
17class KineticModel :
public QObject
20 Q_PROPERTY(
int duration READ duration WRITE setDuration)
22 Q_PROPERTY(
int updateInterval READ updateInterval WRITE setUpdateInterval)
26 ~KineticModel()
override;
30 int updateInterval()
const;
31 bool hasVelocity()
const;
34 void setDuration(
int ms);
35 void setPosition(
const QPointF &position);
36 void setPosition(qreal posX, qreal posY);
37 void setHeading(qreal heading);
38 void jumpToPosition(
const QPointF &position);
39 void jumpToPosition(qreal posX, qreal posY);
40 void setUpdateInterval(
int ms);
45 void positionChanged(qreal lon, qreal lat);
46 void headingChanged(qreal heading);
54 Q_DECLARE_PRIVATE(KineticModel)
55 Q_DISABLE_COPY(KineticModel);
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:45 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.