Qt3DAnimation::QMorphTarget Class
class Qt3DAnimation::QMorphTargetブレンドシェイプアニメーションにモーフターゲットを提供するクラス。詳細...
| ヘッダー: | #include <qmorphtarget.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake: | QT += 3danimation |
| QML内: | MorphTarget |
| 継承元: | QObject |
| ステータス: | テクノロジープレビュー |
このクラスはテクノロジープレビュー段階にあり、変更される可能性があります。
プロパティ
- attributeNames : 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 クラスは、QMorphingAnimation がジオメトリのアニメーションに使用するためのQAttributes のリストを提供する、利便性向上のためのクラスです。また、既存のQt3DCore::QGeometry に基づいてQMorphTargetを作成することもできます。
プロパティのドキュメント
[read-only] attributeNames : 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 をモーフターゲットに設定します。以前の属性はクリアされます。
© 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.