QMorphTarget Class
class Qt3DAnimation::QMorphTargetブレンドシェイプアニメーションのモーフターゲットを提供するクラス。もっと詳しく...
ヘッダー | #include <QMorphTarget> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
qmake | QT += 3danimation |
QML で | MorphTarget |
を継承しています: | QObject |
ステータス | 非推奨 |
プロパティ
- attributeNames : const QStringList
パブリック機能
QMorphTarget(QObject *parent = nullptr) | |
void | addAttribute(Qt3DCore::QAttribute *attribute) |
QList<Qt3DCore::QAttribute *> | attributeList() const |
QStringList | attributeNames() const |
void | removeAttribute(Qt3DCore::QAttribute *attribute) |
void | setAttributes(const QList<Qt3DCore::QAttribute *> &attributes) |
シグナル
void | attributeNamesChanged(const QStringList &attributeNames) |
静的パブリックメンバ
Qt3DAnimation::QMorphTarget * | fromGeometry(Qt3DCore::QGeometry *geometry, const QStringList &attributes) |
詳細説明
Qt3DAnimation::QMorphTarget クラスは便利なクラスで、QAttributes のリストを提供し、QMorphingAnimation はそれを使ってジオメトリをアニメートします。QMorphTarget は、既存のQt3DCore::QGeometry に基づいて作成することもできます。
プロパティ ドキュメント
[read-only]
attributeNames : const QStringList
モーフターゲットに含まれる属性名のリストを保持します。
アクセス関数:
QStringList | attributeNames() const |
通知シグナル:
void | attributeNamesChanged(const QStringList &attributeNames) |
メンバ関数ドキュメント
[explicit]
QMorphTarget::QMorphTarget(QObject *parent = nullptr)
与えられたparent を持つ QMorphTarget を構築します。
void QMorphTarget::addAttribute(Qt3DCore::QAttribute *attribute)
attribute をモーフターゲットに追加します。同じ名前の属性が以前にモーフターゲットに追加されていてはなりません。
QList<Qt3DCore::QAttribute *> QMorphTarget::attributeList() const
モーフターゲットに含まれる属性のリストを返します。
[static invokable]
Qt3DAnimation::QMorphTarget *QMorphTarget::fromGeometry(Qt3DCore::QGeometry *geometry, const QStringList &attributes)
与えられたgeometry のattributes を元にモーフターゲットを返します。
注意: この関数はメタオブジェクトシステムやQMLから呼び出すことができます。Q_INVOKABLE を参照してください。
void QMorphTarget::removeAttribute(Qt3DCore::QAttribute *attribute)
モーフターゲットからattribute を取り除く。
void QMorphTarget::setAttributes(const QList<Qt3DCore::QAttribute *> &attributes)
attributes をモーフターゲットに設定します。古いアトリビュートはクリアされる。
© 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.