Q3DObject Class

Q3DObjectクラスは、3Dシーンのすべてのオブジェクトのためのシンプルな基本クラスです。さらに...

ヘッダー #include <Q3DObject>
CMake: find_package(Qt6 REQUIRED COMPONENTS DataVisualization)
target_link_libraries(mytarget PRIVATE Qt6::DataVisualization)
qmake: QT += datavisualization
以来:QtDataVisualization 1.0
QML で: Object3D
を継承: QObject
継承される

Q3DCamera そしてQ3DLight

プロパティ

パブリック機能

Q3DObject(QObject *parent = nullptr)
virtual ~Q3DObject()
virtual void copyValuesFrom(const Q3DObject &source)
Q3DScene *parentScene()
QVector3D position() const
void setPosition(const QVector3D &position)

シグナル

void positionChanged(const QVector3D &position)

保護された関数

bool isDirty() const
void setDirty(bool dirty)

詳細説明

3Dシーン内のオブジェクトの位置情報を保持します。オブジェクトは、次元のない座標空間内の1点とみなされます。

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

[read-only] parentScene : Q3DScene* const

このプロパティは、読み取り専用の値として親シーンを保持します。

オブジェクトに親シーンがない場合、値は0です。

アクセス関数

Q3DScene *parentScene()

position : QVector3D

このプロパティはオブジェクトの 3D 位置を保持する。

注意: 現在、このプロパティを設定しても、Q3DCamera 、位置は内部で処理されるため、効果はありません。

アクセス関数

QVector3D position() const
void setPosition(const QVector3D &position)

Notifier シグナル:

void positionChanged(const QVector3D &position)

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

[explicit] Q3DObject::Q3DObject(QObject *parent = nullptr)

デフォルトで位置が原点に設定された新しい 3D オブジェクトを構築します。オプションでparent パラメータを指定でき、QObject コンストラクタに渡されます。

[virtual noexcept] Q3DObject::~Q3DObject()

3Dオブジェクトを破壊する。

[virtual] void Q3DObject::copyValuesFrom(const Q3DObject &source)

与えられたsource 3D オブジェ ク ト か ら こ の 3D オブジェ ク ト イ ン ス タ ン ス に 3D オブジェ ク ト の位置を コ ピー し ます。

[protected] bool Q3DObject::isDirty() const

3D オブジェクトが変更されたかどうかを返します。

[protected] void Q3DObject::setDirty(bool dirty)

3D オブジェクトが最後の更新以降に変更された場合、dirtytrue に設定します。

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

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