Q3DLight Class

Representation of a light source in 3D space. 更多...

头文件: #include <Q3DLight>
开始支持版本: QtDataVisualization 1.0
Instantiated By: Light3D
基类: Q3DObject

属性

公有函数

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)

成员函数

Q3DLight::Q3DLight(QObject *parent = Q_NULLPTR)

Constructs a new 3D light located at origin. An optional parent parameter can be given and is then passed to QObject constructor.

[virtual] Q3DLight::~Q3DLight()

Destroys the light object.