<div dir="ltr">Joachim,<div>I have also sent my question to the vtkusers mailing list after you have suggested it. Unfortunately more than half of the questions sent to vtkusers are never answered, although my impression is that they are formulated better than most questions on the paraview list in general.</div><div><br></div><div>So, I'll appreciate if somebody has an idea how to continue receiving TimerEvents from a vtkRenderWindowInteractor while a mouse button is pressed.<br></div><div>By the way, I observed this problem with the Paraview version of VTK (Paraview 5.4.1). </div><div>Kolja</div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br> <table style="border-top:1px solid #d3d4de">
        <tr>
      <td style="width:55px;padding-top:18px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width:470px;padding-top:17px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virenfrei. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.com</a>            </td>
        </tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 13, 2017 at 5:02 AM, Joachim Pouderoux <span dir="ltr"><<a href="mailto:joachim.pouderoux@kitware.com" target="_blank">joachim.pouderoux@kitware.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><div>Kolja,<br><br></div>As it is a VTK Python related question, please address this issue to the VTK mailing list instead.<br><br></div>Best,<br></div><div class="gmail_extra"><br clear="all"><div><div class="m_326148389413887150gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><b>Joachim Pouderoux</b><font size="2">, <font size="1">PhD</font></font><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><i>Technical Expert - Scientific Computing Team</i></font><br><b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br></blockquote>
</div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote"><div><div class="h5">2017-11-12 17:15 GMT+01:00 Kolja Petersen <span dir="ltr"><<a href="mailto:petersenkolja@gmail.com" target="_blank">petersenkolja@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Heya,<br>I paste some code below, which displays an empty vtkRenderWindow with an interactor. The interactor fires a TimerEvent every 100ms as printed by the Observer.<br>The problem: when I press a mouse button in the vtkRenderWindow, the TimerEvents stop to be reported, although I need to process data periodically in my application as a reaction to those TimerEvents.<br><br>Why are no TimerEvents fired when a button is pressed, and how can I change this behaviour?<br>Thank you<br>Kolja<br><br>import vtk<br><br>class Observer(object):<br>  def __init__(self):<br>    self.cnt=0<br>  def __call__(self,caller,evt):<br>    self.cnt+=1<br>    print "count %d %s" % (self.cnt,evt)<br><br>ren1 = vtk.vtkRenderer()<br>ren1.SetBackground(0.1, 0.2, 0.4)<br><br>renWin = vtk.vtkRenderWindow()<br>renWin.AddRenderer(ren1)<br>renWin.SetSize(300, 300)<br><br>iren = vtk.vtkRenderWindowInteractor(<wbr>)<br>iren.SetRenderWindow(renWin)<br><br>style = vtk.vtkInteractorStyleTrackbal<wbr>lCamera()<br>iren.SetInteractorStyle(style)<br><br>iren.Initialize()<br>observer=Observer()<br>iren.AddObserver(vtk.vtkComman<wbr>d.TimerEvent,observer)<br>iren.AddObserver(vtk.vtkComman<wbr>d.MouseMoveEvent,observer)<br>iren.AddObserver(vtk.vtkComman<wbr>d.InteractionEvent,observer)<br>iren.CreateRepeatingTimer(100)<br>iren.Start()<br><br><br><br></div>
<br></div></div>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>