QLerpClipBlend Class
(Qt3DAnimation::QLerpClipBlend)Performs a linear interpolation of two animation clips based on a normalized factor. More...
Header: | #include <QLerpClipBlend> |
qmake: | QT += 3danimation |
Since: | Qt 5.9 |
Instantiated By: | LerpBlend |
Inherits: | Qt3DAnimation::QAbstractClipBlendNode |
This class was introduced in Qt 5.9.
Properties
- blendFactor : float
- endClip : Qt3DAnimation::QAbstractClipBlendNode*
- startClip : Qt3DAnimation::QAbstractClipBlendNode*
- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
Public Functions
float | blendFactor() const |
Qt3DAnimation::QAbstractClipBlendNode * | endClip() const |
Qt3DAnimation::QAbstractClipBlendNode * | startClip() const |
- 13 public functions inherited from Qt3DCore::QNode
- 30 public functions inherited from QObject
Public Slots
void | setBlendFactor(float blendFactor) |
void | setEndClip(Qt3DAnimation::QAbstractClipBlendNode *endClip) |
void | setStartClip(Qt3DAnimation::QAbstractClipBlendNode *startClip) |
- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
Signals
void | blendFactorChanged(float blendFactor) |
void | endClipChanged(Qt3DAnimation::QAbstractClipBlendNode *endClip) |
void | startClipChanged(Qt3DAnimation::QAbstractClipBlendNode *startClip) |
- 4 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
Related Non-Members
typedef | QNodePtr |
typedef | QNodeVector |
typedef | QObjectList |
QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
Qt3DCore::QNodeId | qIdForNode(Qt3DCore::QNode *node) |
Qt3DCore::QNodeIdVector | qIdsForNodes(const T &nodes) |
T | qobject_cast(QObject *object) |
T | qobject_cast(const QObject *object) |
Macros
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Q_CLASSINFO(Name, Value) | |
Q_DISABLE_COPY(Class) | |
Q_DISABLE_COPY_MOVE(Class) | |
Q_DISABLE_MOVE(Class) | |
Q_EMIT | |
Q_ENUM(...) | |
Q_ENUM_NS(...) | |
Q_FLAG(...) | |
Q_FLAG_NS(...) | |
Q_GADGET | |
Q_INTERFACES(...) | |
Q_INVOKABLE | |
Q_NAMESPACE | |
Q_OBJECT | |
Q_PROPERTY(...) | |
Q_REVISION | |
Q_SET_OBJECT_NAME(Object) | |
Q_SIGNAL | |
Q_SIGNALS | |
Q_SLOT | |
Q_SLOTS |
Additional Inherited Members
- 9 static public members inherited from QObject
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Detailed Description
QLerpClipBlend can be useful to create advanced animation effects based on individual animation clips. For instance, given a player character, lerp blending could be used to combine a walking animation clip with an injured animation clip based on a blend factor that increases the more the player gets injured. This would then allow with blend factor == 0 to have a non injured walking player, with blend factor == 1 a fully injured player, with blend factor == 0.5 a partially walking and injured player.
See also QBlendedClipAnimator.
Property Documentation
blendFactor : float
Specifies the blending factor between 0 and 1 to control the blending of two animation clips.
Access functions:
float | blendFactor() const |
void | setBlendFactor(float blendFactor) |
Notifier signal:
void | blendFactorChanged(float blendFactor) |
endClip : Qt3DAnimation::QAbstractClipBlendNode*
Holds the sub-tree that should be used as the start clip for this lerp blend node. That is, the clip returned by this blend node when the blendFactor is set to a value of 1.
Access functions:
Qt3DAnimation::QAbstractClipBlendNode * | endClip() const |
void | setEndClip(Qt3DAnimation::QAbstractClipBlendNode *endClip) |
Notifier signal:
void | endClipChanged(Qt3DAnimation::QAbstractClipBlendNode *endClip) |
startClip : Qt3DAnimation::QAbstractClipBlendNode*
Holds the sub-tree that should be used as the start clip for this lerp blend node. That is, the clip returned by this blend node when the blendFactor is set to a value of 0.
Access functions:
Qt3DAnimation::QAbstractClipBlendNode * | startClip() const |
void | setStartClip(Qt3DAnimation::QAbstractClipBlendNode *startClip) |
Notifier signal:
void | startClipChanged(Qt3DAnimation::QAbstractClipBlendNode *startClip) |