[vtkusers] About MouseEvents.py example

David Gobbi david.gobbi at gmail.com
Fri Jun 17 08:58:47 EDT 2016

On Fri, Jun 17, 2016 at 6:23 AM, Elvis Stansvik <
elvis.stansvik at orexplore.com> wrote:

> Alright, I see. Would you mind sharing how you handle custom interactions
> with a VTK rendering, if you don't use the interactor styles?
> Do you directly observe events on the interactor instead? Or do you simply
> handle the Qt events directly and then perform the appropriate manipulation
> of VTK objects in response to those?
> I'm very interested in if you use some event forwarding code similar to
> that in QVTKRenderWindowInteractor, or if you are simply not bothering with
> feeding input events from Qt to VTK, and handling all input on the Qt side
> of the fence so to speak.

I have a subclass of QWidget that receives the Qt events and converts them
to my own events (which are similar to Qt events but also carry useful VTK
information).  Those events are dispatched to my interaction bindings.
I've always done interaction in VTK this way.  Neither the
vtkRenderWindowInteractor or QVTKWidget play any role.

 - David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160617/ea7c0793/attachment.html>

More information about the vtkusers mailing list