Q3DLight 类

在 3D 空间表示光源。 更多...

头: #include <Q3DLight>
Since: QtDataVisualization 1.0
实例化: Light3D
继承: Q3DObject

特性

公共函数

Q3DLight (QObject * parent = Q_NULLPTR)
virtual ~Q3DLight ()
bool isAutoPosition ()
void setAutoPosition (bool enabled )

信号

void autoPositionChanged (bool autoPosition )

额外继承成员

详细描述

在 3D 空间表示光源。

Q3DLight represents a monochrome light source in 3D space.

注意: 默认光有 isAutoPosition () true .

特性文档编制

autoPosition : bool

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 )

成员函数文档编制

Q3DLight:: Q3DLight ( QObject * parent = Q_NULLPTR)

构造位于原点的新 3D 光。可选 parent 参数可以给出,然后会被传递给 QObject 构造函数。

[virtual] Q3DLight:: ~Q3DLight ()

销毁光对象。