QLight Class
(Qt3DRender::QLight)Header: | #include <QLight> |
qmake: | QT += 3drender |
Instantiated By: | Light |
Inherits: | Qt3DRender::QShaderData |
Inherited By: |
Public Types
enum | Type { PointLight, DirectionalLight, SpotLight } |
Properties
- 1 property inherited from Qt3DCore::QComponent
- 2 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
Public Functions
QLight(Qt3DCore::QNode *parent = Q_NULLPTR) | |
~QLight() | |
QColor | color() const |
float | intensity() const |
Type | type() const |
- 1 public function inherited from Qt3DRender::QShaderData
- 2 public functions inherited from Qt3DCore::QComponent
- 6 public functions inherited from Qt3DCore::QNode
- 31 public functions inherited from QObject
Public Slots
void | setColor(const QColor &color) |
void | setIntensity(float intensity) |
void | setType(Type type) |
- 1 public slot inherited from Qt3DCore::QComponent
- 2 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
Signals
void | colorChanged(const QColor &color) |
void | intensityChanged(float intensity) |
void | typeChanged(Type type) |
- 2 signals inherited from Qt3DCore::QComponent
- 2 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
Protected Functions
QLight(QLightPrivate &dd, Qt3DCore::QNode *parent = Q_NULLPTR) | |
void | copy(const Qt3DCore::QNode *ref) |
- 1 protected function inherited from Qt3DRender::QShaderData
- 1 protected function inherited from Qt3DCore::QComponent
- 3 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Additional Inherited Members
- 11 static public members inherited from QObject
- 1 static protected member inherited from Qt3DCore::QNode
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)
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/archives/qt-5.6/qt3drender-qlight.html