Encapsulate a Directional Light object in a Qt 3D scene. 更多...
| 头: | #include <QDirectionalLight> |
| qmake: | QT += 3drender |
| Since: | Qt 5.7 |
| 实例化: | DirectionalLight |
| 继承: | Qt3DRender::QAbstractLight |
| QDirectionalLight (Qt3DCore::QNode * parent = nullptr) | |
| QVector3D | worldDirection () const |
| void | setWorldDirection (const QVector3D & worldDirection ) |
| void | worldDirectionChanged (const QVector3D & worldDirection ) |
| QDirectionalLight (QDirectionalLightPrivate & dd , Qt3DCore::QNode * parent = nullptr) |
Encapsulate a Directional Light object in a Qt 3D scene.
Specifies the world direction of the directional light
访问函数:
| QVector3D | worldDirection () const |
| void | setWorldDirection (const QVector3D & worldDirection ) |
通知程序信号:
| void | worldDirectionChanged (const QVector3D & worldDirection ) |
构造新的 QDirectionalLight 采用指定 parent .
[protected]
QDirectionalLight::
QDirectionalLight
(
QDirectionalLightPrivate
&
dd
,
Qt3DCore::QNode
*
parent
= nullptr)
Copy constructor.