Q3DLight Class
Rappresentazione di una fonte di luce nello spazio 3D. Per saperne di più...
| Intestazione: | #include <Q3DLight> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS DataVisualization) target_link_libraries(mytarget PRIVATE Qt6::DataVisualization) |
| qmake: | QT += datavisualization |
| A partire da: | QtDataVisualization 1.0 |
| In QML: | Light3D |
| Eredita da: | Q3DObject |
| Stato: | Obsoleta |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Proprietà
(since QtDataVisualization 5.9)autoPosition : bool
Funzioni pubbliche
| Q3DLight(QObject *parent = nullptr) | |
| virtual | ~Q3DLight() |
| bool | isAutoPosition() |
| void | setAutoPosition(bool enabled) |
Segnali
| void | autoPositionChanged(bool autoPosition) |
Descrizione dettagliata
Q3DLight rappresenta una sorgente luminosa monocromatica nello spazio 3D.
Nota: la lucepredefinita ha isAutoPosition() true.
Documentazione delle proprietà
[since QtDataVisualization 5.9] autoPosition : bool
Questa proprietà determina se la posizione della luce segue automaticamente quella della telecamera.
Nota: nonha alcun effetto se le ombre sono abilitate. Ricordarsi di disabilitare le ombre prima di impostare la posizione della luce, altrimenti verrà sovrascritta dal posizionamento automatico se ` isAutoPosition() ` è impostato su ` false`.
Questa enumerazione è stata introdotta in QtDataVisualization 5.9.
Funzioni di accesso:
| bool | isAutoPosition() |
| void | setAutoPosition(bool enabled) |
Segnale Notifier:
| void | autoPositionChanged(bool autoPosition) |
Documentazione delle funzioni membro
[explicit] Q3DLight::Q3DLight(QObject *parent = nullptr)
Crea una nuova luce 3D posizionata all'origine. È possibile specificare un parametro opzionale ` parent `, che verrà poi passato al costruttore di ` QObject `.
[virtual noexcept] Q3DLight::~Q3DLight()
Elimina l'oggetto luminoso.
© 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.