@@ -221,7 +221,16 @@ class BaseROIEditor(
221221 Generic [TypeObj , TypeROI , TypePlotItem , TypeROIItem ], # type: ignore
222222 metaclass = BaseROIEditorMeta ,
223223):
224- """ROI Editor"""
224+ """ROI Editor
225+
226+ Args:
227+ parent: Parent plot dialog
228+ obj: Object to edit (:class:`sigima_.obj.SignalObj` or
229+ :class:`sigima_.obj.ImageObj`)
230+ extract: If True, the dialog is in "extract mode" (extracting ROIs)
231+ item: Optional plot item to add to the plot (if None, a new item is created
232+ from the object)
233+ """
225234
226235 ICON_NAME = None
227236 OBJ_NAME = None
@@ -247,6 +256,8 @@ def __init__(
247256 roi = obj .roi
248257 if roi is None :
249258 roi = self .get_obj_roi_class ()()
259+ if roi .singleobj is None :
260+ roi .singleobj = Conf .proc .extract_roi_singleobj .get ()
250261 self .__roi : TypeROI = roi
251262
252263 fmt = create_adapter_from_object (obj ).get_obj_option ("format" )
@@ -448,7 +459,16 @@ def get_text(self) -> str:
448459
449460
450461class SignalROIEditor (BaseROIEditor [SignalObj , SignalROI , CurveItem , XRangeSelection ]):
451- """Signal ROI Editor"""
462+ """Signal ROI Editor
463+
464+ Args:
465+ parent: Parent plot dialog
466+ obj: Object to edit (:class:`sigima_.obj.SignalObj` or
467+ :class:`sigima_.obj.ImageObj`)
468+ extract: If True, the dialog is in "extract mode" (extracting ROIs)
469+ item: Optional plot item to add to the plot (if None, a new item is created
470+ from the object)
471+ """
452472
453473 ICON_NAME = "signal_roi.svg"
454474 OBJ_NAME = _ ("signal" )
@@ -508,7 +528,16 @@ class ImageROIEditor(
508528 Union [AnnotatedPolygon , AnnotatedRectangle , AnnotatedCircle ],
509529 ]
510530):
511- """Image ROI Editor"""
531+ """Image ROI Editor
532+
533+ Args:
534+ parent: Parent plot dialog
535+ obj: Object to edit (:class:`sigima_.obj.SignalObj` or
536+ :class:`sigima_.obj.ImageObj`)
537+ extract: If True, the dialog is in "extract mode" (extracting ROIs)
538+ item: Optional plot item to add to the plot (if None, a new item is created
539+ from the object)
540+ """
512541
513542 ICON_NAME = "image_roi.svg"
514543 OBJ_NAME = _ ("image" )
0 commit comments