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 |
| ステータス: | 非推奨 |
このクラスは非推奨です。新しいコードでの使用は強く推奨しません。
プロパティ
(since QtDataVisualization 5.9)autoPosition : bool
パブリック関数
| Q3DLight(QObject *parent = nullptr) | |
| virtual | ~Q3DLight() |
| bool | isAutoPosition() |
| void | setAutoPosition(bool enabled) |
シグナル
| void | autoPositionChanged(bool autoPosition) |
プロパティのドキュメント
[since QtDataVisualization 5.9] autoPosition : bool
このプロパティは、ライトの位置がカメラに自動的に追従するかどうかを指定します。
注: 影が有効になっている場合は、この設定は 効果を持ちません 。ライトの位置を設定する前に、必ず影を無効にしてください。そうしないと、isAutoPosition() がfalse に設定されている場合、自動配置によってライトの位置が上書きされてしまいます。
この列挙型は、QtDataVisualization 5.9で導入されました。
アクセス関数:
| bool | isAutoPosition() |
| void | setAutoPosition(bool enabled) |
通知シグナル:
| void | autoPositionChanged(bool autoPosition) |
© 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.