QAbstractLight Class

class Qt3DRender::QAbstractLight

Qt 3D シーン内の QAbstractLight オブジェクトをカプセル化します。もっと見る

ヘッダー #include <QAbstractLight>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake QT += 3drender
QML で Light
を継承: Qt3DCore::QComponent
によって継承されています:

Qt3DRender::QDirectionalLight,Qt3DRender::QPointLight, andQt3DRender::QSpotLight

ステータス非推奨

パブリックタイプ

enum Type { PointLight, DirectionalLight, SpotLight }

プロパティ

パブリック機能

QColor color() const
float intensity() const
Qt3DRender::QAbstractLight::Type type() const

パブリックスロット

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

シグナル

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

詳細説明

メンバー型ドキュメント

enum QAbstractLight::Type

特定の光の種類を識別する。

定数
Qt3DRender::QAbstractLight::PointLight0
Qt3DRender::QAbstractLight::DirectionalLight1
Qt3DRender::QAbstractLight::SpotLight2

プロパティの説明

color : QColor

現在のQAbstractLight の色を保持する。

アクセス関数:

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

通知シグナル:

void colorChanged(const QColor &color)

intensity : float

現在のQAbstractLight の強度を保持する。

アクセス機能:

float intensity() const
void setIntensity(float intensity)

通知信号:

void intensityChanged(float intensity)

[read-only] type : const Type

ライトの種類

アクセス関数:

Qt3DRender::QAbstractLight::Type type() const

メンバー関数ドキュメント

Qt3DRender::QAbstractLight::Type QAbstractLight::type() const

現在のQAbstractLight タイプを保持する。

注: プロパティタイプのゲッター関数。

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