PickEvent QML Type

PickEvent holds information when an object is picked. This is received as a parameter in most of the QObjectPicker component signals when picking succeeds. 更多...

import 语句: import Qt3D.Render 2.7
实例化: QPickEvent

特性

详细描述

另请参阅 ObjectPicker and PickingSettings .

特性文档编制

accepted : bool

Specifies if event has been accepted

button : int [read-only]

Specifies mouse button that caused the event

buttons : int [read-only]

Specifies state of the mouse buttons for the event

distance : real [read-only]

Specifies the distance of the hit to the camera

entity : Entity [read-only]

The entity that the picked geometry belongs to.

If the object picker is not attached to a leaf node in the scene graph, this is useful to find which child entity was actually picked.

localIntersection : Vector3D [read-only]

Specifies the coordinates of the hit in the local coordinate system of the picked entity

modifiers : int [read-only]

Specifies state of the mouse buttons for the event

position : Point2D [read-only]

Specifies the mouse position with respect to the render area (window or quick item)

viewport : Viewport [read-only]

The viewport in which this event originated. A null value means the event originated from a frame graph branch without a Viewport. If a frame graph branch has a Viewport inside a Viewport the property will contain the leaf viewport.

worldIntersection : Vector3D [read-only]

Specifies the coordinates of the hit in world coordinate system