Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qquick3dquaternionanimation_p.h
Go to the documentation of this file.
1
// Copyright (C) 2020 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
6
#
ifndef
QQUICK3DQUATERNIONANIMATION_H
7
#
define
QQUICK3DQUATERNIONANIMATION_H
8
9
//
10
// W A R N I N G
11
// -------------
12
//
13
// This file is not part of the Qt API. It exists purely as an
14
// implementation detail. This header file may change from version to
15
// version without notice, or even be removed.
16
//
17
// We mean it.
18
//
19
20
#
include
<
QtGui
/
qquaternion
.
h
>
21
22
#
include
<
QtQuick3D
/
private
/
qquick3dobject_p
.
h
>
23
#
include
<
QtQuick
/
private
/
qquickanimation_p
.
h
>
24
25
QT_BEGIN_NAMESPACE
26
27
class
QQuick3DQuaternionAnimationPrivate;
28
29
class
Q_QUICK3D_EXPORT
QQuick3DQuaternionAnimation
:
public
QQuickPropertyAnimation
30
{
31
Q_OBJECT
32
Q_DECLARE_PRIVATE(QQuick3DQuaternionAnimation)
33
Q_PROPERTY(QQuaternion from READ from WRITE setFrom OVERRIDE)
34
Q_PROPERTY(QQuaternion to READ to WRITE setTo OVERRIDE)
35
Q_PROPERTY(Type type READ type WRITE setType NOTIFY typeChanged)
36
37
Q_PROPERTY(
float
fromXRotation READ fromXRotation WRITE setFromXRotation NOTIFY fromXRotationChanged)
38
Q_PROPERTY(
float
fromYRotation READ fromYRotation WRITE setFromYRotation NOTIFY fromYRotationChanged)
39
Q_PROPERTY(
float
fromZRotation READ fromZRotation WRITE setFromZRotation NOTIFY fromZRotationChanged)
40
Q_PROPERTY(
float
toXRotation READ toXRotation WRITE setToXRotation NOTIFY toXRotationChanged)
41
Q_PROPERTY(
float
toYRotation READ toYRotation WRITE setToYRotation NOTIFY toYRotationChanged)
42
Q_PROPERTY(
float
toZRotation READ toZRotation WRITE setToZRotation NOTIFY toZRotationChanged)
43
44
QML_NAMED_ELEMENT(QuaternionAnimation)
45
46
public
:
47
enum
Type {
48
Slerp = 0,
49
Nlerp
50
};
51
Q_ENUM(Type)
52
53
QQuick3DQuaternionAnimation(QObject *parent =
nullptr
);
54
55
QQuaternion from()
const
;
56
void
setFrom(
const
QQuaternion &f);
57
58
QQuaternion to()
const
;
59
void
setTo(
const
QQuaternion &t);
60
61
Type type()
const
;
62
void
setType(Type type);
63
64
float
fromXRotation()
const
;
65
void
setFromXRotation(
float
f);
66
67
float
fromYRotation()
const
;
68
void
setFromYRotation(
float
f);
69
70
float
fromZRotation()
const
;
71
void
setFromZRotation(
float
f);
72
73
float
toXRotation()
const
;
74
void
setToXRotation(
float
f);
75
76
float
toYRotation()
const
;
77
void
setToYRotation(
float
f);
78
79
float
toZRotation()
const
;
80
void
setToZRotation(
float
f);
81
82
Q_SIGNALS:
83
void
typeChanged(QQuick3DQuaternionAnimation::Type type);
84
void
fromXRotationChanged(
float
value);
85
void
fromYRotationChanged(
float
value);
86
void
fromZRotationChanged(
float
value);
87
void
toXRotationChanged(
float
value);
88
void
toYRotationChanged(
float
value);
89
void
toZRotationChanged(
float
value);
90
};
91
92
Q_QUICK3D_EXPORT
QVariant
q_quaternionInterpolator(
const
QQuaternion &from,
const
QQuaternion &to, qreal progress);
93
94
QT_END_NAMESPACE
95
96
#
endif
// QQUICK3DQUATERNIONANIMATION_H
QQuick3DQuaternionAnimationPrivate
\qmltype QuaternionAnimation \inherits PropertyAnimation \inqmlmodule QtQuick3D
Definition
qquick3dquaternionanimation.cpp:40
QQuick3DQuaternionAnimationPrivate::anglesFrom
QVector3D anglesFrom
Definition
qquick3dquaternionanimation.cpp:49
QQuick3DQuaternionAnimationPrivate::anglesTo
QVector3D anglesTo
Definition
qquick3dquaternionanimation.cpp:50
QQuick3DQuaternionAnimation
Definition
qquick3dquaternionanimation_p.h:30
QVariant
\inmodule QtCore
Definition
qvariant.h:68
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
q_quaternionInterpolator
QVariant q_quaternionInterpolator(const QQuaternion &from, const QQuaternion &to, qreal progress)
Definition
qquick3dquaternionanimation.cpp:54
q_quaternionNlerpInterpolator
QVariant q_quaternionNlerpInterpolator(const QQuaternion &from, const QQuaternion &to, qreal progress)
Definition
qquick3dquaternionanimation.cpp:59
qtquick3d
src
quick3d
qquick3dquaternionanimation_p.h
Generated on
for Qt by
1.18.0