Q3DLight¶
Representation of a light source in 3D space. More…
Synopsis¶
Functions¶
def
isAutoPosition
()def
setAutoPosition
(enabled)
Signals¶
def
autoPositionChanged
(autoPosition)
Detailed Description¶
Q3DLight
represents a monochrome light source in 3D space.
Note
Default light has isAutoPosition()
true
.
- class PySide6.QtDataVisualization.Q3DLight([parent=None])¶
- Parameters
parent –
PySide6.QtCore.QObject
Constructs a new 3D light located at origin. An optional parent
parameter can be given and is then passed to QObject
constructor.
- PySide6.QtDataVisualization.Q3DLight.autoPositionChanged(autoPosition)¶
- Parameters
autoPosition – bool
- PySide6.QtDataVisualization.Q3DLight.isAutoPosition()¶
- Return type
bool
This property holds Whether the light position follows the camera automatically..
Note
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
.
- PySide6.QtDataVisualization.Q3DLight.setAutoPosition(enabled)¶
- Parameters
enabled – bool
This property holds Whether the light position follows the camera automatically..
Note
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
.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.