このページでは

Qt3DAnimation::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 、およびQt3DAnimation::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 は、すべてのアニメーションの抽象基底クラスです。Qt3DAnimation::QAbstractAnimation は直接インスタンス化することはできず、そのサブクラスを通じてインスタンス化されます。QAbstractAnimationは、アニメーション名やタイプ、現在の位置、アニメーションの継続時間など、すべてのQt3Dアニメーションに共通するプロパティを規定していますが、実際のアニメーション処理はサブクラスに委ねられています。

メンバ型のドキュメント

enum QAbstractAnimation::AnimationType

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

定数値説明
Qt3DAnimation::QAbstractAnimation::KeyframeAnimation1ブレンディングシェイプのモーフィングアニメーションのための、シンプルなキーフレームアニメーションの実装QTransform
Qt3DAnimation::QAbstractAnimation::MorphingAnimation2ブレンディングシェイプのモーフィングアニメーション
Qt3DAnimation::QAbstractAnimation::VertexBlendAnimation3頂点ブレンディングアニメーション

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

animationName : QString

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

アクセス関数:

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

Notifierシグナル:

void animationNameChanged(const QString &name)

[read-only] animationType : const AnimationType

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

アクセス関数:

Qt3DAnimation::QAbstractAnimation::AnimationType animationType() const

[read-only] duration : float

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

アクセス関数:

float duration() const

Notifierシグナル:

void durationChanged(float duration)

position : float

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

アクセス関数:

float position() const
void setPosition(float position)

Notifierシグナル:

void positionChanged(float position)

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

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

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

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

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