QQuick3DObject Class

すべての3Dノードとリソースの基本クラス。詳細...

Header: #include <QQuick3DObject>
In QML: Object3D
Inherits: QObject and QQmlParserStatus
Inherited By:

QQuick3DGeometry, QQuick3DInstancing, QQuick3DRenderExtension, and QQuick3DTextureData

プロパティ

パブリック機能

QQuick3DObject *parentItem() const
void setState(const QString &state)
QString state() const

パブリックスロット

void setParentItem(QQuick3DObject *parentItem)

シグナル

void parentChanged()
void stateChanged()

詳細説明

Object3D は、すべての 3D シーンオブジェクトの基本クラスです。現在、C++ で利用可能な型は次のとおりです:Qt Quick

これらのタイプは両方とも、QQuick3DObjectを直接継承したリソースオブジェクトです。

QQuick3DObjectは、3Dシーン内の空間アイテムやリソースをサポートするためのインターフェイスであり、3Dシーンコンテンツ用のQQuickItem と同様の機能を公開しているだけなので、現在のところ、QQuick3DObjectを直接使用する必要はありません。

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

parent : QQuick3DObject*

このプロパティは、3D シーンにおけるObject3D の親を保持する。

注: Object3D の親は、そのオブジェクトの親と同じとは限らない。これは、オブジェクトの親がObject3D 、例えばシーンのルートオブジェクトのようなタイプではないアイテムである可能性があるため必要である。

注: 現在、C++ から 3D オブジェクトをペアレント化するときに、3D アイテムがシーン・ マネージャによって正しく処理されるためには、QQuick3DObject::setParentItem をQObject::setParent の前に呼び出す必要があります。

QQuick3DObject *newItem = new QQuick3DObject();
newItem->setParentItem(parentItem);
newItem->setParent(parentItem);

アクセス関数

QQuick3DObject *parentItem() const
void setParentItem(QQuick3DObject *parentItem)

通知シグナル

void parentChanged()

state : QString

このプロパティは、オブジェクトの現在の状態の名前を保持する。

アイテムがデフォルト状態、つまり明示的な状態が設定されていない場合、このプロパティは空文字列を保持します。同様に、このプロパティに空文字列を設定することで、項目をデフォルト状態に戻すことができます。

アクセス関数

QString state() const
void setState(const QString &state)

Notifier シグナル:

void stateChanged()

Qt Quick Stateも参照

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