Graphical ROI manager

Remotely controllable ROIs whose position, size and color are synchronized through the central property store.

Overview

quatm/GUI/widgets/ROI.py provides ROI: a subclass of ROI that communicates its color, position and size through the central property store under a unique name. It is suited to displaying and managing multiple regions of interest in a GUI and letting remote clients view and adjust them in sync.

Methods

MethodDescription
update_from_propertiesRefreshes the ROI pen color and geometry from the color/position/size in properties

Usage

from quatm.GUI.widgets.ROI import ROI

roi = ROI(name="analysis_roi", parent=view)   # name must be unique; duplicate names share properties
roi.update_from_properties()

For a more complete description, see Remote ROI.