[vtkusers] getting pointids from an imagedata

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Sat Jul 7 06:25:18 EDT 2001


Sorry, I misread your request. You'll need to get the window->World 
coordinate conversion from
vtkViewPort::DisplayToWorld
and then use findpoint...


At 15:29 06/07/2001, John Biddiscombe wrote:
>vtkDataSet::
>int FindPoint (float x, float y, float z)
>int FindPoint (float x[3])
>
>all subclasses (ImageData) implement it and given a 3space coordinate, you 
>can find the point ID of the one you want.
>
>JB
>
>
>At 14:16 05/07/2001, Matthias Zangl wrote:
>>Hello!
>>
>>I am displaying a volume (vtkImageData) - slice by slice on my screen. I
>>realized it by changing the outputorigin on slicing. Well, that works well
>>so far. Now I want to get the pointid from a point the user is selecting on
>>the screen. All I got are the coordinates in the renderwindow. I suppose
>>I've to take care that they 're calculated dependend on the resolution and
>>current zoomfactor of my image. Maybe someone have some hints for me.
>>
>>greatly appreciated,
>>
>>bye,
>>Matt
>>
>>
>>_______________________________________________
>>This is the private VTK discussion list.
>>Please keep messages on-topic. Check the FAQ at: 
>><http://public.kitware.com/cgi-bin/vtkfaq>
>>Follow this link to subscribe/unsubscribe:
>>http://public.kitware.com/mailman/listinfo/vtkusers
>
>
>_______________________________________________
>This is the private VTK discussion list. Please keep messages on-topic. 
>Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers





More information about the vtkusers mailing list