public Shape getDirtyRegion(int srcIndex, Rectangle2D inputRgn) { if (srcIndex != 0) throw new IndexOutOfBoundsException("Affine only has one input"); inputRgn = (Rectangle2D)inputRgn.clone(); Rectangle2D bounds = getBounds2D(); // Changes in the input region don't propogate outside our // bounds. if ( ! inputRgn.intersects(bounds) ) return new Rectangle2D.Float(); Rectangle2D.intersect(inputRgn, bounds, inputRgn); return inputRgn; }
public Shape getDirtyRegion(int srcIndex, Rectangle2D inputRgn) { if (srcIndex != 0) throw new IndexOutOfBoundsException("Affine only has one input"); inputRgn = (Rectangle2D)inputRgn.clone(); Rectangle2D bounds = getBounds2D(); // Changes in the input region don't propogate outside our // bounds. if ( ! inputRgn.intersects(bounds) ) return new Rectangle2D.Float(); Rectangle2D.intersect(inputRgn, bounds, inputRgn); return inputRgn; }
public Shape getDirtyRegion(int srcIndex, Rectangle2D inputRgn) { if (srcIndex != 0) throw new IndexOutOfBoundsException("Affine only has one input"); inputRgn = (Rectangle2D)inputRgn.clone(); Rectangle2D bounds = getBounds2D(); // Changes in the input region don't propogate outside our // bounds. if ( ! inputRgn.intersects(bounds) ) return new Rectangle2D.Float(); Rectangle2D.intersect(inputRgn, bounds, inputRgn); return inputRgn; }
public Shape getDependencyRegion(int srcIndex, Rectangle2D outputRgn) { if (srcIndex != 0) throw new IndexOutOfBoundsException("Affine only has one input"); // We only depend on our source for stuff that is inside // our bounds and his bounds (remember our bounds may be // tighter than his in one or both directions). Rectangle2D srect = getSource().getBounds2D(); if ( ! srect.intersects(outputRgn) ) return new Rectangle2D.Float(); Rectangle2D.intersect(srect, outputRgn, srect); Rectangle2D bounds = getBounds2D(); if ( ! srect.intersects(bounds) ) return new Rectangle2D.Float(); Rectangle2D.intersect(srect, bounds, srect); return srect; }
public Shape getDependencyRegion(int srcIndex, Rectangle2D outputRgn) { if (srcIndex != 0) throw new IndexOutOfBoundsException("Affine only has one input"); // We only depend on our source for stuff that is inside // our bounds and his bounds (remember our bounds may be // tighter than his in one or both directions). Rectangle2D srect = getSource().getBounds2D(); if ( ! srect.intersects(outputRgn) ) return new Rectangle2D.Float(); Rectangle2D.intersect(srect, outputRgn, srect); Rectangle2D bounds = getBounds2D(); if ( ! srect.intersects(bounds) ) return new Rectangle2D.Float(); Rectangle2D.intersect(srect, bounds, srect); return srect; }
public Shape getDependencyRegion(int srcIndex, Rectangle2D outputRgn) { if (srcIndex != 0) throw new IndexOutOfBoundsException("Affine only has one input"); // We only depend on our source for stuff that is inside // our bounds and his bounds (remember our bounds may be // tighter than his in one or both directions). Rectangle2D srect = getSource().getBounds2D(); if ( ! srect.intersects(outputRgn) ) return new Rectangle2D.Float(); Rectangle2D.intersect(srect, outputRgn, srect); Rectangle2D bounds = getBounds2D(); if ( ! srect.intersects(bounds) ) return new Rectangle2D.Float(); Rectangle2D.intersect(srect, bounds, srect); return srect; }
aoi = getBounds2D(); Rectangle2D rect = getBounds2D(); Rectangle2D arect = aoi.getBounds2D();
aoi = getBounds2D(); Rectangle2D rect = getBounds2D(); Rectangle2D arect = aoi.getBounds2D();
aoi = getBounds2D(); Rectangle2D rect = getBounds2D(); Rectangle2D arect = aoi.getBounds2D();