[vtkusers] help with point picking in 2d actors

Anja Ende anja.ende at googlemail.com
Tue Sep 5 10:37:13 EDT 2006


Hi everyone,

I had asked this a couple of days back and had been trying all kinds of
things on my side, albeit unsuccessfully.

I have a 3d volume which passes through a reslicer and that gives me a 2d
slice. Now, there are additional transforms that manipulate the slice
(zooming, rotation etc).

So, ultimately I have a vtkImageViewer like object that displays this slice.
Now, I want to be able to get the image coordinates from the screen
coordinates. I have been trying for days but no luck. I do not think there
is a picker in vtk that will allow me to do that.

Does anyone has any idea on how this can be achieved? I really need to get
this working. Right now, I compensate for the zoom by just dividing by the
zoom factor. However, as the number of transformations grow, this will get
quite complicated for me to manage. It would be nice to see if VTK can do
something.

Most pickers give me the global coordinates as pick points. Is there any way
to get the image coordinates from them?

Thanks,

Anja
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060905/a5bb11c1/attachment.htm>


More information about the vtkusers mailing list