<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-06-17 14:58 GMT+02:00 David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Fri, Jun 17, 2016 at 6:23 AM, Elvis Stansvik <span dir="ltr"><<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><div><br></div></span><div>Alright, I see. Would you mind sharing how you handle custom interactions with a VTK rendering, if you don't use the interactor styles?<br><br>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?<br><br>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.<br></div></div></div></div></blockquote><div><br></div></span><div>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.</div></div></div></div></blockquote><div><br></div><div>That's very interesting, since I've got a feeling that's the direction I'm going as well. Thanks for sharing.<br><br>When you say "interaction bindings", do you mean like a pluggable event handler that you can set on your QWidget subclass, to handle your custom events?<br><br></div><div>The thing is, I've cut down VTKRenderWindowInteractor to the bare minimum I thought I'd need, and cleaned it up a little, but I'm realizing now that I might not even want to do the event forwarding thing it does, but rather something like the system you describe (where you completely forego the interactor system of VTK).<br><br></div><div>Elvis<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="HOEnZb"><font color="#888888"><div><br></div><div> - David</div></font></span></div></div></div>
</blockquote></div><br></div></div>