[BUG FIX][Image Statistics] "Ignore zero-valued voxels" checkbox active when no data selected
Summary:
The checkbox "Ignore zero-valued voxels" was included in the plugin ui-file (QmitkImageStatisticsViewControls.ui) and worked with in the QmitkImageStatisticsViewControls-files. It's prefered to keep the check box in the Modules/ImageStatisticsUI-section just like the "Copy to clipboard" button. So I removed the checkbox in the QmitkImageStatisticsViewControls.ui-file and added it to the QmitkImageStatisticsWidget.ui-file. I included the created checkbox in the QmitkImageStatisticsWidget-files. Besides the logical structure this step has one main advantage:
You can now acces the "Reset()" and "OnDataAvailable()" functions and deactivate/activate the checkbox in accordance with the status of loaded data/images.
Test Plan:
- start MITK workbench
- load a dataset
- open the "Statistics" plugin
--> Notice: Because there is no data loaded (in the plugin) all UI elements (new: now also the checkbox "Ignore zero-valued voxels") below the selection widget are inactive
- click the "+" button and select the loaded dataset
--> The checkbox can now be selected; if the dataset is removed the checkbox becomes inactive again
Reviewers: kalali, O1 MITK Reviewer Group I, O3 MITK Reviewer Group II
Reviewed By: kalali, O1 MITK Reviewer Group I, O3 MITK Reviewer Group II
Maniphest Tasks: T28788
Differential Revision: https://phabricator.mitk.org/D569