GUI: refactor integration region plotting
In its current form, the integration region plotter (DetectorScene::refreshIntegrationOverlay
) will generate an overlay the size of the detector image in which the integration regions are coloured over the space of a loop over all peaks. This makes it tricky to control the properties of the integration region on a per-peak basis.
I think that the individual integration region for a peak should be a property of either the Peak3D
or graphical PeakItemGraphic
objects. Each PeakItemGraphic
should generate a IntegrationRegion
object, use that to generate a QImage
of the relevant part of the detector image, which should then be placed at the relevant coordinates such that it overlays the peak in the DetectorScene
.