QAbstractLight Class
(Qt3DRender::QAbstractLight)Encapsulate a QAbstractLight object in a Qt 3D scene. 更多...
头文件: | #include <QAbstractLight> |
qmake: | QT += 3drender |
开始支持版本: | Qt 5.6 |
Instantiated By: | Light |
基类: | Qt3DCore::QComponent |
派生类: | Qt3DRender::QDirectionalLight, Qt3DRender::QPointLight, and Qt3DRender::QSpotLight |
公有类型
enum | Type { PointLight, DirectionalLight, SpotLight } |
属性
- 1 个属性继承自 Qt3DCore::QComponent
- 3 个属性继承自 Qt3DCore::QNode
- 1 个属性继承自 QObject
公有函数
~QAbstractLight() | |
QColor | color() const |
float | intensity() const |
Type | type() const |
- 2 个公有函数继承自 Qt3DCore::QComponent
- 11 个公有函数继承自 Qt3DCore::QNode
- 32 个公有函数继承自 QObject
公有槽函数
void | setColor(const QColor &color) |
void | setIntensity(float intensity) |
- 1 个公有槽函数继承自 Qt3DCore::QComponent
- 3 个公有槽函数继承自 Qt3DCore::QNode
- 1 个公有槽函数继承自 QObject
信号
void | colorChanged(const QColor &color) |
void | intensityChanged(float intensity) |
- 3 个信号继承自 Qt3DCore::QComponent
- 4 个信号继承自 Qt3DCore::QNode
- 2 个信号继承自 QObject
受保护的函数
QAbstractLight(QAbstractLightPrivate &dd, Qt3DCore::QNode *parent = nullptr) |
- 2 个受保护的函数继承自 Qt3DCore::QNode
- 9 个受保护的函数继承自 QObject
其他继承的成员
详细描述
Encapsulate a QAbstractLight object in a Qt 3D scene.
属性
color : QColor
Holds the current QAbstractLight color.
访问函数:
QColor | color() const |
void | setColor(const QColor &color) |
Notifier signal:
void | colorChanged(const QColor &color) |
intensity : float
Holds the current QAbstractLight intensity.
访问函数:
float | intensity() const |
void | setIntensity(float intensity) |
Notifier signal:
void | intensityChanged(float intensity) |
type : const Type
Holds the current QAbstractLight type.
访问函数:
Type | type() const |