QSpotLight Class

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

Properties

Public Functions

QSpotLight(Qt3DCore::QNode *parent = Q_NULLPTR)
float cutOffAngle() const
QVector3D direction() const

Public Slots

void setCutOffAngle(float cutOffAngle)
void setDirection(const QVector3D &direction)

Signals

void cutOffAngleChanged(float cutOffAngle)
void directionChanged(const QVector3D &direction)

Protected Functions

QSpotLight(QSpotLightPrivate &dd, Qt3DCore::QNode *parent = Q_NULLPTR)
void copy(const Qt3DCore::QNode *ref)

Additional Inherited Members

Detailed Description

Property Documentation

cutOffAngle : float

Access functions:

float cutOffAngle() const
void setCutOffAngle(float cutOffAngle)

Notifier signal:

void cutOffAngleChanged(float cutOffAngle)

direction : QVector3D

Access functions:

QVector3D direction() const
void setDirection(const QVector3D &direction)

Notifier signal:

void directionChanged(const QVector3D &direction)

Member Function Documentation

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

Constructs a new QSpotLight with the specified parent.

[protected] QSpotLight::QSpotLight(QSpotLightPrivate &dd, Qt3DCore::QNode *parent = Q_NULLPTR)

Copy constructor.

[protected] void QSpotLight::copy(const Qt3DCore::QNode *ref)

Copies the ref instance into this one.

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/archives/qt-5.6/qt3drender-qspotlight.html