Q3DLight Class

3D 공간에서 광원 표현. 더 보기...

헤더: #include <Q3DLight>
CMake: find_package(Qt6 REQUIRED COMPONENTS DataVisualization)
target_link_libraries(mytarget PRIVATE Qt6::DataVisualization)
qmake: QT += datavisualization
이후: QtDataVisualization 1.0
QML에서: Light3D
상속합니다: Q3DObject

속성

공공 기능

Q3DLight(QObject *parent = nullptr)
virtual ~Q3DLight()
bool isAutoPosition()
void setAutoPosition(bool enabled)

신호

void autoPositionChanged(bool autoPosition)

상세 설명

Q3DLight는 3D 공간에서 단색 광원을 나타냅니다.

참고: 기본 광원은 isAutoPosition() true 입니다.

프로퍼티 문서

[since QtDataVisualization 5.9] autoPosition : bool

이 프로퍼티는 조명 위치가 카메라를 자동으로 따라갈지 여부를 설정합니다.

참고: 그림자가 활성화된 경우 영향을 미치지 않습니다. 빛의 위치를 설정하기 전에 그림자를 비활성화하지 않으면 isAutoPosition()false 인 경우 자동 위치 지정으로 덮어씌워집니다.

이 프로퍼티는 QtDataVisualization 5.9에 도입되었습니다.

함수 액세스:

bool isAutoPosition()
void setAutoPosition(bool enabled)

알림 신호:

void autoPositionChanged(bool autoPosition)

멤버 함수 문서

[explicit] Q3DLight::Q3DLight(QObject *parent = nullptr)

원점에 새로운 3D 조명을 생성합니다. 선택 사항으로 parent 파라미터를 지정한 다음 QObject 생성자에 전달할 수 있습니다.

[virtual noexcept] Q3DLight::~Q3DLight()

라이트 오브젝트를 파괴합니다.

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