Luis, not sure if it&#39;ll be helpful but I did something similar here:<br><br><a href="http://devsample.org/index.php?option=com_content&amp;task=view&amp;id=48&amp;Itemid=27">http://devsample.org/index.php?option=com_content&amp;task=view&amp;id=48&amp;Itemid=27</a><br>
<br>Mark<br><br><div class="gmail_quote">On Mon, Nov 10, 2008 at 12:05 PM,  <span dir="ltr">&lt;<a href="mailto:clinton@elemtech.com">clinton@elemtech.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;">
<div><div></div><div class="Wj3C7c">On Monday 10 November 2008 10:00:31 am Luis Roberto P. Paula wrote:<br>
&gt; Hi All,<br>
&gt;<br>
&gt; How can I get the pixel value and the coords of an image being displayed in<br>
&gt; a QVTKWidget using the mouse move event? It is a 2D image.<br>
&gt;<br>
&gt; I&#39;m trying to use the vtkPointPicker, as presented below, but I&#39;m getting a<br>
&gt; segmentation fault and I don&#39;t know why.<br>
&gt;<br>
&gt; &nbsp; &nbsp;...<br>
&gt; &nbsp; &nbsp;connections = vtkEventQtSlotConnect::New();<br>
&gt; &nbsp; &nbsp;connections-&gt;Connect(vtkWidget-&gt;GetRenderWindow()-&gt;GetInteractor(),<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vtkCommand::MouseMoveEvent,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SLOT(updateCoords(vtkObject*)));<br>
&gt; }<br>
&gt;<br>
&gt; void MyClass::updateCoords(vtkObject* obj)<br>
&gt; {<br>
&gt; &nbsp; &nbsp;vtkRenderWindowInteractor* iren =<br>
&gt; vtkRenderWindowInteractor::SafeDownCast(obj);<br>
&gt;<br>
&gt; &nbsp; &nbsp;vtkPointPicker* pointPicker =<br>
&gt; vtkPointPicker::SafeDownCast(iren-&gt;GetPicker());<br>
&gt; &nbsp; &nbsp;pointPicker-&gt;PrintSelf(cerr,vtkIndent()); // seg. fault here!!<br>
&gt; }<br>
&gt;<br>
<br>
</div></div>Are you sure its a vtkPointPicker? &nbsp;VTK creats a vtkPropPicker by default.<br>
Did you set up your own vtkPointPicker?<br>
<br>
Clint<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><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>