QAbstractClipAnimator Class

class Qt3DAnimation::QAbstractClipAnimator

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

ヘッダー #include <QAbstractClipAnimator>
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)

通知シグナル

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 で、アニメーションは一度再生された後に停止します。

QAbstractClipAnimator::Infinite に設定された場合、アニメーションは明示的に停止されるまで継続的に繰り返されます。

アクセス関数:

int loopCount() const
void setLoopCount(int loops)

通知シグナル

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)

通知シグナル

void runningChanged(bool running)

メンバ関数ドキュメント

bool QAbstractClipAnimator::isRunning() const

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

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

int QAbstractClipAnimator::loopCount() const

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

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

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

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

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

[slot] void QAbstractClipAnimator::start()

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

[slot] void QAbstractClipAnimator::stop()

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

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