[vtkusers] QVTKInteractor?

David Doria daviddoria at gmail.com
Tue Jun 4 12:21:46 EDT 2013


On Tue, Jun 4, 2013 at 10:26 AM, Manuel Corrales
<manuelcorrales at gmail.com> wrote:
> 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.


GetRenderWindow()->GetInteractor() should return a
vtkRenderWindowInteractor, not a QVTKInteractor, right?

David



More information about the vtkusers mailing list