Performe ray casting test based on screen coordinates. 更多 …
New in version 5.11.
def
setPosition
(position)
def
trigger
()
def
trigger
(position)
def
positionChanged
(position)
QScreenRayCastercan 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.另请参阅
QRayCasterQNoPicking
PySide2.Qt3DRender.Qt3DRender.
QScreenRayCaster
(
[
parent=None
]
)
¶
parent
–
QNode
PySide2.Qt3DRender.Qt3DRender.QScreenRayCaster.
position
(
)
¶
QPoint
另请参阅
PySide2.Qt3DRender.Qt3DRender.QScreenRayCaster.
positionChanged
(
position
)
¶
position
–
QPoint
PySide2.Qt3DRender.Qt3DRender.QScreenRayCaster.
setPosition
(
position
)
¶
position
–
QPoint
另请参阅
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
)
¶
position
–
QPoint
Convenience method to set the coordinate value
position
and enable the component to trigger tests.