このページでは

Qt3DAnimation::QAbstractClipAnimator Class

class Qt3DAnimation::QAbstractClipAnimator

QAbstractClipAnimator は、アニメーションの再生機能を提供する型の基底クラスです。詳細...

ヘッダー: #include <qabstractclipanimator.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
QML内: AbstractClipAnimator
継承元: Qt3DCore::QComponent
継承元:

Qt3DAnimation::QBlendedClipAnimator およびQt3DAnimation::QClipAnimator

ステータス: テクノロジープレビュー

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

パブリック型

enum Loops { Infinite }

プロパティ

パブリック関数

Qt3DAnimation::QChannelMapper *channelMapper() const
Qt3DAnimation::QClock *clock() const
bool isRunning() const
int loopCount() const
float normalizedTime() const

パブリック・スロット

void setChannelMapper(Qt3DAnimation::QChannelMapper *channelMapper)
void setClock(Qt3DAnimation::QClock *clock)
void setLoopCount(int loops)
void setNormalizedTime(float timeFraction)
void setRunning(bool running)
void start()
void stop()

シグナル

void channelMapperChanged(Qt3DAnimation::QChannelMapper *channelMapper)
void clockChanged(Qt3DAnimation::QClock *clock)
void loopCountChanged(int loops)
void normalizedTimeChanged(float index)
void runningChanged(bool running)

詳細な説明

QAbstractClipAnimator のサブクラスは、QEntity によって集約され、アニメーション機能を提供することができます。アニメーターコンポーネントは、アニメーションを制御するためのインターフェース(開始、停止など)を提供します。 各アニメータータイプには、QAbstractAnimationClip などの何らかの形式のアニメーションデータに加え、アニメーションクリップ内のチャンネルを、アニメーションの対象となるオブジェクトのプロパティにどのようにマッピングするかを記述したQChannelMapper が必要です。

以下のサブクラスが利用可能です:

メンバ型のドキュメント

enum QAbstractClipAnimator::Loops

アニメーションを再生する回数を指定します。

定数値説明
Qt3DAnimation::QAbstractClipAnimator::Infinite-1明示的に停止されるまで、ループが継続的に繰り返されます。

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

channelMapper : Qt3DAnimation::QChannelMapper*

このプロパティには、アニメーションクリップ内のチャンネルがターゲットオブジェクトのプロパティにどのようにマッピングされるかを制御する ChannelMapper が格納されます。

アクセス関数:

Qt3DAnimation::QChannelMapper *channelMapper() const
void setChannelMapper(Qt3DAnimation::QChannelMapper *channelMapper)

Notifierシグナル:

void channelMapperChanged(Qt3DAnimation::QChannelMapper *channelMapper)

clock : Qt3DAnimation::QClock*

この時計は、アニメーションの再生速度を制御します。

アクセス関数:

Qt3DAnimation::QClock *clock() const
void setClock(Qt3DAnimation::QClock *clock)

通知シグナル:

void clockChanged(Qt3DAnimation::QClock *clock)

loops : int

アニメーションを再生する回数を指定します。

デフォルト値は 1 です。アニメーションは 1 回再生された後、停止します。

QAbstractClipAnimator::Infinite に設定すると、明示的に停止されるまでアニメーションが繰り返し再生されます。

アクセス関数:

int loopCount() const
void setLoopCount(int loops)

Notifierシグナル:

void loopCountChanged(int loops)

normalizedTime : float

このプロパティには、クリップの正規化された時間が格納されます。

アクセス関数:

float normalizedTime() const
void setNormalizedTime(float timeFraction)

通知シグナル:

void normalizedTimeChanged(float index)

running : bool

このプロパティは、アニメーションが現在実行中であるかどうかを示すブール値を保持します。

アクセス関数:

bool isRunning() const
void setRunning(bool running)

Notifier シグナル:

void runningChanged(bool running)

メンバ関数のドキュメント

bool QAbstractClipAnimator::isRunning() const

アニメーションが現在実行中であるかどうかを示すブール値を返します。

注: プロパティ `running`のゲッター 関数です。

int QAbstractClipAnimator::loopCount() const

アニメーションを再生する回数を返します。

デフォルト値は 1 です。アニメーションは 1 回再生された後、停止します。

QAbstractClipAnimator::Infinite に設定すると、アニメーションは明示的に停止されるまで繰り返し再生されます。

注: プロパティ `loops`のゲッター 関数です。

setLoopCount()も参照してください 。

[slot] void QAbstractClipAnimator::start()

アニメーションを開始します。

[slot] void QAbstractClipAnimator::stop()

アニメーションを停止します。

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