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