Page MenuHomePhabricator

Add vtkCellPointPicker to vtkPropRenderer
Closed, ResolvedPublic

Description

The vtkCellPointPicker is another option for picking of 3D surfaces. Since the currently implemented pickers (vtkWorldPointPicker, vtkPointPicker) do not work satisfactorily at least with Windows OS, the vtkCellPointPicker should be added to the vtkPropRenderer as another option for picking.
The user is than free to select the most suitable picker with something like:

mitk::VtkPropRenderer::Pointer renderer3d = dynamic_cast<mitk::VtkPropRenderer*>(
  mitk::BaseRenderer::GetInstance( mitk::BaseRenderer::GetRenderWindowByName("stdmulti.widget4")) );

renderer3d->SetPickingMode(mitk::VtkPropRenderer::CellPicking);

Event Timeline

We should write something about the pros and cons of each available picker in the documentation of SetPickingMode().

Are there even more pickers that VTK has to offer? Is it difficult to make them all available? How can I check what type of picker is active? GetPickingMode()?

Yes, No, Yes, in this order!
Their is another picker called vtkPropPicker, but I don't know if we really need this one.
The best docmentation on the picker is in the vtk book, so we could refer to this for detailed documentation.

I could imagine that I need the vtkPropPicker in near future for my simulation stuff. :)

(In reply to SvenMersmann from comment #3)

The best docmentation on the picker is in the vtk book, so we could refer to
this for detailed documentation.

Not everybody has the text book available, so a short summary would be helpful :-)

This bug has been discussed in he MITK meeting and will be solved as described above.

New remote branch pushed: bug-15741-EnhanceVtkPropRenderer

New remote branch pushed: bug-15741-NewPickingOption

[1f3cf6]: Merge branch 'bug-15741-NewPickingOption'

Merged commits:

2013-09-05 15:43:34 Sven Mersmann [bf4fdc]
Enhanced the picking option by CellPicking. The documentation gives some hints about usage of the different pickers.