1// Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "qabstractclipblendnode.h"
5#include "qabstractclipblendnode_p.h"
6
7QT_BEGIN_NAMESPACE
8
9namespace Qt3DAnimation {
10
11QAbstractClipBlendNodePrivate::QAbstractClipBlendNodePrivate()
12 : Qt3DCore::QNodePrivate()
13{
14}
15
16/*!
17 \qmltype AbstractClipBlendNode
18 \instantiates Qt3DAnimation::QAbstractClipBlendNode
19 \inqmlmodule Qt3D.Animation
20 \since 5.9
21
22 \brief AbstractClipBlendNode is the base class for types used to construct animation blend
23 trees.
24
25 Animation blend trees are used with a BlendedClipAnimator to dynamically blend a set of
26 animation clips together. The way in which the blending of animation clips is performed is
27 controlled by the structure of the blend tree and the properties on the nodes it contains.
28
29 The leaf nodes in a blend tree are containers for the input animation clips. These clips can be
30 baked clips read from file via AnimationClipLoader, or they can be clips that you build within
31 your application with AnimatitonClip and AnimationClipData. To include a clip in your blend
32 tree, wrap it in a ClipBlendValue node.
33
34 The interior nodes of a blend tree represent blending operations that will be applied to their
35 arguments which hold the input clips or even entire sub-trees of other blend tree nodes.
36
37 At present, the Qt 3D Animation module provides the following blend tree node types:
38
39 \list
40 \li Qt3D.Animation.ClipBlendValue
41 \li Qt3D.Animation.LerpClipBlend
42 \li Qt3D.Animation.QAdditiveClipBlend
43 \endlist
44
45 Additional node types representing other blending operations will be added in the future.
46
47 \sa BlendedClipAnimator
48*/
49
50/*!
51 \class Qt3DAnimation::QAbstractClipBlendNode
52 \inherits Qt3DCore::QNode
53
54 \inmodule Qt3DAnimation
55 \since 5.9
56
57 \brief QAbstractClipBlendNode is the base class for types used to construct animation blend
58 trees.
59
60 Animation blend trees are used with a QBlendedClipAnimator to dynamically blend a set of
61 animation clips together. The way in which the blending of animation clips is performed is
62 controlled by the structure of the blend tree and the properties on the nodes it contains.
63
64 The leaf nodes in a blend tree are containers for the input animation clips. These clips can be
65 baked clips read from file via QAnimationClipLoader, or they can be clips that you build within
66 your application with QAnimatitonClip and QAnimationClipData. To include a clip in your blend
67 tree, wrap it in a QClipBlendValue node.
68
69 The interior nodes of a blend tree represent blending operations that will be applied to their
70 arguments which hold the input clips or even entire sub-trees of other blend tree nodes.
71
72 At present, the Qt 3D Animation module provides the following blend tree node types:
73
74 \list
75 \li Qt3DAnimation::QClipBlendValue
76 \li Qt3DAnimation::QLerpClipBlend
77 \li Qt3DAnimation::QAdditiveClipBlend
78 \endlist
79
80 Additional node types representing other blending operations will be added in the future.
81
82 \sa QBlendedClipAnimator
83*/
84
85/*! \internal */
86QAbstractClipBlendNode::QAbstractClipBlendNode(Qt3DCore::QNode *parent)
87 : Qt3DCore::QNode(*new QAbstractClipBlendNodePrivate(), parent)
88{
89}
90
91/*! \internal */
92QAbstractClipBlendNode::QAbstractClipBlendNode(QAbstractClipBlendNodePrivate &dd, Qt3DCore::QNode *parent)
93 : Qt3DCore::QNode(dd, parent)
94{
95}
96
97QAbstractClipBlendNode::~QAbstractClipBlendNode()
98{
99}
100
101} // Qt3DAnimation
102
103QT_END_NAMESPACE
104
105#include "moc_qabstractclipblendnode.cpp"
106

source code of qt3d/src/animation/frontend/qabstractclipblendnode.cpp