QPointLight Class

(Qt3DRender::QPointLight)
Header: #include <QPointLight>
qmake: QT += 3drender
Since: Qt 5.5
Instantiated By: PointLight
Inherits: Qt3DRender::QLight
Inherited By:

Qt3DRender::QSpotLight

Properties

Public Functions

QPointLight(Qt3DCore::QNode *parent = Q_NULLPTR)
QVector3D attenuation() const
float constantAttenuation() const
float linearAttenuation() const
float quadraticAttenuation() const
void setConstantAttenuation(float value)
void setLinearAttenuation(float value)
void setQuadraticAttenuation(float value)

Public Slots

void setAttenuation(const QVector3D &value)

Signals

void attenuationChanged(const QVector3D &attenuation)

Protected Functions

QPointLight(QPointLightPrivate &dd, Qt3DCore::QNode *parent)

Additional Inherited Members

Detailed Description

Property Documentation

attenuation : QVector3D

Access functions:

QVector3D attenuation() const
void setAttenuation(const QVector3D &value)

Notifier signal:

void attenuationChanged(const QVector3D &attenuation)

Member Function Documentation

QPointLight::QPointLight(Qt3DCore::QNode *parent = Q_NULLPTR)

Constructs a new QPointLight with the specified parent.

[protected] QPointLight::QPointLight(QPointLightPrivate &dd, Qt3DCore::QNode *parent)

Copy constructor.

float QPointLight::constantAttenuation() const

See also setConstantAttenuation().

float QPointLight::linearAttenuation() const

See also setLinearAttenuation().

float QPointLight::quadraticAttenuation() const

See also setQuadraticAttenuation().

void QPointLight::setConstantAttenuation(float value)

See also constantAttenuation().

void QPointLight::setLinearAttenuation(float value)

See also linearAttenuation().

void QPointLight::setQuadraticAttenuation(float value)

See also quadraticAttenuation().

© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.