QAbstractLight露

Encapsulate a QAbstractLight object in a Qt 3D scene. More鈥�

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QAbstractLight

Inherited by: QDirectionalLight, QPointLight, QSpotLight

Synopsis露

Functions露

Slots露

Signals露

Detailed Description露

class PySide2.Qt3DRender.Qt3DRender.QAbstractLight露
PySide2.Qt3DRender.Qt3DRender.QAbstractLight.Type露

Identifies the particular type of light.

Constant

Description

Qt3DRender.QAbstractLight.PointLight

Qt3DRender.QAbstractLight.DirectionalLight

Qt3DRender.QAbstractLight.SpotLight

PySide2.Qt3DRender.Qt3DRender.QAbstractLight.color()露
Return type:

PySide2.QtGui.QColor

Holds the current QAbstractLight color.

PySide2.Qt3DRender.Qt3DRender.QAbstractLight.colorChanged(color)露
Parameters:

color 鈥� PySide2.QtGui.QColor

PySide2.Qt3DRender.Qt3DRender.QAbstractLight.intensity()露
Return type:

float

Holds the current QAbstractLight intensity.

PySide2.Qt3DRender.Qt3DRender.QAbstractLight.intensityChanged(intensity)露
Parameters:

intensity 鈥� float

PySide2.Qt3DRender.Qt3DRender.QAbstractLight.setColor(color)露
Parameters:

color 鈥� PySide2.QtGui.QColor

Holds the current QAbstractLight color.

PySide2.Qt3DRender.Qt3DRender.QAbstractLight.setIntensity(intensity)露
Parameters:

intensity 鈥� float

Holds the current QAbstractLight intensity.

PySide2.Qt3DRender.Qt3DRender.QAbstractLight.type()露
Return type:

Type

The type of light.