Encapsulate a QAbstractLight object in a Qt 3D scene. 更多...
| 頭: | #include <QAbstractLight> |
| qmake: | QT += 3drender |
| Since: | Qt 5.6 |
| 實例化: | Light |
| 繼承: | Qt3DCore::QComponent |
| 繼承者: | Qt3DRender::QDirectionalLight , Qt3DRender::QPointLight ,和 Qt3DRender::QSpotLight |
| enum | Type { PointLight, DirectionalLight, SpotLight } |
| ~QAbstractLight () | |
| QColor | color () const |
| float | intensity () const |
| 類型 | type () const |
| void | setColor (const QColor & color ) |
| void | setIntensity (float intensity ) |
| void | colorChanged (const QColor & color ) |
| void | intensityChanged (float intensity ) |
| QAbstractLight (QAbstractLightPrivate & dd , Qt3DCore::QNode * parent = nullptr) |
Encapsulate a QAbstractLight object in a Qt 3D scene.
Identifies the particular type of light.
| 常量 | 值 |
|---|---|
Qt3DRender::QAbstractLight::PointLight
|
0
|
Qt3DRender::QAbstractLight::DirectionalLight
|
1
|
Qt3DRender::QAbstractLight::SpotLight
|
2
|
Holds the current QAbstractLight 顔色。
訪問函數:
| QColor | color () const |
| void | setColor (const QColor & color ) |
通知程序信號:
| void | colorChanged (const QColor & color ) |
Holds the current QAbstractLight intensity.
訪問函數:
| float | intensity () const |
| void | setIntensity (float intensity ) |
通知程序信號:
| void | intensityChanged (float intensity ) |
Contains the type of light.
訪問函數:
| 類型 | type () const |
[protected]
QAbstractLight::
QAbstractLight
(
QAbstractLightPrivate
&
dd
,
Qt3DCore::QNode
*
parent
= nullptr)
Copy constructor.
Destroys the instance of QAbstractLight.
Holds the current QAbstractLight 類型。
注意: getter 函數對於特性 type .