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

Jesús Spí­nola jspinola at gmail.com
Mon Dec 11 08:50:09 EST 2006


Hello,

I'm using vtkImageViewer2 to view medical datasets. I also use vtkActor2D to
put several annotations over the dataset.
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.

My purpose is to pick taking into account the image actor only. What's the
right way to achieve this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061211/56caa786/attachment.htm>


More information about the vtkusers mailing list