Rectangle2D intersection = bounds.createIntersection(sourceBounds);
if (compositeSurfaces(oldSurface, newSurface, op2.alphaFactor, (op.anime.animType == RenderingOp.Animation.MORPH || op.anime.animType == RenderingOp.Animation.SMOOTH) ? op.anime.orgSrcRect.createIntersection(clipRect) : op.destRect.createIntersection(clipRect))) surfsCompositedNow.add(op2.surface);
else compositeMode = java.awt.AlphaComposite.SRC_OVER; java.awt.geom.Rectangle2D validRegion = op.destRect.createIntersection(clipRect); textureMap0(currSurface.longValue(), (float)validRegion.getX(), (float)validRegion.getY(), (float)validRegion.getWidth(), (float)validRegion.getHeight(),
g2.setClip(op.destRect.createIntersection(currEffectClip != null ? (java.awt.geom.Rectangle2D)currEffectClip : (java.awt.geom.Rectangle2D)clipRect)); g2.setClip(op.destRect.createIntersection(currEffectClip != null ? (java.awt.geom.Rectangle2D)currEffectClip : (java.awt.geom.Rectangle2D)clipRect)); g2.setClip(op.destRect.createIntersection(currEffectClip != null ? (java.awt.geom.Rectangle2D)currEffectClip : (java.awt.geom.Rectangle2D)clipRect)); g2.setClip(op.destRect.createIntersection(clipRect)); if (isBackgroundSurface(op.surface)) g2.setComposite(java.awt.AlphaComposite.getInstance(java.awt.AlphaComposite.SRC)); g2.setClip(op.destRect.createIntersection(clipRect)); g2.drawImage(op.texture.getJavaImage(op.textureIndex), Math.round(op.destRect.x), Math.round(op.destRect.y), Math.round(op.destRect.x + op.destRect.width), Math.round(op.destRect.y + op.destRect.height), if (ANIM_DEBUG) System.out.println("Rendering Animation " + anime.animation); g2.setTransform(baseXform); g2.setClip(op.destRect.createIntersection(clipRect)); g2.setComposite(java.awt.AlphaComposite.getInstance(java.awt.AlphaComposite.SRC_OVER, op.alphaFactor)); g2.drawImage(cachedSurface, Math.round(op.destRect.x), Math.round(op.destRect.y), Math.round(op.destRect.x + op.destRect.width), g2.setClip(op.anime.altDestRect.createIntersection(clipRect)); g2.setComposite(java.awt.AlphaComposite.getInstance(java.awt.AlphaComposite.SRC_OVER, op.anime.altAlphaFactor)); g2.drawImage(cachedSurface, Math.round(anime.altDestRect.x), Math.round(anime.altDestRect.y),
java.awt.geom.Rectangle2D.Float trueBoundsf = getTrueBoundsf(); java.awt.geom.Rectangle2D viewableArea = (scrollParent == null) ? trueBoundsf : scrollParent.getTrueBoundsf().createIntersection(trueBoundsf); boolean hideCroppedText = !(reality.getUIMgr().getBoolean("ui/show_cropped_text", true)); if (hideCroppedText &&
if (focusTargetRect != null && focusTargetRect.intersects(selBounds)) java.awt.geom.Rectangle2D.Float newSelBounds = (java.awt.geom.Rectangle2D.Float)focusTargetRect.createIntersection(selBounds);
continue; java.awt.geom.Rectangle2D.Float newInter = (java.awt.geom.Rectangle2D.Float) currBounds.createIntersection(x);
compositeSurfaces(cachedSurface, altSurfImage, op2.alphaFactor, op2.destRect.createIntersection(clipRect));
if (focusTargetRect != null && focusTargetRect.intersects(fullRect)) java.awt.geom.Rectangle2D.Float newSelBounds = (java.awt.geom.Rectangle2D.Float)fullRect.createIntersection(focusTargetRect);
private void updateXYParams(GeoPos geoPos1, GeoPos geoPos2) { final GeoCoding geoCoding = product.getGeoCoding(); final PixelPos pixelPos1 = geoCoding.getPixelPos(geoPos1, null); if (!pixelPos1.isValid()) { pixelPos1.setLocation(0, 0); } final PixelPos pixelPos2 = geoCoding.getPixelPos(geoPos2, null); if (!pixelPos2.isValid()) { pixelPos2.setLocation(product.getSceneRasterWidth(), product.getSceneRasterHeight()); } final Rectangle.Float region = new Rectangle.Float(); region.setFrameFromDiagonal(pixelPos1.x, pixelPos1.y, pixelPos2.x, pixelPos2.y); final Rectangle.Float productBounds = new Rectangle.Float(0, 0, product.getSceneRasterWidth(), product.getSceneRasterHeight()); Rectangle2D finalRegion = productBounds.createIntersection(region); paramX1.setValue((int) finalRegion.getMinX(), null); paramY1.setValue((int) finalRegion.getMinY(), null); paramX2.setValue((int) finalRegion.getMaxX() - 1, null); paramY2.setValue((int) finalRegion.getMaxY() - 1, null); }
private void updateXYParams(GeoPos geoPos1, GeoPos geoPos2) { final GeoCoding geoCoding = product.getSceneGeoCoding(); final PixelPos pixelPos1 = geoCoding.getPixelPos(geoPos1, null); if (!pixelPos1.isValid()) { pixelPos1.setLocation(0, 0); } final PixelPos pixelPos2 = geoCoding.getPixelPos(geoPos2, null); if (!pixelPos2.isValid()) { pixelPos2.setLocation(product.getSceneRasterWidth(), product.getSceneRasterHeight()); } final Rectangle.Float region = new Rectangle.Float(); region.setFrameFromDiagonal(pixelPos1.x, pixelPos1.y, pixelPos2.x, pixelPos2.y); final Rectangle.Float productBounds = new Rectangle.Float(0, 0, product.getSceneRasterWidth(), product.getSceneRasterHeight()); Rectangle2D finalRegion = productBounds.createIntersection(region); paramX1.setValue((int) finalRegion.getMinX(), null); paramY1.setValue((int) finalRegion.getMinY(), null); paramX2.setValue((int) finalRegion.getMaxX() - 1, null); paramY2.setValue((int) finalRegion.getMaxY() - 1, null); }