在 3D 空间表示光源。 更多...
| 头: | #include <Q3DLight> | 
| qmake: | QT += datavisualization | 
| Since: | QtDataVisualization 1.0 | 
| 实例化: | Light3D | 
| 继承: | Q3DObject | 
该类在 QtDataVisualization 1.0 引入。
| Q3DLight (QObject * parent = nullptr) | |
| virtual | ~Q3DLight () | 
| bool | isAutoPosition () | 
| void | setAutoPosition (bool enabled ) | 
| void | autoPositionChanged (bool autoPosition ) | 
Q3DLight 表示在 3D 空间中的单色光源。
						
							注意:
						
						默认光有
						
							isAutoPosition
						
						()
						
true
						
						.
					
This property holds whether the light position follows the camera automatically.
						
							注意:
						
						Has no effect if shadows are enabled. Remember to disable shadows before setting light's position, or it will be overwritten by automatic positioning if
						
isAutoPosition()
						
						is
						
false
						
						.
					
该特性在 QtDataVisualization 5.9 引入。
访问函数:
| bool | isAutoPosition () | 
| void | setAutoPosition (bool enabled ) | 
通知程序信号:
| void | autoPositionChanged (bool autoPosition ) | 
构造位于原点的新 3D 光。可选 parent 参数可以给出,然后会被传递给 QObject 构造函数。
[虚拟]
						
						Q3DLight::
						
							~Q3DLight
						
						()
						
					销毁光对象。