Skip to content

AbstractPicker ​

Introduction ​

vtkAbstractPicker is an abstract superclass that defines a minimal API for its concrete subclasses. The minimum functionality of a picker is to return the x-y-z global coordinate position of a pick (the pick itself is defined in display coordinates).

The API to this class is to invoke the Pick() method with a selection point (in display coordinates - pixels) and a renderer. Then get the resulting pick position in global coordinates with the GetPickPosition() method.

See Also ​

vtkPointPicker

Methods ​

addPickList ​

ArgumentTypeRequiredDescription
propvtkProp3DYes

deletePickList ​

ArgumentTypeRequiredDescription
propvtkProp3DYes

extend ​

Method used to decorate a given object (publicAPI+model) with vtkAbstractPicker characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIAbstractPickerInitialValuesNo(default: {})

getPickFromList ​

getPickList ​

getPickPosition ​

Get the picked position

getPickPositionByReference ​

Get the picked position

getRenderer ​

getSelectionPoint ​

getSelectionPointByReference ​

initialize ​

initializePickList ​

Set pickList to empty array.

setPickFromList ​

ArgumentTypeRequiredDescription
pickFromListBooleanYes

setPickList ​

ArgumentTypeRequiredDescription
pickListArray[vtkProp3D]Yes