<div dir="ltr">Hi all,<div><br></div><div>   I think this issue is still not fixed in the vtk 7.0. Can anyone apply this patch?</div><div><br></div><div>Thanks,</div><div>Mengda</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 16, 2013 at 4:11 PM, Mengda Wu <span dir="ltr"><<a href="mailto:wumengda@gmail.com" target="_blank">wumengda@gmail.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><div>Hi Bill,<br><br></div>   Here is the patch to QVTKInteractorAdapter.cxx (from VTK5.10.1). I found we can just properly add SetAltKey() without modifying the interface of SetEventInformation(). I tested on my machine. It worked well.<br>
<br></div>Thanks,<br></div>Mengda<br><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 6, 2013 at 5:49 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you try this and provide a patch?<br>
<div><div><br>
<br>
On Fri, Sep 6, 2013 at 5:45 PM, Mengda Wu <<a href="mailto:wumengda@gmail.com" target="_blank">wumengda@gmail.com</a>> wrote:<br>
> Thanks for your reply!<br>
> I think the window manager (e.g. menu bar can intercept "Alt" key) may be<br>
> just one of the reasons.<br>
><br>
> Another reason is found to be in vtkRenderWindowInteractor.cxx/.h. If you<br>
> search for "AltKey" in the files, you will notice that the variable has not<br>
> been changed anywhere. If you search for "ControlKey", you can see the<br>
> difference.<br>
><br>
> My suggestion would be to add another variable "alt" in<br>
> SetEventInformation(). And make "AltKey" really reflects if "alt" key is<br>
> received by the vtkRenderWindowInteractor. Of course, this will also require<br>
> changes in other locations where this function is called (e.g. in<br>
> QVTKInteractorAdapter.cxx).<br>
><br>
> Thanks,<br>
> Mengda<br>
><br>
><br>
><br>
><br>
> On Mon, Sep 2, 2013 at 4:08 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Your window manager is intercepting the alt click. If you really need<br>
>> it, then google for a solution on your specific platform.<br>
>><br>
>><br>
>> On Mon, Sep 2, 2013 at 3:39 PM, Mengda Wu <<a href="mailto:wumengda@gmail.com" target="_blank">wumengda@gmail.com</a>> wrote:<br>
>> > Hi all,<br>
>> ><br>
>> >    I have similar problem with Alt key on Windows 7 64 bit machine. Does<br>
>> > anyone know why is that? My guess is the alt key event is not even<br>
>> > propagated to VTK event handling. The following VTK example page also<br>
>> > mentioned this issue.<br>
>> ><br>
>> > <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/ShiftAndControl" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Interaction/ShiftAndControl</a><br>
>> ><br>
>> > Thanks,<br>
>> > Mengda<br>
>> ><br>
>> ><br>
>> > On Mon, Feb 20, 2012 at 11:57 AM, Jesús Spí­nola <<a href="mailto:jspinola@gmail.com" target="_blank">jspinola@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> Hi,<br>
>> >><br>
>> >> I want to know when the "Alt" key is pressed so I use<br>
>> >> vtkRenderWindowInteractor::GetAltKey(), but it seems it only returns<br>
>> >> true<br>
>> >> when "AltGr" is pressed. When I press "Alt" key, I always get false.<br>
>> >> I tested under W7 x64.<br>
>> >><br>
>> >> Is that a bug or should I use another method?<br>
>> >><br>
>> >> Thanks in advance!<br>
>> >><br>
>> >> --<br>
>> >> Jesús Spínola<br>
>> >><br>
>> >> _______________________________________________<br>
>> >> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> >><br>
>> >> Visit other Kitware open-source projects at<br>
>> >> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> >><br>
>> >> Please keep messages on-topic and check the VTK FAQ at:<br>
>> >> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>> >><br>
>> >> Follow this link to subscribe/unsubscribe:<br>
>> >> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>> >><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at<br>
>> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> ><br>
>> > Please keep messages on-topic and check the VTK FAQ at:<br>
>> > <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Unpaid intern in BillsBasement at noware dot com<br>
><br>
><br>
<br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>