QAbstractLight Class

(Qt3DRender::QAbstractLight)

Encapsulate a QAbstractLight object in a Qt 3D scene. 更多...

头文件: #include <QAbstractLight>
qmake: QT += 3drender
开始支持版本: Qt 5.6
Instantiated By: Light
基类: Qt3DCore::QComponent
派生类:

Qt3DRender::QDirectionalLight, Qt3DRender::QPointLight, and Qt3DRender::QSpotLight

公有类型

enum Type { PointLight, DirectionalLight, SpotLight }

属性

公有函数

~QAbstractLight()
QColor color() const
float intensity() const
Type type() const

公有槽函数

void setColor(const QColor &color)
void setIntensity(float intensity)

信号

void colorChanged(const QColor &color)
void intensityChanged(float intensity)

受保护的函数

QAbstractLight(QAbstractLightPrivate &dd, Qt3DCore::QNode *parent = nullptr)

其他继承的成员

  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

Encapsulate a QAbstractLight object in a Qt 3D scene.

成员类型

enum QAbstractLight::Type

属性

color : QColor

Holds the current QAbstractLight color.

访问函数:

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

Notifier signal:

void colorChanged(const QColor &color)

intensity : float

Holds the current QAbstractLight intensity.

访问函数:

float intensity() const
void setIntensity(float intensity)

Notifier signal:

void intensityChanged(float intensity)

type : const Type

Holds the current QAbstractLight type.

访问函数:

Type type() const

成员函数

[protected] QAbstractLight::QAbstractLight(QAbstractLightPrivate &dd, Qt3DCore::QNode *parent = nullptr)

Copy constructor.

QAbstractLight::~QAbstractLight()

Destroys the instance of QAbstractLight.