PickEvent QML Type
PickEvent 保存拾取对象时的信息。当拾取成功时,大多数 QObjectPicker 组件信号都会将此作为参数接收。更多
Import Statement: | import Qt3D.Render 2.9 |
In C++: | QPickEvent |
Status: | Deprecated |
属性
- accepted : bool
- button : int
- buttons : int
- distance : real
- entity : Entity
- localIntersection : Vector3D
- modifiers : int
- position : Point2D
- viewport : Viewport
- worldIntersection : Vector3D
详细说明
另请参见 ObjectPicker 和PickingSettings 。
属性文档
accepted : bool |
指定事件是否已被接受
button : int |
指定引发事件的鼠标按钮
buttons : int |
指定事件的鼠标按钮状态
distance : real |
指定击中点到摄像机的距离
entity : Entity |
拾取的几何体所属的实体。
如果对象拾取器没有连接到场景图中的叶节点,则这对查找实际拾取的子实体非常有用。
localIntersection : Vector3D |
指定被拾取实体在本地坐标系中的坐标
modifiers : int |
指定事件的鼠标按钮状态
position : Point2D |
指定鼠标相对于呈现区域(窗口或快速项)的位置
viewport : Viewport |
事件发生的视口。空值表示事件来自没有视口的框架图分支。如果框架图分支的视口内有一个视口,则该属性将包含叶视口。
worldIntersection : Vector3D |
指定事件在世界坐标系中的坐标
© 2025 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.