QPointLight Class
(Qt3DRender::QPointLight)Encapsulate a Point Light object in a Qt 3D scene. 更多...
头文件: | #include <QPointLight> |
qmake: | QT += 3drender |
开始支持版本: | Qt 5.5 |
Instantiated By: | PointLight |
基类: | Qt3DRender::QAbstractLight |
属性
- constantAttenuation : float
- linearAttenuation : float
- quadraticAttenuation : float
- 3 个属性继承自 Qt3DRender::QAbstractLight
- 1 个属性继承自 Qt3DCore::QComponent
- 3 个属性继承自 Qt3DCore::QNode
- 1 个属性继承自 QObject
公有函数
QPointLight(Qt3DCore::QNode *parent = nullptr) | |
float | constantAttenuation() const |
float | linearAttenuation() const |
float | quadraticAttenuation() const |
- 3 个公有函数继承自 Qt3DRender::QAbstractLight
- 2 个公有函数继承自 Qt3DCore::QComponent
- 11 个公有函数继承自 Qt3DCore::QNode
- 32 个公有函数继承自 QObject
公有槽函数
void | setConstantAttenuation(float value) |
void | setLinearAttenuation(float value) |
void | setQuadraticAttenuation(float value) |
- 2 个公有槽函数继承自 Qt3DRender::QAbstractLight
- 1 个公有槽函数继承自 Qt3DCore::QComponent
- 3 个公有槽函数继承自 Qt3DCore::QNode
- 1 个公有槽函数继承自 QObject
信号
void | constantAttenuationChanged(float constantAttenuation) |
void | linearAttenuationChanged(float linearAttenuation) |
void | quadraticAttenuationChanged(float quadraticAttenuation) |
- 2 个信号继承自 Qt3DRender::QAbstractLight
- 3 个信号继承自 Qt3DCore::QComponent
- 4 个信号继承自 Qt3DCore::QNode
- 2 个信号继承自 QObject
受保护的函数
QPointLight(QPointLightPrivate &dd, Qt3DCore::QNode *parent) |
- 2 个受保护的函数继承自 Qt3DCore::QNode
- 9 个受保护的函数继承自 QObject
其他继承的成员
详细描述
Encapsulate a Point Light object in a Qt 3D scene.
属性
constantAttenuation : float
Specifies the constant attenuation of the point light
访问函数:
float | constantAttenuation() const |
void | setConstantAttenuation(float value) |
Notifier signal:
void | constantAttenuationChanged(float constantAttenuation) |
linearAttenuation : float
Specifies the linear attenuation of the point light
访问函数:
float | linearAttenuation() const |
void | setLinearAttenuation(float value) |
Notifier signal:
void | linearAttenuationChanged(float linearAttenuation) |
quadraticAttenuation : float
Specifies the quadratic attenuation of the point light
访问函数:
float | quadraticAttenuation() const |
void | setQuadraticAttenuation(float value) |
Notifier signal:
void | quadraticAttenuationChanged(float quadraticAttenuation) |
成员函数
QPointLight::QPointLight(Qt3DCore::QNode *parent = nullptr)
Constructs a new QPointLight with the specified parent.
[protected]
QPointLight::QPointLight(QPointLightPrivate &dd, Qt3DCore::QNode *parent)
Copy constructor.