本页内容

Qt3DAnimation::QAbstractClipBlendNode Class

class Qt3DAnimation::QAbstractClipBlendNode

QAbstractClipBlendNode 是用于构建动画混合树的类型的基类。更多内容...

头文件: #include <qabstractclipblendnode.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
在 QML 中: AbstractClipBlendNode
继承自: Qt3DCore::QNode
被继承类:

Qt3DAnimation::QAdditiveClipBlend、Qt3DAnimation::QClipBlendValue 以及Qt3DAnimation::QLerpClipBlend

状态: 技术预览

该类处于技术预览阶段,内容可能会发生变更。

详细描述

动画混合树与QBlendedClipAnimator 配合使用,用于将一组动画片段动态混合在一起。动画片段的混合方式由混合树的结构及其所含节点的属性所控制。

混合树中的叶节点是输入动画片段的容器。这些片段可以是通过QAnimationClipLoader 从文件中读取的烘焙片段,也可以是您在应用程序中使用QAnimationClip和QAnimationClipData 构建的片段。要将片段包含在混合树中,请将其包裹在QClipBlendValue 节点中。

混合树的内部节点代表将应用于其参数的混合操作,这些参数可以是输入片段,甚至是其他混合树节点的整个子树。

目前,Qt 3D 动画模块提供了以下混合树节点类型:

未来将添加更多表示其他混合操作的节点类型。

另请参阅 QBlendedClipAnimator 。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.