Qt3DRender::QDirectionalLight Class
class Qt3DRender::QDirectionalLightIncorporare un oggetto “Luce direzionale” in una scena “ Qt 3D ”. Altro...
| Intestazione: | #include <qdirectionallight.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| In QML: | DirectionalLight |
| Eredita da: | Qt3DRender::QAbstractLight |
| Stato: | Obsoleto |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Proprietà
- worldDirection : QVector3D
Funzioni pubbliche
| QDirectionalLight(Qt3DCore::QNode *parent = nullptr) | |
| QVector3D | worldDirection() const |
Slot pubblici
| void | setWorldDirection(const QVector3D &worldDirection) |
Segnali
| void | worldDirectionChanged(const QVector3D &worldDirection) |
Descrizione dettagliata
Una luce direzionale è una sorgente luminosa che si comporta in modo simile alla luce solare. La luce proveniente da una sorgente direzionale colpisce tutti gli oggetti dalla stessa direzione e con la stessa intensità, indipendentemente dalla loro posizione nella scena.
Documentazione delle proprietà
worldDirection : QVector3D
Specifica la direzione globale della luce direzionale.
Nota: il significato esatto e l'utilizzo di questa proprietà dipendono dall'implementazione del materiale.
Funzioni di accesso:
| QVector3D | worldDirection() const |
| void | setWorldDirection(const QVector3D &worldDirection) |
Segnale di notifica:
| void | worldDirectionChanged(const QVector3D &worldDirection) |
Documentazione delle funzioni membro
[explicit] QDirectionalLight::QDirectionalLight(Qt3DCore::QNode *parent = nullptr)
Crea un nuovo oggetto `QDirectionalLight` con l'parent` specificato.
© 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.