APIdia Launch Partner
Top Constructors Methods
com.sun.scenario.effect.impl.prism

public Class PrEffectHelper

extends Object
Class Inheritance
Imports
com.sun.glass.ui.Screen, com.sun.javafx.geom.PickRay, .Point2D, .Rectangle, .Vec3d, com.sun.javafx.geom.transform.Affine2D, .Affine3D, .BaseTransform, .NoninvertibleTransformException, com.sun.javafx.sg.prism.NGCamera, .NGPerspectiveCamera, com.sun.prism.Graphics, .RenderTarget, .ResourceFactory, .Texture, com.sun.scenario.effect.Effect, .FilterContext, .ImageData, com.sun.scenario.effect.impl.EffectPeer, .ImagePool

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static Rectangle
public static Rectangle
pack-priv static Point2D
project(float x, float y, double vw, double vh, NGCamera cam, BaseTransform inv, PickRay tmpray, Vec3d tmpvec, Point2D ret)

public static void
render(Effect
the effect to be rendered
effect
,
Graphics
the Graphics to which the Effect will be rendered
g
,
float
the x location of the filtered result
x
,
float
the y location of the filtered result
y
,
Effect
the default input Effect to be used if any of the inputs for any of the effects in the chain are unspecified (i.e. null).
defaultInput
)

Applies the given filter effect to the series of inputs and then renders the result to the provided Graphics at the specified location.

public static void
renderImageData(Graphics gdst, ImageData srcData, Rectangle dstBounds)

private static void
unscale(Vec3d v, double sx, double sy)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PrEffectHelperback to summary
public PrEffectHelper()

Method Detail

clipboundsback to summary
pack-priv static Rectangle clipbounds(Point2D cul, Point2D cur, Point2D cll, Point2D clr)
getGraphicsClipNoCloneback to summary
public static Rectangle getGraphicsClipNoClone(Graphics g)
projectback to summary
pack-priv static Point2D project(float x, float y, double vw, double vh, NGCamera cam, BaseTransform inv, PickRay tmpray, Vec3d tmpvec, Point2D ret)
renderback to summary
public static void render(Effect effect, Graphics g, float x, float y, Effect defaultInput)

Applies the given filter effect to the series of inputs and then renders the result to the provided Graphics at the specified location. This method is similar to the following pseudo-code:

    g.drawTexture(effect.filter(g.getTransform()), x, y);
except that it is likely to be more efficient (and correct).
Parameters
effect:Effect

the effect to be rendered

g:Graphics

the Graphics to which the Effect will be rendered

x:float

the x location of the filtered result

y:float

the y location of the filtered result

defaultInput:Effect

the default input Effect to be used if any of the inputs for any of the effects in the chain are unspecified (i.e. null).

renderImageDataback to summary
public static void renderImageData(Graphics gdst, ImageData srcData, Rectangle dstBounds)
unscaleback to summary
private static void unscale(Vec3d v, double sx, double sy)