QLight Class

(Qt3DRender::QLight)
Header: #include <QLight>
qmake: QT += 3drender
Instantiated By: Light
Inherits: Qt3DRender::QShaderData
Inherited By:

Qt3DRender::QPointLight

Public Types

enum Type { PointLight, DirectionalLight, SpotLight }

Properties

Public Functions

QLight(Qt3DCore::QNode *parent = Q_NULLPTR)
~QLight()
QColor color() const
float intensity() const
Type type() const

Public Slots

void setColor(const QColor &color)
void setIntensity(float intensity)
void setType(Type type)

Signals

void colorChanged(const QColor &color)
void intensityChanged(float intensity)
void typeChanged(Type type)

Protected Functions

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

Additional Inherited Members

Detailed Description

Member Type Documentation

enum QLight::Type

Property Documentation

color : QColor

Holds the current QLight color.

Access functions:

QColor color() const
void setColor(const QColor &color)

Notifier signal:

void colorChanged(const QColor &color)

intensity : float

Holds the current QLight intensity.

Access functions:

float intensity() const
void setIntensity(float intensity)

Notifier signal:

void intensityChanged(float intensity)

type : Type

Access functions:

Type type() const
void setType(Type type)

Notifier signal:

void typeChanged(Type type)

Member Function Documentation

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

Constructs a new QLight with the given parent.

[protected] QLight::QLight(QLightPrivate &dd, Qt3DCore::QNode *parent = Q_NULLPTR)

Copy constructor.

QLight::~QLight()

Destroys the instance of QLight.

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

© 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.