QScreenRayCaster#
Performe ray casting test based on screen coordinates. More…
Synopsis#
Properties#
Functions#
def
position
()
Slots#
def
pick
(position)def
setPosition
(position)def
trigger
()def
trigger
(position)
Signals#
def
positionChanged
(position)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
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:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DRender.Qt3DRender.QScreenRayCaster.position: PySide6.QtCore.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
()setPosition
(position)Signal
positionChanged
(position)
- PySide6.Qt3DRender.Qt3DRender.QScreenRayCaster.pick(position)#
- Parameters:
position –
PySide6.QtCore.QPoint
- PySide6.Qt3DRender.Qt3DRender.QScreenRayCaster.position()#
- Return type:
See also
Getter of property position
.
- PySide6.Qt3DRender.Qt3DRender.QScreenRayCaster.positionChanged(position)#
- Parameters:
position –
PySide6.QtCore.QPoint
Notification signal of property position
.
- PySide6.Qt3DRender.Qt3DRender.QScreenRayCaster.setPosition(position)#
- Parameters:
position –
PySide6.QtCore.QPoint
See also
Setter of property 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:
position –
PySide6.QtCore.QPoint
Convenience method to set the coordinate value position
and enable the component to trigger tests.