pick

CellPicker

alias of vtkmodules.vtkRenderingCore.vtkCellPicker

DataObject

alias of vtkmodules.vtkCommonDataModel.vtkDataObject

HardwareSelector

alias of vtkmodules.vtkRenderingCore.vtkHardwareSelector

PickingManager([vertices, faces, actors, ...])

Picking Manager helps with picking 3D objects.

PointPicker

alias of vtkmodules.vtkRenderingCore.vtkPointPicker

PropPicker

alias of vtkmodules.vtkRenderingCore.vtkPropPicker

SelectionManager([select])

Selection Manager helps with picking many objects simultaneously.

Sequence()

All the operations on a read-only sequence.

WorldPointPicker

alias of vtkmodules.vtkRenderingCore.vtkWorldPointPicker

CellPicker

fury.pick.CellPicker

alias of vtkmodules.vtkRenderingCore.vtkCellPicker

DataObject

fury.pick.DataObject

alias of vtkmodules.vtkCommonDataModel.vtkDataObject

HardwareSelector

fury.pick.HardwareSelector

alias of vtkmodules.vtkRenderingCore.vtkHardwareSelector

PickingManager

class fury.pick.PickingManager(vertices=True, faces=True, actors=True, world_coords=True)[source]

Bases: object

Picking Manager helps with picking 3D objects.

__init__(vertices=True, faces=True, actors=True, world_coords=True)[source]

Initialize Picking Manager.

Parameters
  • vertices (bool) – If True allows to pick vertex indices.

  • faces (bool) – If True allows to pick face indices.

  • actors (bool) – If True allows to pick actor indices.

  • world_coords (bool) – If True allows to pick xyz position in world coordinates.

event_position(iren)[source]

Return event display position from interactor.

Parameters

iren (interactor) – 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_xy (tuple) – Display coordinates x, y.

  • sc (Scene) –

pickable_off(actors)[source]

Choose which actors cannot be picked.

Parameters

actors (actor or sequence of actors) –

pickable_on(actors)[source]

Choose which actors can be picked.

Parameters

actors (actor or sequence of actors) –

PointPicker

fury.pick.PointPicker

alias of vtkmodules.vtkRenderingCore.vtkPointPicker

PropPicker

fury.pick.PropPicker

alias of vtkmodules.vtkRenderingCore.vtkPropPicker

SelectionManager

class fury.pick.SelectionManager(select='faces')[source]

Bases: object

Selection Manager helps with picking many objects simultaneously.

__init__(select='faces')[source]

Initialize Selection Manager.

Parameters

select ('faces') – Options are ‘faces’, ‘vertices’ or ‘actors’. Default ‘faces’.

select()[source]
pick()[source]
event_position(iren)[source]

Return event display position from interactor.

Parameters

iren (interactor) – 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_xy (tuple) – Display coordinates x, y.

  • sc (Scene) –

select(disp_xy, sc, area=0)[source]

Select multiple objects using display coordinates.

Parameters
  • disp_xy (tuple) – Display coordinates x, y.

  • sc (Scene) –

  • area (int or 2d tuple of ints) – Selection area around x, y coords.

selectable_off(actors)[source]

Choose which actors cannot be selected.

Parameters

actors (actor or sequence of actors) –

selectable_on(actors)[source]

Choose which actors can be selected.

Parameters

actors (actor or sequence of actors) –

update_selection_type(select)[source]

Update selection type.

Parameters

select ('faces') – Options are ‘faces’, ‘vertices’ or ‘actors’. Default ‘faces’.

Sequence

class fury.pick.Sequence

Bases: collections.abc.Reversible, collections.abc.Collection

All the operations on a read-only sequence.

Concrete subclasses must override __new__ or __init__, __getitem__, and __len__.

__init__()
count(value) integer -- return number of occurrences of value
index(value[, start[, stop]]) integer -- return first index of value.

Raises ValueError if the value is not present.

Supporting start and stop arguments is optional, but recommended.

WorldPointPicker

fury.pick.WorldPointPicker

alias of vtkmodules.vtkRenderingCore.vtkWorldPointPicker