内容表

上一话题

Qt3DRender.QPickTriangleEvent

下一话题

Qt3DRender.QPointLight

Qt3DRender.QPickingSettings

QPickingSettings class specifies how entity picking is handled. 更多

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QPickingSettings

概要

信号

详细描述

The picking settings determine how the entity picking is handled. For more details about entity picking, see QObjectPicker and QRayCaster component documentation.

当使用 QObjectPicker components, picking is triggered by mouse events.

当使用 QRayCaster or QScreenRayCaster components, picking can be explicitly triggered by the application.

In both cases, a ray will be cast through the scene to find geometry intersecting the ray.

另请参阅

QObjectPicker QPickEvent QPickTriangleEvent QRayCaster QScreenRayCaster

class PySide2.Qt3DRender.Qt3DRender. QPickingSettings ( [ parent=None ] )
参数

parent QNode

PySide2.Qt3DRender.Qt3DRender.QPickingSettings. PickMethod

Specifies the picking method.

常量

描述

Qt3DRender.QPickingSettings.BoundingVolumePicking

An entity is considered picked if the picking ray intersects the bounding volume of the entity (default).

Qt3DRender.QPickingSettings.TrianglePicking

An entity is considered picked if the picking ray intersects with any triangle of the entity’s mesh component.

Qt3DRender.QPickingSettings.LinePicking

An entity is considered picked if the picking ray intersects with any edge of the entity’s mesh component.

Qt3DRender.QPickingSettings.PointPicking

An entity is considered picked if the picking ray intersects with any point of the entity’s mesh component.

Qt3DRender.QPickingSettings.PrimitivePicking

An entity is considered picked if the picking ray intersects with any point, edge or triangle of the entity’s mesh component.

PySide2.Qt3DRender.Qt3DRender.QPickingSettings. PickResultMode

Specifies what is included into the picking results.

常量

描述

Qt3DRender.QPickingSettings.NearestPick

Only the nearest entity to picking ray origin intersected by the picking ray is picked (default).

Qt3DRender.QPickingSettings.AllPicks

All entities that intersect the picking ray are picked.

Qt3DRender.QPickingSettings.NearestPriorityPick

Selects the entity whose object picker has the highest value. If several object pickers have the same priority, the closest one on the ray is selected.

另请参阅

QPickEvent

PySide2.Qt3DRender.Qt3DRender.QPickingSettings. FaceOrientationPickingMode

Specifies how face orientation affects triangle picking

常量

描述

Qt3DRender.QPickingSettings.FrontFace

Only front-facing triangles will be picked (default).

Qt3DRender.QPickingSettings.BackFace

Only back-facing triangles will be picked.

Qt3DRender.QPickingSettings.FrontAndBackFace

Both front- and back-facing triangles will be picked.

PySide2.Qt3DRender.Qt3DRender.QPickingSettings. faceOrientationPickingMode ( )
返回类型

FaceOrientationPickingMode

PySide2.Qt3DRender.Qt3DRender.QPickingSettings. faceOrientationPickingModeChanged ( faceOrientationPickingMode )
参数

faceOrientationPickingMode FaceOrientationPickingMode

PySide2.Qt3DRender.Qt3DRender.QPickingSettings. pickMethod ( )
返回类型

PickMethod

另请参阅

setPickMethod()

PySide2.Qt3DRender.Qt3DRender.QPickingSettings. pickMethodChanged ( pickMethod )
参数

pickMethod PickMethod

PySide2.Qt3DRender.Qt3DRender.QPickingSettings. pickResultMode ( )
返回类型

PickResultMode

PySide2.Qt3DRender.Qt3DRender.QPickingSettings. pickResultModeChanged ( pickResult )
参数

pickResult PickResultMode

PySide2.Qt3DRender.Qt3DRender.QPickingSettings. setFaceOrientationPickingMode ( faceOrientationPickingMode )
参数

faceOrientationPickingMode FaceOrientationPickingMode

PySide2.Qt3DRender.Qt3DRender.QPickingSettings. setPickMethod ( pickMethod )
参数

pickMethod PickMethod

另请参阅

pickMethod()

PySide2.Qt3DRender.Qt3DRender.QPickingSettings. setPickResultMode ( pickResultMode )
参数

pickResultMode PickResultMode

另请参阅

pickResultMode()

PySide2.Qt3DRender.Qt3DRender.QPickingSettings. setWorldSpaceTolerance ( worldSpaceTolerance )
参数

worldSpaceTolerance float

Sets the threshold used for line and point picking to worldSpaceTolerance .

PySide2.Qt3DRender.Qt3DRender.QPickingSettings. worldSpaceTolerance ( )
返回类型

float

Returns the line and point precision

PySide2.Qt3DRender.Qt3DRender.QPickingSettings. worldSpaceToleranceChanged ( worldSpaceTolerance )
参数

worldSpaceTolerance float