static { EvData.supportedMetadataFormats.put(metaType, IntersectROI.class); ROI.addType(new ROIType(icon, IntersectROI.class, false, true, metaDesc)); // In common: Caused by: java.lang.NoClassDefFoundError: endrov/roi/primitive/IntersectROI$2 or // 1 // this is a *Compound*ROI! first in plugin list // not in a static{}. why does it make a difference? }
@Override public boolean pointInRange(String channel, EvDecimal frame, double x, double y, double z) { for (ROI roi : getSubRoi()) if (!roi.pointInRange(channel, frame, x, y, z)) return false; return true; }
/** Get frames that at least are partially selected */ public Set<EvDecimal> getFrames(Imageset rec, String channel) { TreeSet<EvDecimal> c = new TreeSet<EvDecimal>(); for (ROI roi : getSubRoi()) c.addAll(roi.getFrames(rec, channel)); return c; }
public boolean imageInRange(String channel, EvDecimal frame, double z) { for (ROI roi : getSubRoi()) if (roi.imageInRange(channel, frame, z)) return true; return false; }
/** Get channels that at least are partially selected */ public Set<String> getChannels(Imageset rec) { TreeSet<String> c = new TreeSet<String>(); for (ROI roi : getSubRoi()) c.addAll(roi.getChannels(rec)); return c; }