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> <<a href="mailto:goodwin.lawlor@ucd.ie">goodwin.lawlor@ucd.ie</a>> 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>> According to the docu, the vtkHoverWidget is used to invoke an event when<br>> hovering in a render window. Do you propose to use a zero threshold to<br>> simulate an idle function? That sounds like an overkill for what I need. Iren
<br>> allows for timers, is there really no way to regularly trigger arbitrary<br>> commands just like iren->AddObserver(vtkCommand::MouseMoveEvent, myCommand)<br>> 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> txt SetInput $val<br> txt SetMinimumSize 100 100<br> txt ScaledTextOn<br><br>vtkRenderer ren<br> ren AddActor txt<br><br>vtkRenderWindow renwin<br> renwin AddRenderer ren<br><br>vtkRenderWindowInteractor iren
<br> iren SetRenderWindow renwin<br> iren Initialize<br><br> iren CreateRepeatingTimer 1000<br> iren AddObserver TimerEvent {if {$val == 0} exit}<br> 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>