[vtkusers] Help with vtkActor2D picking
dejan.zivkovic90 at gmail.com
Mon Jun 6 09:44:09 EDT 2016
I have some problems with picking vtkActor2D. Part of the code that
constructs actor2D is here:
vtkSmartPointer<vtkPNGReader> pngReader =
vtkSmartPointer<vtkImageMapper> imageMapper =
imageActor = vtkSmartPointer<vtkActor2D>::New();
I use vtkActor2D::SetPosition(...) to set the actor position on the sceen
and the image
really moves where I position it.
The problem is in picking (using vtkPropPicker). The actors image on
the screen doesn't react on picking, but when I click near the bottom left
of the screen (screen coordinates near zero), the propPicker detects that
So, the actor2D seems to be in screen origin, regardless of which position
using vtkActor2D::SetPosition(), but its image is moved as it should.
Do you have any idea why?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers