<div dir="ltr">Nope. Same problem. Do you still get that with CVS HEAD of VTK, or are you snapped to the VTK-5-2 branch...?<div><br><br><div class="gmail_quote">On Mon, Aug 18, 2008 at 12:21 PM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Maybe my problem is different. When I try to interact with a tcl test<br>
like polyConn.tcl, I get:<br>
<br>
ERROR: In /home/lorensen/Projects/VTK/Rendering/vtkInteractorStyle.cxx, line 392<br>
vtkInteractorStyleJoystickCamera (0xa0129e8): Timer start failed<br>
<br>
This is a fedora core 9 system, gcc 4.3.<br>
<font color="#888888"><br>
Bill<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
On Mon, Aug 18, 2008 at 10:39 AM, David Cole &lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt; wrote:<br>
&gt; There is interaction available if you call &quot;iren Start&quot; at the bottom of<br>
&gt; your tcl script to push an X event loop sponsored by the<br>
&gt; vtkRenderWindowInteractor.<br>
&gt; The remaining problem is that on other platforms (Windows with ActiveState<br>
&gt; Tcl, for example) the vtk.exe Tcl/Tk event loop is running and enabling<br>
&gt; interaction without any &quot;iren Start&quot; at the bottom of the tcl script. So<br>
&gt; ideally, it would be nice to get that behavior for free in X<br>
&gt; implementations, too... seems to be what VTK devs expect.<br>
&gt; So, I may have to put back some of the tcl-specific X code that used to be<br>
&gt; there before my commit last Thursday. I spent Friday in a fruitless attempt<br>
&gt; at getting the interaction to work with just X stuff from our tcl/tk app.<br>
&gt; Maybe somebody out there can give me a hint about whether this is really<br>
&gt; possible or not...? Maybe I&#39;m just wasting my time trying to minimize the<br>
&gt; code required.... going back to using Tk_DoOneEvent and tcl timers may be<br>
&gt; the right way to go after all.<br>
&gt; At least there is now one common implementation for handling the actual X<br>
&gt; events, though. At least that part of my cleanup effort will survive. I will<br>
&gt; reply again with final results when I have them.<br>
&gt; Thanks for your patience, and feel free to send along any helpful hints.<br>
&gt;<br>
&gt;<br>
&gt; David Cole<br>
&gt;<br>
&gt; On Mon, Aug 18, 2008 at 1:56 AM, Andrew Maclean &lt;<a href="mailto:andrew.amaclean@gmail.com">andrew.amaclean@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi Bill, I think David is looking further into it.<br>
&gt;&gt; I think it still needs some more work. I tried it in the weekend and<br>
&gt;&gt; there was no interaction at all (mouse and keyboard).<br>
&gt;&gt; Regards<br>
&gt;&gt; &nbsp; Andrew<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Aug 18, 2008 at 3:12 AM, Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; David,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Is this ready for the VTK-5-2 branch?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Bill<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 2008/8/14 David Cole &lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt;:<br>
&gt;&gt; &gt;&gt; Fixed in CVS HEAD by making vtkXRenderWindowTclInteractor a trivial<br>
&gt;&gt; &gt;&gt; subclass<br>
&gt;&gt; &gt;&gt; of vtkXRenderWindowInteractor:<br>
&gt;&gt; &gt;&gt; &nbsp; &nbsp; /cvsroot/VTK/VTK/Graphics/Testing/Tcl/TestFillHolesFilter.tcl,v &lt;--<br>
&gt;&gt; &gt;&gt; Graphics/Testing/Tcl/TestFillHolesFilter.tcl<br>
&gt;&gt; &gt;&gt; &nbsp; &nbsp; new revision: 1.3; previous revision: 1.2<br>
&gt;&gt; &gt;&gt; &nbsp; &nbsp; /cvsroot/VTK/VTK/Rendering/vtkXRenderWindowInteractor.cxx,v &lt;--<br>
&gt;&gt; &gt;&gt; Rendering/vtkXRenderWindowInteractor.cxx<br>
&gt;&gt; &gt;&gt; &nbsp; &nbsp; new revision: 1.136; previous revision: 1.135<br>
&gt;&gt; &gt;&gt; &nbsp; &nbsp; /cvsroot/VTK/VTK/Rendering/vtkXRenderWindowInteractor.h,v &lt;--<br>
&gt;&gt; &gt;&gt; Rendering/vtkXRenderWindowInteractor.h<br>
&gt;&gt; &gt;&gt; &nbsp; &nbsp; new revision: 1.75; previous revision: 1.74<br>
&gt;&gt; &gt;&gt; &nbsp; &nbsp; /cvsroot/VTK/VTK/Rendering/vtkXRenderWindowTclInteractor.cxx,v &lt;--<br>
&gt;&gt; &gt;&gt; Rendering/vtkXRenderWindowTclInteractor.cxx<br>
&gt;&gt; &gt;&gt; &nbsp; &nbsp; new revision: 1.54; previous revision: 1.53<br>
&gt;&gt; &gt;&gt; &nbsp; &nbsp; /cvsroot/VTK/VTK/Rendering/vtkXRenderWindowTclInteractor.h,v &lt;--<br>
&gt;&gt; &gt;&gt; Rendering/vtkXRenderWindowTclInteractor.h<br>
&gt;&gt; &gt;&gt; &nbsp; &nbsp; new revision: 1.26; previous revision: 1.25<br>
&gt;&gt; &gt;&gt; I will merge this to the VTK-5-2 branch after a clean night on the<br>
&gt;&gt; &gt;&gt; dashboards and then mark this issue as resolved...<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Thanks,<br>
&gt;&gt; &gt;&gt; David Cole<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Tue, Aug 12, 2008 at 4:19 PM, David Cole &lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt;<br>
&gt;&gt; &gt;&gt; wrote:<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; I will try to get this one fixed tomorrow.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Would anybody object to re-factoring the vtkXRenderWindowTclInteractor<br>
&gt;&gt; &gt;&gt;&gt; class (re-parent it from vtkXRenderWindowInteractor) such that it<br>
&gt;&gt; &gt;&gt;&gt; inherits<br>
&gt;&gt; &gt;&gt;&gt; its common functionality and then has just overrides that are specific<br>
&gt;&gt; &gt;&gt;&gt; to<br>
&gt;&gt; &gt;&gt;&gt; Tcl/Tk...?<br>
&gt;&gt; &gt;&gt;&gt; I don&#39;t think it should break backwards compatibility for most people,<br>
&gt;&gt; &gt;&gt;&gt; although I could certainly imagine a class derived from it that may<br>
&gt;&gt; &gt;&gt;&gt; squawk<br>
&gt;&gt; &gt;&gt;&gt; for one reason or another by having its parent chain changed...<br>
&gt;&gt; &gt;&gt;&gt; I think the intent of both classes was to have the same code except<br>
&gt;&gt; &gt;&gt;&gt; for<br>
&gt;&gt; &gt;&gt;&gt; the differences due to making tcl calls from the TclInteractor method<br>
&gt;&gt; &gt;&gt;&gt; implementations. However, over time, they have diverged and had<br>
&gt;&gt; &gt;&gt;&gt; different<br>
&gt;&gt; &gt;&gt;&gt; bug fixes applied to one that should have been applied to both.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Is the fix for this bug simply to re-inherit<br>
&gt;&gt; &gt;&gt;&gt; vtkXRenderWindowTclInteractor<br>
&gt;&gt; &gt;&gt;&gt; or would that upset any of you....??<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Thanks for any feedback,<br>
&gt;&gt; &gt;&gt;&gt; David Cole<br>
&gt;&gt; &gt;&gt;&gt; Kitware, Inc.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; On Sat, Aug 9, 2008 at 12:59 PM, Peter Wainwright<br>
&gt;&gt; &gt;&gt;&gt; &lt;<a href="mailto:prw@ceiriog.eclipse.co.uk">prw@ceiriog.eclipse.co.uk</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; On all recent CVS versions of VTK, I have been unable to run this<br>
&gt;&gt; &gt;&gt;&gt;&gt; example<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; &nbsp;<a href="http://www.ceiriog.eclipse.co.uk/vtktut6.tcl" target="_blank">http://www.ceiriog.eclipse.co.uk/vtktut6.tcl</a><br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; Its just a simple use of vtkRenderWindowInteractor. &nbsp;But when I click<br>
&gt;&gt; &gt;&gt;&gt;&gt; in<br>
&gt;&gt; &gt;&gt;&gt;&gt; the window I am unable to rotate the model and I get the error<br>
&gt;&gt; &gt;&gt;&gt;&gt; message:<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; ERROR: In<br>
&gt;&gt; &gt;&gt;&gt;&gt; /home/prw/src/VTK-20080806/Rendering/vtkInteractorStyle.cxx,<br>
&gt;&gt; &gt;&gt;&gt;&gt; line 392<br>
&gt;&gt; &gt;&gt;&gt;&gt; vtkInteractorStyleJoystickCamera (0x9543c0): Timer start failed<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; This seems to relate to the bug<br>
&gt;&gt; &gt;&gt;&gt;&gt; <a href="http://www.vtk.org/Bug/view.php?id=3164" target="_blank">http://www.vtk.org/Bug/view.php?id=3164</a>,<br>
&gt;&gt; &gt;&gt;&gt;&gt; which apparently has not been touched for almost 2 years. &nbsp;It seems<br>
&gt;&gt; &gt;&gt;&gt;&gt; to<br>
&gt;&gt; &gt;&gt;&gt;&gt; affect the X11 implementation only. &nbsp;Is anyone working on this?<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; Peter Wainwright<br>
&gt;&gt; &gt;&gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt;&gt;&gt; vtk-developers mailing list<br>
&gt;&gt; &gt;&gt;&gt;&gt; <a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br>
&gt;&gt; &gt;&gt;&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; vtk-developers mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br>
&gt;&gt; &gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; vtk-developers mailing list<br>
&gt;&gt; &gt; <a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br>
&gt;&gt; &gt; <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; ___________________________________________<br>
&gt;&gt; Andrew J. P. Maclean<br>
&gt;&gt; Centre for Autonomous Systems<br>
&gt;&gt; The Rose Street Building J04<br>
&gt;&gt; The University of Sydney 2006 NSW<br>
&gt;&gt; AUSTRALIA<br>
&gt;&gt; Ph: +61 2 9351 3283<br>
&gt;&gt; Fax: +61 2 9351 7474<br>
&gt;&gt; URL: <a href="http://www.acfr.usyd.edu.au/" target="_blank">http://www.acfr.usyd.edu.au/</a><br>
&gt;&gt; ___________________________________________<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div></div>