<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-06-15 14:47 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Wed, Jun 15, 2016 at 5:55 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><br></div></div>Forgive my ignorance, but is this behavior something that is essential to keep? Or was this added just as a convenience, so that instances of the class can be passed to VTK methods that expect an interactor?<br></div></div></div></div></div></blockquote><div><br></div></span><div>The name of the class is "QVTKRenderWindowInteractor" which is a contract with the user that the class can be used where a vtkRenderWindowInteractor can be used.  The author of QVTKRenderWindowInteractor must have wanted it to appear as if it was subclass of vtkRenderWindowInteractor, but didn't want to use multiple inheritance.</div></div></div></div></blockquote><div><br></div><div>Alright, that makes sense of course. I think the reason I'm asking these questions at all is I'm a little unsure how the class is meant to be used, and I hadn't seen any examples of where it is used as if it was a vtkRenderWindowInteractor.<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div>In short, I'd like to know if I can remove this whole thing, and if so, what the consequences would be.<br></div></div></div></div></div></blockquote><div><br></div></span><div>Removing it would break some people's apps.</div></div></div></div></blockquote><div><br></div><div>Yes, sorry I was unclear. I wasn't suggesting removing it in VTK proper, but in the class I'm making now (where I'm looking at QVTKRenderWindowInteractor for some inspiration on how to get the basic Qt <-> VTK rendering/input bridging working).<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>  <br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>My goal is to have something that feels more like a Qt API for this class.. But since I'm new to VTK, and still haven't quite figured out how the class is to be used in certain situations (see my post about using it with context views for instance), I'd appreciate some guidance.<br></div></div></div></blockquote><div><br></div></span><div>If you're changing the API to have a different feel, then you're writing a new class, so give your new class a new name.</div></div></div></div></blockquote><div><br></div><div>Yes, absolutely. At the moment I'm calling it simply VTKWidget in our code tree.<br><br></div><div>Elvis<br></div></div><br></div></div>