QPickingSettingsclass specifies how entity picking is handled. 更多 …
def
faceOrientationPickingMode
()
def
pickMethod
()
def
pickResultMode
()
def
worldSpaceTolerance
()
def
setFaceOrientationPickingMode
(faceOrientationPickingMode)
def
setPickMethod
(pickMethod)
def
setPickResultMode
(pickResultMode)
def
setWorldSpaceTolerance
(worldSpaceTolerance)
def
faceOrientationPickingModeChanged
(faceOrientationPickingMode)
def
pickMethodChanged
(pickMethod)
def
pickResultModeChanged
(pickResult)
def
worldSpaceToleranceChanged
(worldSpaceTolerance)
The picking settings determine how the entity picking is handled. For more details about entity picking, see
QObjectPickerandQRayCastercomponent documentation.当使用
QObjectPickercomponents, picking is triggered by mouse events.当使用
QRayCasterorQScreenRayCastercomponents, 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.
另请参阅
QObjectPickerQPickEventQPickTriangleEventQRayCasterQScreenRayCaster
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
(
)
¶
PySide2.Qt3DRender.Qt3DRender.QPickingSettings.
faceOrientationPickingModeChanged
(
faceOrientationPickingMode
)
¶
faceOrientationPickingMode
–
FaceOrientationPickingMode
PySide2.Qt3DRender.Qt3DRender.QPickingSettings.
pickMethod
(
)
¶
另请参阅
PySide2.Qt3DRender.Qt3DRender.QPickingSettings.
pickMethodChanged
(
pickMethod
)
¶
pickMethod
–
PickMethod
PySide2.Qt3DRender.Qt3DRender.QPickingSettings.
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
另请参阅
PySide2.Qt3DRender.Qt3DRender.QPickingSettings.
setPickResultMode
(
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