QAdditiveClipBlend Class
(Qt3DAnimation::QAdditiveClipBlend)Performs an additive blend of two animation clips based on an additive factor. 更多...
头文件: | #include <QAdditiveClipBlend> |
qmake: | QT += 3danimation |
开始支持版本: | Qt 5.9 |
Instantiated By: | AdditiveClipBlend |
基类: | Qt3DAnimation::QAbstractClipBlendNode |
属性
- additiveClip : Qt3DAnimation::QAbstractClipBlendNode *
- additiveFactor : float
- baseClip : Qt3DAnimation::QAbstractClipBlendNode *
- 3 个属性继承自 Qt3DCore::QNode
- 1 个属性继承自 QObject
公有函数
QAdditiveClipBlend(Qt3DCore::QNode *parent = nullptr) | |
~QAdditiveClipBlend() | |
Qt3DAnimation::QAbstractClipBlendNode * | additiveClip() const |
float | additiveFactor() const |
Qt3DAnimation::QAbstractClipBlendNode * | baseClip() const |
- 11 个公有函数继承自 Qt3DCore::QNode
- 32 个公有函数继承自 QObject
公有槽函数
void | setAdditiveClip(Qt3DAnimation::QAbstractClipBlendNode *additiveClip) |
void | setAdditiveFactor(float additiveFactor) |
void | setBaseClip(Qt3DAnimation::QAbstractClipBlendNode *baseClip) |
- 3 个公有槽函数继承自 Qt3DCore::QNode
- 1 个公有槽函数继承自 QObject
信号
void | additiveClipChanged(Qt3DAnimation::QAbstractClipBlendNode *additiveClip) |
void | additiveFactorChanged(float additiveFactor) |
void | baseClipChanged(Qt3DAnimation::QAbstractClipBlendNode *baseClip) |
- 4 个信号继承自 Qt3DCore::QNode
- 2 个信号继承自 QObject
受保护的函数
QAdditiveClipBlend(QAdditiveClipBlendPrivate &dd, Qt3DCore::QNode *parent = nullptr) |
- 2 个受保护的函数继承自 Qt3DCore::QNode
- 9 个受保护的函数继承自 QObject
其他继承的成员
详细描述
Performs an additive blend of two animation clips based on an additive factor.
QAdditiveClipBlend can be useful to create advanced animation effects based on individual animation clips. For example, if you:
- set the baseClip property to a normal walk cycle animation clip and
- set the additiveClip property to a shaking head difference clip,
then adjusting the additiveFactor property will control how much of the additiveClip gets added on to the baseClip. This has he effect that with an additiveFactor of zero, this blend node will yield the original walk cycle clip. With an additiveFactor of 1, it will yield the walk cycle including a shaking head animation.
The blending operation implemented by this class is:
resultClip = baseClip + additiveFactor * additiveClip
There is nothing stopping you from using values for the additiveFacor property outside the 0 to 1 range, but please be aware that the input animation clips may not be authored in such a way for this to make sense.
属性
additiveClip : Qt3DAnimation::QAbstractClipBlendNode *
访问函数:
Qt3DAnimation::QAbstractClipBlendNode * | additiveClip() const |
void | setAdditiveClip(Qt3DAnimation::QAbstractClipBlendNode *additiveClip) |
Notifier signal:
void | additiveClipChanged(Qt3DAnimation::QAbstractClipBlendNode *additiveClip) |
additiveFactor : float
Specifies the blending factor, typically between 0 and 1, to control the blending of two animation clips.
访问函数:
float | additiveFactor() const |
void | setAdditiveFactor(float additiveFactor) |
Notifier signal:
void | additiveFactorChanged(float additiveFactor) |
baseClip : Qt3DAnimation::QAbstractClipBlendNode *
访问函数:
Qt3DAnimation::QAbstractClipBlendNode * | baseClip() const |
void | setBaseClip(Qt3DAnimation::QAbstractClipBlendNode *baseClip) |
Notifier signal:
void | baseClipChanged(Qt3DAnimation::QAbstractClipBlendNode *baseClip) |
成员函数
QAdditiveClipBlend::QAdditiveClipBlend(Qt3DCore::QNode *parent = nullptr)
Default constructs an instance of QAdditiveClipBlend.
[protected]
QAdditiveClipBlend::QAdditiveClipBlend(QAdditiveClipBlendPrivate &dd, Qt3DCore::QNode *parent = nullptr)
Copy constructor.
QAdditiveClipBlend::~QAdditiveClipBlend()
Destroys the instance of QAdditiveClipBlend.