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