Hi All,<br><br>How can I get the pixel value and the coords of an image being displayed in 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 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 = vtkRenderWindowInteractor::SafeDownCast(obj);<br><br> vtkPointPicker* pointPicker = vtkPointPicker::SafeDownCast(iren->GetPicker());<br>
pointPicker->PrintSelf(cerr,vtkIndent()); // seg. fault here!!<br>}<br><br>thanks,<br>Luis<br><br>