PySide6.Qt3DRender.Qt3DRender.QAbstractLight

class QAbstractLight

在Qt 3D场景中封装一个QAbstractLight对象。更多

PySide6.Qt3DRender.Qt3DRender.QAbstractLight 的继承图

继承者: QSpotLight, QPointLight, QDirectionalLight

概要

属性

方法

插槽

信号

注意

本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。

详细描述

class Type

识别特定类型的光。

常量

描述

Qt3DRender.QAbstractLight.PointLight

Qt3DRender.QAbstractLight.DirectionalLight

Qt3DRender.QAbstractLight.SpotLight

注意

当使用from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。

property colorᅟ: QColor

保存当前的QAbstractLight颜色。

Access functions:
property intensityᅟ: float

保存当前的QAbstractLight强度。

Access functions:
property typeᅟ: Qt3DRender.QAbstractLight.Type

灯光的类型。

Access functions:
color()
Return type:

QColor

另请参阅

setColor()

属性 colorᅟ 的获取器。

colorChanged(color)
Parameters:

颜色QColor

属性 colorᅟ 的通知信号。

intensity()
Return type:

浮点数

另请参阅

setIntensity()

属性 intensityᅟ 的获取器。

intensityChanged(intensity)
Parameters:

强度 – 浮点数

属性 intensityᅟ 的通知信号。

setColor(color)
Parameters:

颜色QColor

另请参阅

color()

属性 colorᅟ 的设置器。

setIntensity(intensity)
Parameters:

强度 – float

另请参阅

intensity()

属性 intensityᅟ 的设置器。

type()
Return type:

类型

保存当前的 QAbstractLight 类型。

属性 typeᅟ 的获取器。