java.lang.Object
com.github.weisj.jsvg.nodes.AbstractSVGNode
com.github.weisj.jsvg.nodes.filter.AbstractFilterPrimitive
com.github.weisj.jsvg.nodes.filter.FeGaussianBlur
- All Implemented Interfaces:
FilterPrimitive
,SVGNode
@ElementCategories(FilterPrimitive)
@PermittedContent(anyOf={Animate.class,Set.class})
public final class FeGaussianBlur
extends AbstractFilterPrimitive
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyFilter
(@NotNull RenderContext context, @NotNull FilterContext filterContext) void
build
(@NotNull AttributeNode attributeNode) private double[]
computeAbsoluteStdDeviation
(@Nullable AffineTransform at) private static float[]
computeGaussianKernelData
(int diameter, double standardDeviation) private @NotNull Kernel
createConvolveKernel
(int diameter, double sigma, boolean horizontal) static int
kernelDiameterForStandardDeviation
(double standardDeviation) void
layoutFilter
(@NotNull RenderContext context, @NotNull FilterLayoutContext filterLayoutContext) private static float
normalConvolve
(float x, double standardDeviation) void
setOnlyAlpha
(boolean onlyAlpha) @NotNull String
tagName()
Methods inherited from class com.github.weisj.jsvg.nodes.filter.AbstractFilterPrimitive
colorInterpolation, height, impl, width, x, y
Methods inherited from class com.github.weisj.jsvg.nodes.AbstractSVGNode
addContent, id, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.weisj.jsvg.nodes.filter.FilterPrimitive
isValid
-
Field Details
-
TAG
- See Also:
-
SQRT_2_PI
private static final double SQRT_2_PI -
THREE_QUARTER_SQRT_2_PI
private static final double THREE_QUARTER_SQRT_2_PI -
KERNEL_PRECISION
private static final float KERNEL_PRECISION- See Also:
-
BOX_BLUR_APPROXIMATION_THRESHOLD
private static final double BOX_BLUR_APPROXIMATION_THRESHOLD- See Also:
-
stdDeviation
private float[] stdDeviation -
edgeMode
-
xCurrent
private double xCurrent -
yCurrent
private double yCurrent -
xBlur
-
yBlur
-
onlyAlpha
private boolean onlyAlpha
-
-
Constructor Details
-
FeGaussianBlur
public FeGaussianBlur()
-
-
Method Details
-
tagName
-
build
- Specified by:
build
in interfaceSVGNode
- Overrides:
build
in classAbstractFilterPrimitive
-
setOnlyAlpha
@Internal public void setOnlyAlpha(boolean onlyAlpha) -
computeAbsoluteStdDeviation
-
layoutFilter
public void layoutFilter(@NotNull @NotNull RenderContext context, @NotNull @NotNull FilterLayoutContext filterLayoutContext) -
applyFilter
public void applyFilter(@NotNull @NotNull RenderContext context, @NotNull @NotNull FilterContext filterContext) -
createConvolveKernel
@NotNull private @NotNull Kernel createConvolveKernel(int diameter, double sigma, boolean horizontal) -
normalConvolve
private static float normalConvolve(float x, double standardDeviation) -
computeGaussianKernelData
private static float[] computeGaussianKernelData(int diameter, double standardDeviation) -
kernelDiameterForStandardDeviation
public static int kernelDiameterForStandardDeviation(double standardDeviation)
-