Q3DLight Class
Representation of a light source in 3D space. 更多...
属性
- autoPosition : bool
公有函数
Q3DLight(QObject *parent = Q_NULLPTR) | |
virtual | ~Q3DLight() |
bool | isAutoPosition() |
void | setAutoPosition(bool enabled) |
信号
void | autoPositionChanged(bool autoPosition) |
其他继承的成员
- 1 个公有槽函数继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 2 个受保护的函数继承自 Q3DObject
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
Representation of a light source in 3D space.
Q3DLight represents a monochrome light source in 3D space.
Note: Default light has isAutoPosition() true
.
属性
autoPosition : 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
.
This property was introduced in QtDataVisualization 5.9.
访问函数:
bool | isAutoPosition() |
void | setAutoPosition(bool enabled) |
Notifier signal:
void | autoPositionChanged(bool autoPosition) |