QScreenRayCaster

Performe ray casting test based on screen coordinates. More

Inheritance diagram of PySide6.Qt3DRender.Qt3DRender.QScreenRayCaster

New in version 5.11.

Synopsis

Functions

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

QRayCaster QNoPicking

class PySide6.Qt3DRender.Qt3DRender.QScreenRayCaster([parent=None])
Parameters

parentPySide6.Qt3DCore.Qt3DCore.QNode

PySide6.Qt3DRender.Qt3DRender.QScreenRayCaster.pick(position)
Parameters

positionPySide6.QtCore.QPoint

Return type

PySide6.Qt3DRender.Qt3DRender.QScreenRayCaster.position()
Return type

PySide6.QtCore.QPoint

See also

setPosition()

PySide6.Qt3DRender.Qt3DRender.QScreenRayCaster.positionChanged(position)
Parameters

positionPySide6.QtCore.QPoint

PySide6.Qt3DRender.Qt3DRender.QScreenRayCaster.setPosition(position)
Parameters

positionPySide6.QtCore.QPoint

See also

position()

PySide6.Qt3DRender.Qt3DRender.QScreenRayCaster.trigger()

Convenience method to enable the component and trigger tests using the current coordinate value.

PySide6.Qt3DRender.Qt3DRender.QScreenRayCaster.trigger(position)
Parameters

positionPySide6.QtCore.QPoint

Convenience method to set the coordinate value position and enable the component to trigger tests.