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 構造函數。

[虛擬] Q3DLight:: ~Q3DLight ()

銷毀光對象。