QScreenRayCaster Class

class Qt3DRender::QScreenRayCaster

화면 좌표를 기반으로 광선 캐스팅 테스트를 수행합니다. 더 보기...

Header: #include <QScreenRayCaster>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
QML에서: ScreenRayCaster
상속합니다: Qt3DRender::QAbstractRayCaster
상태: Deprecated

속성

공용 기능

QPoint position() const

공용 슬롯

void setPosition(const QPoint &position)
void trigger()
void trigger(const QPoint &position)

신호

void positionChanged(const QPoint &position)

상세 설명

QScreenRayCaster는 화면 공간에서 좌표를 지정하여 광선 캐스팅 테스트를 수행하는 데 사용할 수 있으며, 이는 근거리와 원거리 평면 사이에 실제 3D 광선을 구성하는 데 사용됩니다.

QRayCasterQNoPicking참조하십시오 .

프로퍼티 문서

position : QPoint

교차 테스트를 위한 실제 3D 광선을 계산하는 데 사용되는 화면 공간 위치를 보유합니다.

참고: 좌표는 유효한 범위 내에 있는 한 사용 가능한 모든 렌더링 서페이스에 사용됩니다.

기능에 액세스합니다:

QPoint position() const
void setPosition(const QPoint &position)

알림 신호:

void positionChanged(const QPoint &position)

멤버 함수 문서

[slot] void QScreenRayCaster::trigger()

컴포넌트를 활성화하고 현재 좌표 값을 사용하여 테스트를 트리거하는 편리한 메서드입니다.

[slot] void QScreenRayCaster::trigger(const QPoint &position)

좌표 값 position 을 설정하고 컴포넌트가 테스트를 트리거하도록 설정하는 편리한 메서드입니다.

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