[vtk-developers] Mouse wheel support in VTK

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed Jan 28 09:58:03 EST 2004


Commit has been done. There is still work to be done in class that 
bridge to VTK, for example the borland one, the wxWindows, the Qt, the 
GTK (in c++ and in python).

I'll try to fix them ASAP.

For the borland one, there is a TCustomControl::OnMouseWheelUp event, 
maybe it can be use ?

Mathieu


Mathieu Malaterre wrote:
> Ok, since no one complain about the naming convention, I'll merge my 
> changes tomorrow.
> 
> Mathieu
> 
> Mathieu Malaterre wrote:
> 
>> Hi all,
>>
>>     A long time ago I sent to the vtkusers list, a patch to support 
>> mouse wheel event in VTK, but I couldn't test it under Mac. After a 
>> lot of problems and a lots of help from Chris Scharver I was able to 
>> verify it worked under Mac + Cocoa.
>>
>>     So this patch has been successfully tested under:
>>
>> - Unix/ Linux (including Tcl)
>> - Windows 2000 and XP
>> - Mac Cocoa
>> - Mac Carbon
>>
>>     Also for the Unix port, there is an interesting thread I had with 
>> Charl P. Botha, which explains how this event is -badly- handled under 
>> X11:
>>     http://vtk.org/pipermail/vtkusers/2003-August/019537.html
>>
>>     I also attached to this mail an example in Tcl, python and cxx.
>>
>>     I would like to apply it sometime next week. Comments /suggestions 
>> welcome. Maybe the convention can be inverted, I choose to call 
>> 'Forward' an event when 'scrolling up' the mouse wheel.
>>
>> Thanks,
>> Mathieu
> 
> 
> 
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtk-developers
> 






More information about the vtk-developers mailing list