[vtkusers] QVTKInteractor?
Manuel Corrales
manuelcorrales at gmail.com
Tue Jun 4 10:26:18 EDT 2013
Hello.
I am trying to use this code:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/PickPixel
using a QVTKWidget. I am getting a segfault in this line:
*this->Picker->Pick( interactor->GetEventPosition()[0],
interactor->GetEventPosition()[1], 0.0, renderer );*
only change I did to the example code was this:
*
QVTKInteractor::SafeDownCast(this->Viewer->GetRenderWindow()->GetInteractor());
*
*
*
Not sure if this is the correct approach. Attached is my code in case you
want to take a look.
Thanks in advance!
Regards,
Manuel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130604/e960d138/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: app.zip
Type: application/zip
Size: 6600 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130604/e960d138/attachment.zip>
More information about the vtkusers
mailing list