[vtkusers] Mixing vtkImageActors and geometry ( vtkActor2D ), picking x, y, z coordinate from image actor correctly

Dean Inglis dean.inglis at sympatico.ca
Tue Dec 12 08:04:34 EST 2006


Jesús

have you tried setting PickableOff and DragableOff on
all the actors that you do not want to pick?

regards,
Dean

I use a vtkPropPicker to extract the coordinates and voxel values from the
image actor. The problem i have is sometimes the picked z coordinate is
wrong because the mouse is near a vtkActor2D and it takes the z coordinate
from the 2d actor (beacause it will be always on top of the other actors)
instead of the z coordinate from the vtkimageactor that I really want. I've
tried to tell to the prop picker to only pick from the vtkImageActor with no
success. To extract the coordinates i use the GetPickPosition() method from
vtkPropPicker.




More information about the vtkusers mailing list