このページでは

Qt3DRender::QDirectionalLight Class

class Qt3DRender::QDirectionalLight

Qt 3D のシーン内で、Directional Lightオブジェクトをカプセル化します。詳細...

ヘッダー: #include <qdirectionallight.h>
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を生成します。

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