1/****************************************************************************
2**
3** Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB).
4** Contact: http://www.qt-project.org/legal
5**
6** This file is part of the Qt3D module of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:LGPL3$
9** Commercial License Usage
10** Licensees holding valid commercial Qt licenses may use this file in
11** accordance with the commercial license agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and The Qt Company. For licensing terms
14** and conditions see http://www.qt.io/terms-conditions. For further
15** information use the contact form at http://www.qt.io/contact-us.
16**
17** GNU Lesser General Public License Usage
18** Alternatively, this file may be used under the terms of the GNU Lesser
19** General Public License version 3 as published by the Free Software
20** Foundation and appearing in the file LICENSE.LGPLv3 included in the
21** packaging of this file. Please review the following information to
22** ensure the GNU Lesser General Public License version 3 requirements
23** will be met: https://www.gnu.org/licenses/lgpl.html.
24**
25** GNU General Public License Usage
26** Alternatively, this file may be used under the terms of the GNU
27** General Public License version 2.0 or later as published by the Free
28** Software Foundation and appearing in the file LICENSE.GPL included in
29** the packaging of this file. Please review the following information to
30** ensure the GNU General Public License version 2.0 requirements will be
31** met: http://www.gnu.org/licenses/gpl-2.0.html.
32**
33** $QT_END_LICENSE$
34**
35****************************************************************************/
36
37#include "qabstractclipblendnode.h"
38#include "qabstractclipblendnode_p.h"
39
40QT_BEGIN_NAMESPACE
41
42namespace Qt3DAnimation {
43
44QAbstractClipBlendNodePrivate::QAbstractClipBlendNodePrivate()
45 : Qt3DCore::QNodePrivate()
46{
47}
48
49/*!
50 \qmltype AbstractClipBlendNode
51 \instantiates Qt3DAnimation::QAbstractClipBlendNode
52 \inqmlmodule Qt3D.Animation
53 \since 5.9
54
55 \brief AbstractClipBlendNode is the base class for types used to construct animation blend
56 trees.
57
58 Animation blend trees are used with a BlendedClipAnimator to dynamically blend a set of
59 animation clips together. The way in which the blending of animation clips is performed is
60 controlled by the structure of the blend tree and the properties on the nodes it contains.
61
62 The leaf nodes in a blend tree are containers for the input animation clips. These clips can be
63 baked clips read from file via AnimationClipLoader, or they can be clips that you build within
64 your application with AnimatitonClip and AnimationClipData. To include a clip in your blend
65 tree, wrap it in a ClipBlendValue node.
66
67 The interior nodes of a blend tree represent blending operations that will be applied to their
68 arguments which hold the input clips or even entire sub-trees of other blend tree nodes.
69
70 At present, the Qt 3D Animation module provides the following blend tree node types:
71
72 \list
73 \li Qt3D.Animation.ClipBlendValue
74 \li Qt3D.Animation.LerpClipBlend
75 \li Qt3D.Animation.QAdditiveClipBlend
76 \endlist
77
78 Additional node types representing other blending operations will be added in the future.
79
80 \sa BlendedClipAnimator
81*/
82
83/*!
84 \class Qt3DAnimation::QAbstractClipBlendNode
85 \inherits Qt3DCore::QNode
86
87 \inmodule Qt3DAnimation
88 \since 5.9
89
90 \brief QAbstractClipBlendNode is the base class for types used to construct animation blend
91 trees.
92
93 Animation blend trees are used with a QBlendedClipAnimator to dynamically blend a set of
94 animation clips together. The way in which the blending of animation clips is performed is
95 controlled by the structure of the blend tree and the properties on the nodes it contains.
96
97 The leaf nodes in a blend tree are containers for the input animation clips. These clips can be
98 baked clips read from file via QAnimationClipLoader, or they can be clips that you build within
99 your application with QAnimatitonClip and QAnimationClipData. To include a clip in your blend
100 tree, wrap it in a QClipBlendValue node.
101
102 The interior nodes of a blend tree represent blending operations that will be applied to their
103 arguments which hold the input clips or even entire sub-trees of other blend tree nodes.
104
105 At present, the Qt 3D Animation module provides the following blend tree node types:
106
107 \list
108 \li Qt3DAnimation::QClipBlendValue
109 \li Qt3DAnimation::QLerpClipBlend
110 \li Qt3DAnimation::QAdditiveClipBlend
111 \endlist
112
113 Additional node types representing other blending operations will be added in the future.
114
115 \sa QBlendedClipAnimator
116*/
117
118/*! \internal */
119QAbstractClipBlendNode::QAbstractClipBlendNode(Qt3DCore::QNode *parent)
120 : Qt3DCore::QNode(*new QAbstractClipBlendNodePrivate(), parent)
121{
122}
123
124/*! \internal */
125QAbstractClipBlendNode::QAbstractClipBlendNode(QAbstractClipBlendNodePrivate &dd, Qt3DCore::QNode *parent)
126 : Qt3DCore::QNode(dd, parent)
127{
128}
129
130QAbstractClipBlendNode::~QAbstractClipBlendNode()
131{
132}
133
134} // Qt3DAnimation
135
136QT_END_NAMESPACE
137