Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquick3dskeleton.cpp
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
#
include
"qquick3dskeleton_p.h"
7
#
include
"qquick3dobject_p.h"
8
#
include
"qquick3dnode_p_p.h"
9
10
#
include
<
QtQuick3DRuntimeRender
/
private
/
qssgrenderskeleton_p
.
h
>
11
12
QT_BEGIN_NAMESPACE
13
14
/*!
15
\qmltype Skeleton
16
\inherits Node
17
\inqmlmodule QtQuick3D
18
\brief Defines a skeletal animation hierarchy.
19
20
A skeleton defines how a model can be animated using \l {Vertex Skinning}
21
{skeletal animation}. It contains a hierarchy of \l {Joint} nodes. Each joint can be
22
transformed for a skinning animation.
23
24
\qml
25
Skeleton {
26
id: qmlskeleton
27
Joint {
28
id: joint0
29
index: 0
30
skeletonRoot: qmlskeleton
31
Joint {
32
id: joint1
33
index: 1
34
skeletonRoot: qmlskeleton
35
}
36
}
37
}
38
\endqml
39
40
\sa {Joint::skeletonRoot}, {Model::skeleton}, {Qt Quick 3D - Simple Skinning Example#skeleton-and-joint-hierarchy}
41
*/
42
43
QQuick3DSkeleton::QQuick3DSkeleton(QQuick3DNode *parent)
44
: QQuick3DNode(*(
new
QQuick3DNodePrivate(QQuick3DNodePrivate::Type::Skeleton)), parent)
45
{
46
}
47
48
QQuick3DSkeleton::~QQuick3DSkeleton()
49
{
50
}
51
52
QSSGRenderGraphObject *QQuick3DSkeleton::updateSpatialNode(QSSGRenderGraphObject *node)
53
{
54
if
(!node)
55
node =
new
QSSGRenderSkeleton();
56
57
QQuick3DNode::updateSpatialNode(node);
58
59
auto
skeletonNode =
static_cast
<QSSGRenderSkeleton *>(node);
60
61
return
skeletonNode;
62
}
63
64
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtquick3d
src
quick3d
qquick3dskeleton.cpp
Generated on
for Qt by
1.16.1