QScreenRayCaster Class▲
-
Header: QScreenRayCaster
-
Since: Qt 5.11
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
-
qmake: QT += 3drender
-
Inherited By:
-
Instantiated By: qml-qt3d-render-screenraycaster.xml
-
Inherits: Qt3DRender::QAbstractRayCaster
Detailed Description▲
QScreenRayCaster can be used to perform ray casting tests by specifying coordinates in screen space, which will be used to construct an actual 3D ray between the near and far planes.
See Also▲
See also QRayCaster, QNoPicking
Property Documentation▲
position : QPoint▲
Holds the screen space position used to compute the actual 3D ray for intersection tests.
Note: the coordinates will be used for every available render surface as long as they are in the valid range.
Access functions:
-
position() const
-
void setPosition(const &position)
Notifier signal:
-
void positionChanged(const &position)