Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qquick3dmorphtarget_p.h
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
#
ifndef
QSSGMORPHTARGET_H
7
#
define
QSSGMORPHTARGET_H
8
9
//
10
// W A R N I N G
11
// -------------
12
//
13
// This file is not part of the Qt API. It exists purely as an
14
// implementation detail. This header file may change from version to
15
// version without notice, or even be removed.
16
//
17
// We mean it.
18
//
19
20
#
include
<
QtQuick3D
/
private
/
qquick3dobject_p
.
h
>
21
22
#
include
<
QtQml
/
QQmlListProperty
>
23
24
#
include
<
QtCore
/
QVector
>
25
#
include
<
QtCore
/
QUrl
>
26
27
QT_BEGIN_NAMESPACE
28
class
QQuick3DModel;
29
30
class
Q_QUICK3D_EXPORT
QQuick3DMorphTarget
:
public
QQuick3DObject
31
{
32
Q_OBJECT
33
Q_PROPERTY(
float
weight READ weight WRITE setWeight NOTIFY weightChanged)
34
Q_PROPERTY(MorphTargetAttributes attributes READ attributes WRITE setAttributes NOTIFY attributesChanged)
35
QML_NAMED_ELEMENT(MorphTarget)
36
QML_ADDED_IN_VERSION(6, 0)
37
38
public
:
39
enum
class
MorphTargetAttribute {
40
Position = 0x01,
41
Normal = 0x02,
42
Tangent = 0x04,
43
Binormal = 0x08,
44
TexCoord0 = 0x10,
45
TexCoord1 = 0x20,
46
Color = 0x40
47
};
48
Q_ENUM(MorphTargetAttribute)
49
Q_DECLARE_FLAGS(MorphTargetAttributes , MorphTargetAttribute)
50
Q_FLAG(MorphTargetAttributes)
51
52
explicit
QQuick3DMorphTarget(QQuick3DObject *parent =
nullptr
);
53
~QQuick3DMorphTarget() override;
54
55
float
weight()
const
;
56
MorphTargetAttributes attributes()
const
;
57
58
public
Q_SLOTS:
59
void
setWeight(
float
castsShadows);
60
void
setAttributes(QQuick3DMorphTarget::MorphTargetAttributes attributes);
61
Q_SIGNALS:
62
void
weightChanged();
63
void
attributesChanged();
64
65
private
:
66
friend
QQuick3DModel;
67
QSSGRenderGraphObject *updateSpatialNode(QSSGRenderGraphObject *node) override;
68
void
markAllDirty() override;
69
size_t numAttribs();
70
71
enum
QSSGMorphTargetDirtyType {
72
WeightDirty = 0x00000001,
73
MorphTargetAttributesDirty = 0x00000002,
74
};
75
76
quint32 m_dirtyAttributes = 0xffffffff;
// all dirty by default
77
void
markDirty(QSSGMorphTargetDirtyType type);
78
79
float
m_weight = 0.0;
80
MorphTargetAttributes m_attributes = MorphTargetAttribute::Position;
81
size_t m_numAttribs = 1;
82
};
83
84
QT_END_NAMESPACE
85
86
#
endif
// QSSGMORPHTARGET_H
QQuick3DMorphTarget
Definition
qquick3dmorphtarget_p.h:31
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtquick3d
src
quick3d
qquick3dmorphtarget_p.h
Generated on
for Qt by
1.18.0