[vtkusers] how can I do picking on the vtkLineSource ?
michiel mentink
michael.mentink at st-hughs.ox.ac.uk
Mon Jan 18 12:21:51 EST 2010
how about looking at this example:
http://www.itk.org/Wiki/VTK/Examples/Picking_a_pixel
Michael
On Mon, Jan 18, 2010 at 5:03 PM, orobin <Olivier.Robin at bioclinica.com>wrote:
>
> Hello,
>
> I have a vtkRender, where I draw some images.
> above this image, I draw some lines (vtkLineSource), or sometime
> vtkPolydata
> (to do some cube, polylines)
>
> I need to get mouse event when the user click on the line, or the polydata,
> when the mous is over the line, when the user release the mouse on the line
> etc...
>
> I have tried to use the vtkPropPicker, and vtkCellPicker, but it doens't
> work properly for me, because it detect an actor.
> and then, it detect something like a big square where my line is in.
>
> I need to be precis, and just be called when the mouse pointer is on one of
> the several pixels which build the line.
>
> How can I do ? is there some object which can be used to pick lines,
> sphere,
> cone, vtkpolydata ???
>
> thnak you for any help, I don't find answer in the book of kitware.
>
> Best regards
> Olivier
> --
> View this message in context:
> http://old.nabble.com/how-can-I-do-picking-on-the-vtkLineSource---tp27213547p27213547.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100118/684de19d/attachment.htm>
More information about the vtkusers
mailing list