[vtkusers] getting pointids from an imagedata

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Fri Jul 6 10:29:51 EDT 2001


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





More information about the vtkusers mailing list