Also....<br>
<br>
I just added VTK/Rendering/Testing/Cxx/TestInteractorTimers.cxx as a
test of multiple simultaneously running timers. Please get it from CVS
if you can and try it out.<br>
<br>
Let me know if you encounter any problems with it.<br>
<br>
HTH,<br>
David<br>
<br><br><div><span class="gmail_quote">On 11/9/06, <b class="gmail_sendername">Goodwin Lawlor</b> &lt;<a href="mailto:goodwin.lawlor@ucd.ie">goodwin.lawlor@ucd.ie</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dominik Szczerba wrote:<br>&gt; According to the docu, the vtkHoverWidget is used to invoke an event when<br>&gt; hovering in a render window. Do you propose to use a zero threshold to<br>&gt; simulate an idle function? That sounds like an overkill for what I need. Iren
<br>&gt; allows for timers, is there really no way to regularly trigger arbitrary<br>&gt; commands just like iren-&gt;AddObserver(vtkCommand::MouseMoveEvent, myCommand)<br>&gt; does on a mouse movement?<br><br>Hi Dominik,
<br><br>I meant vtkHoverWidget is the only that uses a repeating timer at the<br>moment. Here a (slightly buggy) but quick tcl example to illustrate:<br><br>package require vtk<br>wm withdraw .<br><br>set val 10<br><br>vtkTextActor txt
<br>&nbsp;&nbsp; txt SetInput $val<br>&nbsp;&nbsp; txt SetMinimumSize 100 100<br>&nbsp;&nbsp; txt ScaledTextOn<br><br>vtkRenderer ren<br>&nbsp;&nbsp; ren AddActor txt<br><br>vtkRenderWindow renwin<br>&nbsp;&nbsp; renwin AddRenderer ren<br><br>vtkRenderWindowInteractor iren
<br>&nbsp;&nbsp; iren SetRenderWindow renwin<br>&nbsp;&nbsp; iren Initialize<br><br>&nbsp;&nbsp; iren CreateRepeatingTimer 1000<br>&nbsp;&nbsp; iren AddObserver TimerEvent {if {$val == 0} exit}<br>&nbsp;&nbsp; iren AddObserver TimerEvent {txt SetInput [incr val -1]; txt<br>
Modified; renwin Render}<br><br>hth<br><br>Goodwin<br><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br>