QAbstractLight Class

(Qt3D::QAbstractLight)
Header: #include <QAbstractLight>
qmake: QT += 3drenderer
Inherits: QShaderData
Inherited By:

Qt3D::QPointLight and Qt3D::QSpotLight

Properties

Public Functions

QAbstractLight(QNode * parent = 0)
QColor color() const
float intensity() const
QVector3D position() const
TransformType positionTransformed() const
void setColor(const QColor & color)
void setIntensity(float intensity)
void setPosition(const QVector3D & position)

Signals

Protected Functions

void copy(const QNode * ref)

Detailed Description

Property Documentation

color : QColor

Holds the current QAbstractLight color.

Access functions:

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

Notifier signal:

void colorChanged()

intensity : float

Holds the current QAbstractLight intensity.

Access functions:

float intensity() const
void setIntensity(float intensity)

Notifier signal:

void intensityChanged()

position : QVector3D

Holds the current QAbstractLight position.

Access functions:

QVector3D position() const
void setPosition(const QVector3D & position)

Notifier signal:

void positionChanged()

positionTransformed : const TransformType

Access functions:

TransformType positionTransformed() const

Member Function Documentation

QAbstractLight::QAbstractLight(QNode * parent = 0)

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

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