medInria/medInria-public — pull request #77 by LoicCadour (2013-07-31 06:59:44+00:00)
Title: Windowing masks with PaintSegmentation

Issue: https://med.inria.fr/redmine/issues/1744

Here is a fun bug that appears once you have segmented using Paint.
Just after segmenting (i.e Paint button is checked), you uncheck this button and drag your mouse on the image. If in medViewPropertiesTollbox, your mouse interaction is windowing, it should happen strange things : your mask and all your image becoming blue, yellow, green ... (good test for epilepsy :)

The same problem appears when you are focused on the mask and go from windowing interaction to measuring interaction, and then drag on the image.

--------------------------------------------

I created a new medMetaDataKey SeriesType (the name of the key can be discussed), that for now, allows to know whether the image you are dealing with is a mask or not. Once you know that, you can modify the mouseInteraction, for instance for preventing windowing on a mask.

In the second commit, I removed LUT and Preset properties for masks, because I think they are useless.