Performs an additive blend of two animation clips based on an additive factor. 更多...
头: | #include <QAdditiveClipBlend> |
qmake: | QT += 3danimation |
Since: | Qt 5.9 |
实例化: | AdditiveClipBlend |
继承: | Qt3DAnimation::QAbstractClipBlendNode |
QAdditiveClipBlend (Qt3DCore::QNode * parent = nullptr) | |
virtual | ~QAdditiveClipBlend () |
Qt3DAnimation::QAbstractClipBlendNode * | additiveClip () const |
float | additiveFactor () const |
Qt3DAnimation::QAbstractClipBlendNode * | baseClip () const |
void | setAdditiveClip (Qt3DAnimation::QAbstractClipBlendNode * additiveClip ) |
void | setAdditiveFactor (float additiveFactor ) |
void | setBaseClip (Qt3DAnimation::QAbstractClipBlendNode * baseClip ) |
void | additiveClipChanged (Qt3DAnimation::QAbstractClipBlendNode * additiveClip ) |
void | additiveFactorChanged (float additiveFactor ) |
void | baseClipChanged (Qt3DAnimation::QAbstractClipBlendNode * baseClip ) |
const QMetaObject | staticMetaObject |
QAdditiveClipBlend (Qt3DAnimation::QAdditiveClipBlendPrivate & dd , Qt3DCore::QNode * parent = nullptr) |
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:
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.
另请参阅 QBlendedClipAnimator .
This property holds the additive clip to be blended with the baseClip . The amount of blending is controlled by the additiveFactor 特性。
访问函数:
Qt3DAnimation::QAbstractClipBlendNode * | additiveClip () const |
void | setAdditiveClip (Qt3DAnimation::QAbstractClipBlendNode * additiveClip ) |
通知程序信号:
void | additiveClipChanged (Qt3DAnimation::QAbstractClipBlendNode * additiveClip ) |
Specifies the blending factor, typically between 0 and 1, to control the blending of two animation clips.
访问函数:
float | additiveFactor () const |
void | setAdditiveFactor (float additiveFactor ) |
通知程序信号:
void | additiveFactorChanged (float additiveFactor ) |
This property holds the base animation clip. When the additiveFactor is zero the baseClip will also be the resulting clip of this blend node.
访问函数:
Qt3DAnimation::QAbstractClipBlendNode * | baseClip () const |
void | setBaseClip (Qt3DAnimation::QAbstractClipBlendNode * baseClip ) |
通知程序信号:
void | baseClipChanged (Qt3DAnimation::QAbstractClipBlendNode * baseClip ) |
Default constructs an instance of QAdditiveClipBlend.
[protected]
QAdditiveClipBlend::
QAdditiveClipBlend
(
Qt3DAnimation::QAdditiveClipBlendPrivate
&
dd
,
Qt3DCore::QNode
*
parent
= nullptr)
Default constructs an instance of QAdditiveClipBlend.
[虚拟]
QAdditiveClipBlend::
~QAdditiveClipBlend
()
Destroys the instance of QAdditiveClipBlend. The destructor is virtual.