Qt3DRender.QScreenRayCaster¶
Performe ray casting test based on screen coordinates. More…
New in version 5.11.
Synopsis¶
Slots¶
def
setPosition
(position)def
trigger
()def
trigger
(position)
Signals¶
def
positionChanged
(position)
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
-
class
PySide2.Qt3DRender.Qt3DRender.
QScreenRayCaster
([parent=None])¶ - Parameters
parent –
QNode
-
PySide2.Qt3DRender.Qt3DRender.QScreenRayCaster.
position
()¶ - Return type
QPoint
See also
setPosition()
-
PySide2.Qt3DRender.Qt3DRender.QScreenRayCaster.
positionChanged
(position)¶ - Parameters
position –
QPoint
-
PySide2.Qt3DRender.Qt3DRender.QScreenRayCaster.
setPosition
(position)¶ - Parameters
position –
QPoint
See also
position()
-
PySide2.Qt3DRender.Qt3DRender.QScreenRayCaster.
trigger
()¶ Convenience method to enable the component and trigger tests using the current coordinate value.
-
PySide2.Qt3DRender.Qt3DRender.QScreenRayCaster.
trigger
(position) - Parameters
position –
QPoint
Convenience method to set the coordinate value
position
and enable the component to trigger tests.
© 2018 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.