Qt3DRender::QDirectionalLight Class
class Qt3DRender::QDirectionalLightEncapsula un objeto Luz direccional en una escena Qt 3D. Más...
| Cabecera: | #include <QDirectionalLight> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender)target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| En QML: | DirectionalLight |
| Hereda: | Qt3DRender::QAbstractLight |
| Status: | Obsoleto |
Propiedades
- worldDirection : QVector3D
Funciones públicas
| QDirectionalLight(Qt3DCore::QNode *parent = nullptr) | |
| QVector3D | worldDirection() const |
Ranuras públicas
| void | setWorldDirection(const QVector3D &worldDirection) |
Señales
| void | worldDirectionChanged(const QVector3D &worldDirection) |
Descripción detallada
Una luz direccional es una fuente de luz que se comporta de forma similar a la luz solar. La luz de una luz direccional incide sobre todos los objetos desde la misma dirección y con la misma intensidad, independientemente de dónde se encuentren en la escena.
Documentación de propiedades
worldDirection : QVector3D
Especifica la dirección global de la luz direccional.
Nota: El significado exacto y el uso de esta propiedad depende de la implementación del material.
Funciones de acceso:
| QVector3D | worldDirection() const |
| void | setWorldDirection(const QVector3D &worldDirection) |
Señal notificadora:
| void | worldDirectionChanged(const QVector3D &worldDirection) |
Documentación de la función miembro
[explicit] QDirectionalLight::QDirectionalLight(Qt3DCore::QNode *parent = nullptr)
Construye una nueva QDirectionalLight con la dirección 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.