QClipAnimator is a component providing simple animation playback capabilities. 更多...
| 頭: | #include <QClipAnimator> |
| qmake: | QT += 3danimation |
| Since: | Qt 5.9 |
| 實例化: | ClipAnimator |
| 繼承: | Qt3DAnimation::QAbstractClipAnimator |
| QClipAnimator (Qt3DCore::QNode * parent = nullptr) | |
| virtual | ~QClipAnimator () |
| Qt3DAnimation::QAbstractAnimationClip * | clip () const |
| void | setClip (Qt3DAnimation::QAbstractAnimationClip * clip ) |
| void | clipChanged (Qt3DAnimation::QAbstractAnimationClip * clip ) |
| const QMetaObject | staticMetaObject |
QClipAnimator is a component providing simple animation playback capabilities.
實例化的 QClipAnimator can be aggregated by a QEntity to add the ability to play back animation clips and to apply the calculated animation values to properties of QObjects.
The animation key frame data is provided via the clip property. This can be created programmatically with QAnimationClip or loaded from file with QAnimationClipLoader .
In order to apply the values played back from the channels of data in the animation clip, the clip animator needs to have a QChannelMapper object assigned to the channelMapper 特性。
The properties for controlling the animator are provided by the QAbstractClipAnimator 基類。
另請參閱 QAbstractClipAnimator , QAbstractAnimationClip , QChannelMapper ,和 QBlendedClipAnimator .
This property holds the animation clip which contains the key frame data to be played back. The key frame data can be specified in either a QAnimationClip or QAnimationClipLoader .
訪問函數:
| Qt3DAnimation::QAbstractAnimationClip * | clip () const |
| void | setClip (Qt3DAnimation::QAbstractAnimationClip * clip ) |
通知程序信號:
| void | clipChanged (Qt3DAnimation::QAbstractAnimationClip * clip ) |
Default constructs an instance of QClipAnimator.
[虛擬]
QClipAnimator::
~QClipAnimator
()
Destroys the instance of QClipAnimator. The destructor is virtual.