QAbstractAnimation Class

class Qt3DAnimation::QAbstractAnimation

Qt3D アニメーションの抽象基底クラスです。詳細...

ヘッダ #include <QAbstractAnimation>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake QT += 3danimation
QML で AbstractAnimation
を継承: QObject
によって継承されています:

Qt3DAnimation::QKeyframeAnimation,Qt3DAnimation::QMorphingAnimation, andQt3DAnimation::QVertexBlendAnimation

ステータス非推奨

パブリックタイプ

enum AnimationType { KeyframeAnimation, MorphingAnimation, VertexBlendAnimation }

プロパティ

パブリック機能

QString animationName() const
Qt3DAnimation::QAbstractAnimation::AnimationType animationType() const
float duration() const
float position() const

パブリックスロット

void setAnimationName(const QString &name)
void setPosition(float position)

シグナル

void animationNameChanged(const QString &name)
void durationChanged(float duration)
void positionChanged(float position)

保護された関数

void setDuration(float duration)

詳しい説明

Qt3DAnimation::QAbstractAnimation QAbstractAnimation はすべてのアニメーションの抽象基底クラスです。 は直接インスタンス化することはできず、サブクラスを通してインスタンス化します。QAbstractAnimation は、すべての Qt3D アニメーションに共通するプロパティ、例えば、アニメーションの名前やタイプ、現在位置、アニメーション時間などを指定します。Qt3DAnimation::QAbstractAnimation

メンバ型のドキュメント

enum QAbstractAnimation::AnimationType

この列挙は、アニメーションのタイプを指定します。

定数説明
Qt3DAnimation::QAbstractAnimation::KeyframeAnimation1単純なキーフレームアニメーションの実装QTransform
Qt3DAnimation::QAbstractAnimation::MorphingAnimation2ブレンドシェイプ・モーフィング・アニメーション
Qt3DAnimation::QAbstractAnimation::VertexBlendAnimation3頂点ブレンドアニメーション

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

animationName : QString

アニメーションの名前を保持します。

アクセス関数:

QString animationName() const
void setAnimationName(const QString &name)

通知シグナル

void animationNameChanged(const QString &name)

[read-only] animationType : const AnimationType

アニメーションの種類を保持します。

関数にアクセスします:

Qt3DAnimation::QAbstractAnimation::AnimationType animationType() const

[read-only] duration : const float

アニメーションの継続時間を保持します。

アクセス機能

float duration() const

通知シグナル

void durationChanged(float duration)

position : float

アニメーションの現在位置を保持します。

アクセス関数:

float position() const
void setPosition(float position)

通知シグナル

void positionChanged(float position)

メンバ関数ドキュメント

[protected] void QAbstractAnimation::setDuration(float duration)

アニメーションのduration を設定します。

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

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