QDirectionalLight Class
class Qt3DRender::QDirectionalLightVerkapselt ein gerichtetes Lichtobjekt in einer Qt 3D Szene. Mehr...
Kopfzeile: | #include <QDirectionalLight> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
In QML: | DirectionalLight |
Vererbt: | Qt3DRender::QAbstractLight |
Status: | Veraltet |
Eigenschaften
- worldDirection : QVector3D
Öffentliche Funktionen
QDirectionalLight(Qt3DCore::QNode *parent = nullptr) | |
QVector3D | worldDirection() const |
Öffentliche Slots
void | setWorldDirection(const QVector3D &worldDirection) |
Signale
void | worldDirectionChanged(const QVector3D &worldDirection) |
Detaillierte Beschreibung
Ein gerichtetes Licht ist eine Lichtquelle, die sich ähnlich wie das Sonnenlicht verhält. Das Licht eines gerichteten Lichts trifft auf alle Objekte aus der gleichen Richtung und mit der gleichen Intensität, unabhängig davon, wo sie sich in der Szene befinden.
Dokumentation der Eigenschaft
worldDirection : QVector3D
Gibt die Weltrichtung des gerichteten Lichts an.
Hinweis: Die genaue Bedeutung und Verwendung dieser Eigenschaft hängt von der Materialimplementierung ab.
Zugriffsfunktionen:
QVector3D | worldDirection() const |
void | setWorldDirection(const QVector3D &worldDirection) |
Melder-Signal:
void | worldDirectionChanged(const QVector3D &worldDirection) |
Member Function Dokumentation
[explicit]
QDirectionalLight::QDirectionalLight(Qt3DCore::QNode *parent = nullptr)
Konstruiert ein neues QDirectionalLight mit dem angegebenen parent.
© 2025 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.