[vtkusers] Getting the pixel value and coords of a 2D image
Luis Roberto P. Paula
luisrpp at gmail.com
Mon Nov 10 12:00:31 EST 2008
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.
I'm trying to use the vtkPointPicker, as presented below, but I'm getting a
segmentation fault and I don't know why.
connections = vtkEventQtSlotConnect::New();
void MyClass::updateCoords(vtkObject* obj)
vtkRenderWindowInteractor* iren =
vtkPointPicker* pointPicker =
pointPicker->PrintSelf(cerr,vtkIndent()); // seg. fault here!!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers