HomePhabricator
Diffusion MITK 234cb93299fe

Fixed T28667 Generalize overwriting of interaction configs when using tools

Description

Fixed T28667 Generalize overwriting of interaction configs when using tools

Summary: Instead of setting a complete hardcoded temporary interaction config when activating a tool, add a config onto the existing one to take care only of the relevant events, leaving the rest of the config unchanged. For segmentation tools, this means replacing "DisplayConfigMITKNoCrosshair.xml" with a new config "DisplayConfigBlockLMB.xml" that only contains an event variant for pressing the left mouse button, blocking the original config from receiving left mouse button press events.

Test Plan: Create a segmentation. While any 2D segmentation tool is activated, try using secondary interactions (any not based on left mouse button) with the default interaction and with PACS like interaction, e.g. zooming (right mouse button in default, ctrl + right mouse button in PACS). In both cases, activating the tool does not change behavior.

Reviewers: O1 MITK Reviewer Group I, kalali

Reviewed By: O1 MITK Reviewer Group I, kalali

Subscribers: kalali

Maniphest Tasks: T28667

Differential Revision: https://phabricator.mitk.org/D531