QDirectionalLight Class

(Qt3DRender::QDirectionalLight)

Encapsulate a Directional Light object in a Qt 3D scene. 更多...

头文件: #include <QDirectionalLight>
qmake: QT += 3drender
开始支持版本: Qt 5.7
Instantiated By: 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)

其他继承的成员

  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

Encapsulate a Directional Light object in a Qt 3D scene.

属性

worldDirection : QVector3D

Specifies the world direction of the directional light

访问函数:

QVector3D worldDirection() const
void setWorldDirection(const QVector3D &worldDirection)

Notifier signal:

void worldDirectionChanged(const QVector3D &worldDirection)

成员函数

QDirectionalLight::QDirectionalLight(Qt3DCore::QNode *parent = nullptr)

Constructs a new QDirectionalLight with the specified parent.

[protected] QDirectionalLight::QDirectionalLight(QDirectionalLightPrivate &dd, Qt3DCore::QNode *parent = nullptr)

Copy constructor.