Q3DLight Class

3D空間における光源の表現。詳細...

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

プロパティ

パブリック機能

Q3DLight(QObject *parent = nullptr)
virtual ~Q3DLight()
bool isAutoPosition()
void setAutoPosition(bool enabled)

シグナル

void autoPositionChanged(bool autoPosition)

詳細説明

Q3DLightは3D空間のモノクロ光源を表します。

注意: デフォルトのライトはisAutoPosition()true を持っています。

プロパティ ドキュメント

[since QtDataVisualization 5.9] autoPosition : bool

このプロパティは、ライトの位置が自動的にカメラに追従するかどうかを保持します。

注意: シャドウが有効な場合は影響しません。ライトの位置を設定する前に、シャドウを無効にすることを忘れないでください。そうしないと、isAutoPosition()false の場合、自動ポジショニングによって上書きされます。

このプロパティは QtDataVisualization 5.9 で導入されました。

アクセス関数

bool isAutoPosition()
void setAutoPosition(bool enabled)

通知シグナル

void autoPositionChanged(bool autoPosition)

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

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

原点に位置する新しい 3D ライトを構築します。オプションでparent パラメータを指定でき、QObject コンストラクタに渡されます。

[virtual noexcept] Q3DLight::~Q3DLight()

ライトオブジェクトを破壊する。

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