pick
#
|
Picking Manager helps with picking 3D objects. |
|
Selection Manager helps with picking many objects simultaneously. |
PickingManager
#
- class fury.pick.PickingManager(*, vertices=True, faces=True, actors=True, world_coords=True)[source]#
Bases:
object
Picking Manager helps with picking 3D objects.
- event_position(iren)[source]#
Return event display position from interactor.
- Parameters:
- ireninteractor
The interactor object can be retrieved for example using providing ShowManager’s iren attribute.
- pick(disp_xy, sc)[source]#
Pick on display coordinates.
- Parameters:
- disp_xytuple
Display coordinates x, y.
- scScene
SelectionManager
#
- class fury.pick.SelectionManager(*, select='faces')[source]#
Bases:
object
Selection Manager helps with picking many objects simultaneously.
- event_position(iren)[source]#
Return event display position from interactor.
- Parameters:
- ireninteractor
The interactor object can be retrieved for example using ShowManager’s iren attribute.
- pick(disp_xy, sc)[source]#
Pick on display coordinates returns a single object.
- Parameters:
- disp_xytuple
Display coordinates x, y.
- scScene
- select(disp_xy, sc, *, area=0)[source]#
Select multiple objects using display coordinates.
- Parameters:
- disp_xytuple
Display coordinates x, y.
- scScene
- areaint or 2d tuple of ints
Selection area around x, y coords.
- selectable_off(actors)[source]#
Choose which actors cannot be selected.
- Parameters:
- actorsactor or sequence of actors