<br>how about looking at this example:<br><br><a href="http://www.itk.org/Wiki/VTK/Examples/Picking_a_pixel">http://www.itk.org/Wiki/VTK/Examples/Picking_a_pixel</a><br><br>Michael<br><br><div class="gmail_quote">On Mon, Jan 18, 2010 at 5:03 PM, orobin <span dir="ltr">&lt;<a href="mailto:Olivier.Robin@bioclinica.com">Olivier.Robin@bioclinica.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hello,<br>
<br>
I have a vtkRender, where I draw some images.<br>
above this image, I draw some lines (vtkLineSource), or sometime vtkPolydata<br>
(to do some cube, polylines)<br>
<br>
I need to get mouse event when the user click on the line, or the polydata,<br>
when the mous is over the line, when the user release the mouse on the line<br>
etc...<br>
<br>
I have tried to use the vtkPropPicker, and vtkCellPicker, but it doens&#39;t<br>
work properly for me, because it detect an actor.<br>
and then, it detect something like a big square where my line is in.<br>
<br>
I need to be precis, and just be called when the mouse pointer is on one of<br>
the several pixels which build the line.<br>
<br>
How can I do ? is there some object which can be used to pick lines, sphere,<br>
cone, vtkpolydata ???<br>
<br>
thnak you for any help, I don&#39;t find answer in the book of kitware.<br>
<br>
Best regards<br>
Olivier<br>
--<br>
View this message in context: <a href="http://old.nabble.com/how-can-I-do-picking-on-the-vtkLineSource---tp27213547p27213547.html" target="_blank">http://old.nabble.com/how-can-I-do-picking-on-the-vtkLineSource---tp27213547p27213547.html</a><br>


Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>