<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Many thanks Jason for response!<br></div><div><br></div><div>I did manage to fix the problem <br></div><div>by adding <br></div><div>interactorStyle()->OnLeave();<br>interactorStyle()->OnLeftButtonUp();<br>interactorStyle()->OnMiddleButtonUp();<br>interactorStyle()->OnRightButtonUp();<br>interactorStyle()->OnFourthButtonUp();<br>interactorStyle()->OnFifthButtonUp();</div><div>to specific widget subclass <br></div><div><br></div><div>But this seems a wrong place for this fix.</div><div>QVTKOpenGLWidget should invoke such behavior (as I believe QVTKWidget was doing).<br></div><div><br></div><div>Another problem is that I am not sure what function to call.</div><div>First impression is to call OnLeave(), but it does not have any effect on the <span style="font-size:11pt;font-family:"Calibri",sans-serif">vtkInteractorStyleTrackballCam.</span></div><div>I definitely can subclass every interactor style and override OnLeave() to do a proper job, but this seems was working with QVTKWidget somehow, so I would rather not subclass every vtkInteractorStyle to fix the behavior which supposed to work already.</div><div><br></div><div>So I do have a workaround which requires a significant changes in application, counting the number of places QVTKOpenGLWidget and vtkInteractorStyle subclasses are used.<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 19, 2018 at 12:29 PM Kimmel, Jason <<a href="mailto:jason.kimmel@albint.com">jason.kimmel@albint.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div class="m_2997628029270247442WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Alex,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I see your original message from Monday, so it seems it was posted successfully.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Regarding your question, I’m assuming each of the interactorstyles is in a different Qt widget? If so, you could use Qt leave events to reset the state of the
interactor whenever the mouse leaves the rendering area. I’m not sure offhand if there’s a single method to reset the internal state of the interactorsyle, you may have to query GetState and then end whatever the interaction is.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hope that helps,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Jason<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1f497d">Jason Kimmel<u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1f497d">Sr Software Developer – Research & Technology<u></u><u></u></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#0066ff">Albany Engineered Composites, Inc.<u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1f497d">112 Airport Drive<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1f497d">Rochester, NH 03867<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#1f497d">Phone: +1.603.330.5959<u></u><u></u></span></p>
<p class="MsoNormal"><u><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#0066ff"><a href="http://www.albint.com/aec" target="_blank">www.albint.com/aec</a><u></u><u></u></span></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> vtkusers [mailto:<a href="mailto:vtkusers-bounces@public.kitware.com" target="_blank">vtkusers-bounces@public.kitware.com</a>]
<b>On Behalf Of </b>Oleksandr Malyushytsky<br>
<b>Sent:</b> Thursday, October 18, 2018 4:47 PM<br>
<b>To:</b> <a href="mailto:vtkusers@public.kitware.com" target="_blank">vtkusers@public.kitware.com</a><br>
<b>Subject:</b> Re: [vtkusers] vtkInteractorStyleTrackballCamera problem with multiple views<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border:solid slategray 1.0pt;padding:2.0pt 2.0pt 2.0pt 2.0pt">
<p class="MsoNormal" style="line-height:12.0pt;background:#ffeb9c"><b><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:red">CAUTION:</span></b><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:black"> This email originated
from outside Albany International Corp. Do not click links or open attachments unless you recognize the sender and know the content is safe.<u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">For some reason I can't see my question in mail, so I am not sure was it posted, but was not replied or never ended up in the mailing list.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">1. Could anybody confirm that it was posted on mailing list?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">2. Can anybody give a hint how to notify interactor style (reset mode) when even propagated to other widget?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> Alex<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Mon, Oct 15, 2018 at 3:48 PM Oleksandr Malyushytsky <<a href="mailto:omalyushytskyvtkuser@gmail.com" target="_blank">omalyushytskyvtkuser@gmail.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<p class="MsoNormal">1. Push the left mouse button.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">2. Drag the mouse out of the view, do not release it<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">3. Click and release right mouse button (or middle button, any button which was not grabbed). Release left mouse button.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">4 In this state you can move mouse back to view. View will behave like left mouse button is clicked.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Problem is that only left button was grabbing a mouse. Releasing right mouse button will prevent interactorStyle from receiving OnLeftButtonUp(),<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">so when you move mouse into the view not even it will still remain in previously set interaction state, but the appropriate mouse button will not be grabbed.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">This seems like a bug and I would appreciate if anybody could at least point on work around.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">It does not appear on my version of paraview, but I am not sure what fixed the behaviour.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">(I use vtk 8.1.1 with Qt 5.9)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards, <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> Alex<u></u><u></u></p>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote></div>