Added detector image to SubframeRefiner
- Significant refactoring of GUI to reduce code duplication, specifically in the code involved in implmenting a
DetectorScene
in a frame. The controls and image are now wrapped in a newDetectorWidget
, which can be more easily added to new frames. -
DetectorWidget
inSubframeRefiner
has some unique functionality: upon clicking "update peaks" it clones the predicted peaks collection locally and updates the original predicted collection, allowing the user to visually see the effect of refinement on the peak centres. - A
DetectorWidget
includes 3 default control widget: theQSpinBox
andQScrollBar
to cycle through the frames, and aQComboBox
to change the set of images (DataSet
). There are three optional controls that can be implemented with a simple boolean flag in the constructor, an interaction modeQComboBox
which allows users to add selection boxes, masks and plot cross sections along lines, a cursor modeQComboBox
which allows the user to change the unit of the tooltip showing the coordinates of the pixel under the cursor, and aQSlider
to change the intensity scale. - Removed now-unnecessary class
ImagePanel
(fromSubframeExperiment
) and unusedLoggerPanel
.
Resolves #329 (closed) and #170 (closed)
Edited by Raza, Zamaan