PySide6.Qt3DRender.Qt3DRender.QAbstractLight¶
- class QAbstractLight¶
在Qt 3D场景中封装一个
QAbstractLight对象。更多…继承者:
QSpotLight,QPointLight,QDirectionalLight概要¶
属性¶
方法¶
def
color()def
intensity()def
type()
插槽¶
def
setColor()def
setIntensity()
信号¶
def
colorChanged()
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
- class Type¶
识别特定类型的光。
常量
描述
Qt3DRender.QAbstractLight.PointLight
Qt3DRender.QAbstractLight.DirectionalLight
Qt3DRender.QAbstractLight.SpotLight
注意
当使用
from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。保存当前的
QAbstractLight颜色。- Access functions:
- property intensityᅟ: float¶
保存当前的
QAbstractLight强度。- Access functions:
- property typeᅟ: Qt3DRender.QAbstractLight.Type¶
灯光的类型。
- Access functions:
属性
colorᅟ的获取器。属性
colorᅟ的通知信号。- intensity()¶
- Return type:
浮点数
另请参阅
setIntensity()
属性
intensityᅟ的获取器。- intensityChanged(intensity)¶
- Parameters:
强度 – 浮点数
属性
intensityᅟ的通知信号。属性
colorᅟ的设置器。- setIntensity(intensity)¶
- Parameters:
强度 – float
另请参阅
intensity()
属性
intensityᅟ的设置器。- type()¶
- Return type:
类型
保存当前的
QAbstractLight类型。属性
typeᅟ的获取器。