このページでは

Qt3DAnimation::QClipAnimator Class

class Qt3DAnimation::QClipAnimator

QClipAnimator は、シンプルなアニメーション再生機能を提供するコンポーネントです。詳細...

ヘッダー: #include <qclipanimator.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
QML内: ClipAnimator
継承元: Qt3DAnimation::QAbstractClipAnimator
ステータス: テクノロジープレビュー

このクラスはテクノロジープレビュー段階にあり、変更される可能性があります。

プロパティ

  • clip : Qt3DAnimation::QAbstractAnimationClip*

パブリック関数

Qt3DAnimation::QAbstractAnimationClip *clip() const

パブリックスロット

void setClip(Qt3DAnimation::QAbstractAnimationClip *clip)

シグナル

void clipChanged(Qt3DAnimation::QAbstractAnimationClip *clip)

詳細な説明

QClipAnimator のインスタンスは、QEntity によって集約され、アニメーションクリップを再生したり、計算されたアニメーション値を QObject のプロパティに適用したりする機能を追加することができます。

アニメーションのキーフレームデータは、clip プロパティを介して提供されます。これは、QAnimationClip を使用してプログラムで作成するか、QAnimationClipLoader を使用してファイルから読み込むことができます。

アニメーションクリップ内のデータチャネルから再生された値を適用するには、クリップアニメーターの channelMapper プロパティにQChannelMapper オブジェクトを割り当てる必要があります。

アニメーターを制御するためのプロパティは、QAbstractClipAnimator 基底クラスによって提供されます。

Qt3DAnimation::QAbstractClipAnimator 、Qt3DAnimation::QAbstractAnimationClip 、Qt3DAnimation::QChannelMapper 、およびQt3DAnimation::QBlendedClipAnimatorも参照してください 。

プロパティのドキュメント

clip : Qt3DAnimation::QAbstractAnimationClip*

このプロパティには、再生されるキーフレームデータを含むアニメーションクリップが格納されます。キーフレームデータは、QAnimationClip またはQAnimationClipLoader のいずれかで指定できます。

アクセス関数:

Qt3DAnimation::QAbstractAnimationClip *clip() const
void setClip(Qt3DAnimation::QAbstractAnimationClip *clip)

通知シグナル:

void clipChanged(Qt3DAnimation::QAbstractAnimationClip *clip)

© 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.