Hi Miklos,

this is related to the transition of the interaction framework, since the paint 
brush still is part of the old framework they do not communicate with each 
other,
I entered a bug (Bug 14829) to implement a way for manually switching the 
display interaction on/off for these cases.
As a hot fix, you can change the mouse events to which the display interactor 
or the paint brush tool reacts to avoid that conflict,
if you need help doing this just let me know!

Regards
Christian



Von: Miklos Espak [mailto:[email protected]]
Gesendet: Dienstag, 26. März 2013 13:20
An: mitk-users
Betreff: [mitk-users] GlobalInteraction::INFORM_ONE

Hi,

I want to disable the display geometry interactions (especially the shifting of 
the image by the middle mouse button) while a paintbrush tool is turned on.

The event notification policy is set to INFORM_ONE by a

    
mitk::GlobalInteraction::GetInstance()->SetEventNotificationPolicy(mitk::GlobalInteraction::INFORM_ONE);

call when the tool is selected, and to INFORM_MULTIPLE when it is deselected.

This was working not so long ago, but now it is not. If the paintbrush tool is 
on then the dragging with the middle mouse button triggers both the image 
editing and the movement of the image.
What I know for sure that it worked in an older version of our app that was 
based on the MITK 12.12 release.

I have seen that the interaction framework went through a fundamental redesign, 
and the GlobalInteraction class is deprecated. Are the notification policies 
not supported any more? What could I use instead of them?

Thank you,
Miklos

------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to