Hi,

we have custom display interactor for our viewer, derived from
mitk::DisplayInteractor. I'd like to disable the zooming by mouse wheel in
the 3D render window, as we use the right mouse button for zooming.

The display interactor gets the scroll event, and in case it's from the 3D
window, the action function returns 'true' without doing anything.

However, the wheel event is still passed down to the VTK layer which
processes it. It happens here:

http://mitk.org/git/?p=MITK.git;a=blob;f=Modules/QtWidgets/QmitkRenderWindow.cpp;h=710b1a176c8b7947a3553338b50082fc17342492;hb=HEAD#l181

Is there a way to disable this?

The idea is that if an MITK interactor has processed the event, it should
not be delegated to VTK.

The problem seems to be mitk::Dispatcher:

http://mitk.org/git/?p=MITK.git;a=blob;f=Core/Code/Interactions/mitkDispatcher.cpp;h=c0d77b3d6f39bbbdc65bb303d5433fb9967a8f97;hb=HEAD#l182

where the 'eventIsHandled' flag is not set to 'true'. Maybe the Notify()
functions should take the 'isHandled' argument as reference and set it when
they handled the event?

Shall I open a ticket? Any idea for a workaround?

Cheers,
Miklos
------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to