Encapsulate a QAbstractLight object in a Qt 3D scene. 更多...
| 头: | #include <QAbstractLight> | 
| qmake: | QT += 3drender | 
| Since: | Qt 5.6 | 
| 实例化: | Light | 
| 继承: | Qt3DCore::QComponent | 
| 继承者: | 
								 Qt3DRender::QDirectionalLight , Qt3DRender::QPointLight ,和 Qt3DRender::QSpotLight  | 
						
该类在 Qt 5.6 引入。
| enum | Type { PointLight, DirectionalLight, SpotLight } | 
| QColor | color () const | 
| float | intensity () const | 
| Qt3DRender::QAbstractLight::Type | type () const | 
| void | setColor (const QColor & color ) | 
| void | setIntensity (float intensity ) | 
| void | colorChanged (const QColor & color ) | 
| void | intensityChanged (float intensity ) | 
Identifies the particular type of light.
| 常量 | 值 | 
|---|---|
								
Qt3DRender::QAbstractLight::PointLight
								
							 | 
							
								
0
								
							 | 
						
								
Qt3DRender::QAbstractLight::DirectionalLight
								
							 | 
							
								
1
								
							 | 
						
								
Qt3DRender::QAbstractLight::SpotLight
								
							 | 
							
								
2
								
							 | 
						
Holds the current QAbstractLight 颜色。
访问函数:
| QColor | color () const | 
| void | setColor (const QColor & color ) | 
通知程序信号:
| void | colorChanged (const QColor & color ) | 
Holds the current QAbstractLight intensity.
访问函数:
| float | intensity () const | 
| void | setIntensity (float intensity ) | 
通知程序信号:
| void | intensityChanged (float intensity ) | 
The type of light.
访问函数:
| Qt3DRender::QAbstractLight::Type | type () const | 
Holds the current QAbstractLight 类型。
注意: getter 函数对于特性 type。