[vtkusers] calculating a point coordinates

lydia many vtklydia at hotmail.com
Mon Nov 5 13:35:59 EST 2001


Hi,
I am not using TCl but MFC. Is there a way to interact with the viwer, pick 
a point of the image (2D)using a mouse. I'm really annoyed by this problem.
Thanks to reply

>From: Glen Lehmann <glehmann at irus.rri.ca>
>To: lydia many <vtklydia at hotmail.com>
>Subject: Re: [vtkusers] calculating a point coordinates
>Date: Sun, 04 Nov 2001 11:05:59 -0500
>
>try; value=imagedata->GetScalarComponentAsFloat(x,y,0,0)
>
>lydia many wrote:
>
>>Hello everybody
>>I have the following problem
>>I want to view an image (vtkimagedata), to click on a location of this
>>image (x,y).
>>I used vtkinteractorstyleuser to get the coordinates of the point on
>>the window of the viewer
>>How can I get the corresponding values in the imagedata.??
>>Thanks to reply
>>
>>
>>_________________________________________________________________
>>Téléchargez MSN Explorer gratuitement à l'adresse
>>http://explorer.msn.fr/intl.asp
>>
>>_______________________________________________
>>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
>>
>
>


_________________________________________________________________
Téléchargez MSN Explorer gratuitement à l'adresse 
http://explorer.msn.fr/intl.asp




More information about the vtkusers mailing list