QDirectionalLight Class

class Qt3DRender::QDirectionalLight

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

ヘッダー #include <QDirectionalLight>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake QT += 3drender
QML で DirectionalLight
を継承しています: Qt3DRender::QAbstractLight
ステータス非推奨

プロパティ

パブリック機能

QDirectionalLight(Qt3DCore::QNode *parent = nullptr)
QVector3D worldDirection() const

パブリックスロット

void setWorldDirection(const QVector3D &worldDirection)

シグナル

void worldDirectionChanged(const QVector3D &worldDirection)

詳細説明

指向性ライトは、太陽光に似た振る舞いをする光源です。指向性ライトからの光は、シーン内のオブジェクトの位置に関係なく、すべてのオブジェクトに同じ方向から同じ強さで当たります。

プロパティ ドキュメント

worldDirection : QVector3D

指向性ライトのワールド方向を指定します。

注意: このプロパティの正確な意味と使用方法は、マテリアルの実装次第です。

アクセス関数:

QVector3D worldDirection() const
void setWorldDirection(const QVector3D &worldDirection)

通知シグナル:

void worldDirectionChanged(const QVector3D &worldDirection)

メンバ関数ドキュメント

[explicit] QDirectionalLight::QDirectionalLight(Qt3DCore::QNode *parent = nullptr)

指定されたparent を持つ新しい QDirectionalLight を構築します。

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