Qt 6.x
The Qt SDK
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{
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
45
46private Q_SLOTS:
47 void onJointChanged(QQuick3DNode *node);
48 void onJointDestroyed(QObject *object);
49
50private:
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
60
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:74
\inmodule QtCore
Definition qobject.h:90
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
virtual QSSGRenderGraphObject * updateSpatialNode(QSSGRenderGraphObject *node)
virtual void markAllDirty()
void inverseBindPosesChanged()
QQmlListProperty< QQuick3DNode > joints()
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:70
QList< int > list
[14]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent