Q3DLight Class
Representación de una fuente de luz en el espacio 3D. Más...
| Encabezado: | #include <Q3DLight> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS DataVisualization) target_link_libraries(mytarget PRIVATE Qt6::DataVisualization) |
| qmake: | QT += datavisualization |
| Desde: | QtDataVisualization 1.0 |
| En QML: | Light3D |
| Heredado de: | Q3DObject |
| Estado: | Obsoleta |
Esta clase está obsoleta. Se desaconseja encarecidamente su uso en código nuevo.
Propiedades
(since QtDataVisualization 5.9)autoPosition : bool
Funciones públicas
| Q3DLight(QObject *parent = nullptr) | |
| virtual | ~Q3DLight() |
| bool | isAutoPosition() |
| void | setAutoPosition(bool enabled) |
Señales
| void | autoPositionChanged(bool autoPosition) |
Descripción detallada
Q3DLight representa una fuente de luz monocromática en el espacio 3D.
Nota: La luzpor defecto tiene isAutoPosition() true.
Documentación de propiedades
[since QtDataVisualization 5.9] autoPosition : bool
Esta propiedad determina si la posición de la luz sigue automáticamente a la cámara.
Nota: Notiene ningún efecto si las sombras están activadas. Recuerda desactivar las sombras antes de establecer la posición de la luz, ya que, de lo contrario, esta se sobrescribirá mediante el posicionamiento automático si isAutoPosition() es false.
Esta enumeración se introdujo en QtDataVisualization 5.9.
Funciones de acceso:
| bool | isAutoPosition() |
| void | setAutoPosition(bool enabled) |
Señal de notificador:
| 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.