Qt3DRender::QDirectionalLight Class
class Qt3DRender::QDirectionalLightEncapsule un objet de lumière directionnelle dans une scène Qt 3D. Plus...
| En-tête : | #include <QDirectionalLight> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3drender)target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake : | QT += 3drender |
| En QML : | DirectionalLight |
| Hérite : | Qt3DRender::QAbstractLight |
| Statut : | Déclassé |
Propriétés
- worldDirection : QVector3D
Fonctions publiques
| QDirectionalLight(Qt3DCore::QNode *parent = nullptr) | |
| QVector3D | worldDirection() const |
Emplacements publics
| void | setWorldDirection(const QVector3D &worldDirection) |
Signaux
| void | worldDirectionChanged(const QVector3D &worldDirection) |
Description détaillée
Une lumière directionnelle est une source de lumière qui se comporte comme la lumière du soleil. La lumière d'une lumière directionnelle frappe tous les objets dans la même direction et avec la même intensité, quel que soit l'endroit où ils se trouvent dans la scène.
Propriété Documentation
worldDirection : QVector3D
Spécifie la direction du monde de la lumière directionnelle.
Remarque : la signification et l'utilisation exactes de cette propriété dépendent de l'implémentation matérielle.
Fonctions d'accès :
| QVector3D | worldDirection() const |
| void | setWorldDirection(const QVector3D &worldDirection) |
Notifier signal :
| void | worldDirectionChanged(const QVector3D &worldDirection) |
Member Function Documentation
[explicit] QDirectionalLight::QDirectionalLight(Qt3DCore::QNode *parent = nullptr)
Construit une nouvelle QDirectionalLight avec la valeur spécifiée parent.
© 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.