Expose CellLocators in widgets
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
It would be nice if the cell locator(s) were accessible from the widgets (e.g. vtkPlaneWidget, vtkBoxWidget, vtkSplineWidget , etc.).
This would allow to observe 'PickEvents' in codes using these widgets. I would like to attach a custom callback to these events, but cannot obtain a reference to the locator, which invokes them.
A simple API change would include the functions:
// Description:
// Get picker used for handles, e.g. if you want to observe events from
// this picker
vtkGetObjectMacro(HandlePicker,vtkCellPicker);
// Description:
// Get picker used for handles (See GetHandlePicker() ).
vtkGetObjectMacro(ControlPicker,vtkCellPicker);