Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquick3dskin_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QSSGSKIN_H
5#define QSSGSKIN_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtQuick3D/qquick3dobject.h>
19#include <QtQuick3D/private/qquick3dnode_p.h>
20#include <QtCore/qlist.h>
21#include <QtCore/qhash.h>
22
24
25class Q_QUICK3D_EXPORT QQuick3DSkin : public QQuick3DObject
26{
28 Q_PROPERTY(QQmlListProperty<QQuick3DNode> joints READ joints)
29 Q_PROPERTY(QList<QMatrix4x4> inverseBindPoses READ inverseBindPoses WRITE setInverseBindPoses NOTIFY inverseBindPosesChanged)
30
32
33public:
34 explicit QQuick3DSkin(QQuick3DObject *parent = nullptr);
35 ~QQuick3DSkin() override;
36
38 QList<QMatrix4x4> inverseBindPoses() const;
39
40public Q_SLOTS:
41 void setInverseBindPoses(const QList<QMatrix4x4> &poses);
42
44 void inverseBindPosesChanged();
45
47 void onJointChanged(QQuick3DNode *node);
48 void onJointDestroyed(QObject *object);
49
51 void markDirty();
52 void markAllDirty() override;
53
54 static void qmlAppendJoint(QQmlListProperty<QQuick3DNode> *list, QQuick3DNode *joint);
56 static qsizetype qmlJointsCount(QQmlListProperty<QQuick3DNode> *list);
57 static void qmlClearJoints(QQmlListProperty<QQuick3DNode> *list);
58
59 QSSGRenderGraphObject *updateSpatialNode(QSSGRenderGraphObject *node) override;
60
61 QVector<QQuick3DNode *> m_joints;
62 QByteArray m_boneData;
63 QList<QMatrix4x4> m_inverseBindPoses;
64 bool m_dirty = false;
65};
66
68
69#endif // QSSGSKIN_H
\inmodule QtCore
Definition qbytearray.h:57
Definition qlist.h:75
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
Definition qmatrix4x4.h:25
\inmodule QtCore
Definition qobject.h:103
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
Definition qqmllist.h:24
\qmltype Object3D \inqmlmodule QtQuick3D \instantiates QQuick3DObject \inherits QtObject
Combined button and popup list for selecting options.
GLuint index
[2]
#define QML_NAMED_ELEMENT(NAME)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
ptrdiff_t qsizetype
Definition qtypes.h:165
#define explicit
QList< int > list
[14]