/** Returns 'true' if this ROI is displayed and is also in an overlay. */ public final boolean isActiveOverlayRoi() { if (imp==null || this!=imp.getRoi()) return false; Overlay overlay = imp.getOverlay(); if (overlay!=null && overlay.contains(this)) return true; ImageCanvas ic = imp.getCanvas(); overlay = ic!=null?ic.getShowAllList():null; // ROI Manager overlay return overlay!=null && overlay.contains(this); }
/** Returns 'true' if this ROI is displayed and is also in an overlay. */ public final boolean isActiveOverlayRoi() { if (imp==null || this!=imp.getRoi()) return false; Overlay overlay = imp.getOverlay(); if (overlay!=null && overlay.contains(this)) return true; ImageCanvas ic = imp.getCanvas(); overlay = ic!=null?ic.getShowAllList():null; // ROI Manager overlay return overlay!=null && overlay.contains(this); }
if (ic!=null && overlay && ic.getShowAllList()!=null && ic.getShowAllList().contains(this) && !Prefs.showAllSliceOnly) slice = 0; // draw point irrespective of currently selected slice if (Prefs.showAllPoints)
if (ic!=null && overlay && ic.getShowAllList()!=null && ic.getShowAllList().contains(this) && !Prefs.showAllSliceOnly) slice = 0; // draw point irrespective of currently selected slice if (Prefs.showAllPoints)
if (imagePlus.getRoi() != null && !imagePlus.getOverlay().contains( imagePlus.getRoi())) imagePlus.getOverlay().add(imagePlus.getRoi()); final ROITree rois = convertService.convert(imagePlus.getOverlay(),