| Modifier and Type | Field and Description |
|---|---|
| private float | |
| private float | |
| private BaseTransform | |
| private boolean | |
| public static final float | |
| private float | |
| private LinearConvolveRenderState. | |
| private BaseTransform | |
| private float[] | |
| private Color4f | |
| private RenderState. | |
| private float | |
| private float | |
| private int | |
| private FloatBuffer | |
| private float | |
| private float |
| Access | Constructor and Description |
|---|---|
| public | GaussianRenderState(float
the Gaussian radius along the user space X axis xradius, float the Gaussian radius along the user space Y axis yradius, float the spread amount spread, boolean true if this is a shadow operation isShadow, Color4f the color of the shadow operation shadowColor, BaseTransform the transform applied to the filter operation filtertx)Constructs a |
| public | GaussianRenderState(float
the Gaussian radius along the indicated direction radius, float the delta X of the unit vector along which to apply the convolution dx, float the delta Y of the unit vector along which to apply the convolution dy, BaseTransform the transform applied to the filter operation filtertx)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public RenderState. | getEffectTransformSpace()
Implements com. Return a hint indicating which coordinate space should be used for the pixel filtering for this particular filtering operation. |
| pack-priv static FloatBuffer | |
| public Rectangle | getInputClip(int i, Rectangle filterClip)
Implements com. Return the clip for the indicated input based on the indicated output clip. |
| public int | getInputKernelSize(int pass)
Implements abstract com. Returns the size of the desired convolution kernel for the given pass
as it would be applied in the coordinate space indicated by the
|
| public BaseTransform | getInputTransform(BaseTransform filterTransform)
Implements com. Return the transform that should be used to obtain pixel input from the
|
| public int | getPassKernelSize()
Implements abstract com. Returns the appropriate kernel size for the pass that was last validated using validateInput(). |
| public Rectangle | getPassResultBounds(Rectangle srcdimension, Rectangle outputClip)
Implements abstract com. Returns the size of the scaled result image needed to hold the output for the currently validated pass with the indicated input dimensions and output clip. |
| public float[] | getPassShadowColorComponents()
Implements abstract com. For a shadow convolution operation, return the 4 float versions of
the color components, in the range |
| public LinearConvolveRenderState. | getPassType()
Overrides com. Return a hint about the way that the weights will be applied to the pixels for the currently validated pass. |
| public float[] | getPassVector()
Implements abstract com. Returns an array of 4 floats used to initialize a float4 Shader constant with the relative starting location of the first weight in the convolution kernel and the incremental offset between each sample to be weighted and accumulated. |
| public FloatBuffer | getPassWeights()
Implements abstract com. A |
| public int | getPassWeightsArrayLength()
Implements abstract com. Returns the maximum number of valid float4 elements that should be referenced from the buffer returned by getWeights() for the currently validated pass. |
| public BaseTransform | getResultTransform(BaseTransform filterTransform)
Implements com. Return the transform that should be used to transform the results of the filter operation. |
| public Color4f | getShadowColor()
Implements abstract com. Returns the |
| public boolean | isNop()
Implements abstract com. Returns true if the resulting operation is globally a NOP operation. |
| public boolean | isPassNop()
Implements abstract com. Returns true if the operation of the currently validated pass would be a NOP operation. |
| public boolean | isShadow()
Implements abstract com. Returns true if this is a shadow convolution operation where a constant color is substituted for the color components of the output. |
| public ImageData | validatePassInput(ImageData src, int pass)
Implements abstract com. Validates the |
| private void |
| inputRadiusX | back to summary |
|---|---|
| private float inputRadiusX | |
| inputRadiusY | back to summary |
|---|---|
| private float inputRadiusY | |
| inputtx | back to summary |
|---|---|
| private BaseTransform inputtx | |
| isShadow | back to summary |
|---|---|
| private boolean isShadow | |
| MAX_RADIUS | back to summary |
|---|---|
| public static final float MAX_RADIUS | |
| passRadius | back to summary |
|---|---|
| private float passRadius | |
| passType | back to summary |
|---|---|
| private LinearConvolveRenderState. | |
| resulttx | back to summary |
|---|---|
| private BaseTransform resulttx | |
| samplevectors | back to summary |
|---|---|
| private float[] samplevectors | |
| shadowColor | back to summary |
|---|---|
| private Color4f shadowColor | |
| space | back to summary |
|---|---|
| private RenderState. | |
| spread | back to summary |
|---|---|
| private float spread | |
| spreadPass | back to summary |
|---|---|
| private float spreadPass | |
| validatedPass | back to summary |
|---|---|
| private int validatedPass | |
| weights | back to summary |
|---|---|
| private FloatBuffer weights | |
| weightsValidRadius | back to summary |
|---|---|
| private float weightsValidRadius | |
| weightsValidSpread | back to summary |
|---|---|
| private float weightsValidSpread | |
| GaussianRenderState | back to summary |
|---|---|
| public GaussianRenderState(float xradius, float yradius, float spread, boolean isShadow, Color4f shadowColor, BaseTransform filtertx) Constructs a
| |
| GaussianRenderState | back to summary |
|---|---|
| public GaussianRenderState(float radius, float dx, float dy, BaseTransform filtertx) Constructs a
| |
| getEffectTransformSpace | back to summary |
|---|---|
| public RenderState. Implements com. Doc from com. Return a hint indicating which coordinate space should be used for
the pixel filtering for this particular filtering operation.
The
| |
| getGaussianWeights | back to summary |
|---|---|
| pack-priv static FloatBuffer getGaussianWeights(FloatBuffer weights, int pad, float radius, float spread) | |
| getInputClip | back to summary |
|---|---|
| public Rectangle getInputClip(int i, Rectangle filterClip) Implements com. Doc from com. Return the clip for the indicated input based on the indicated output clip.
| |
| getInputKernelSize | back to summary |
|---|---|
| public int getInputKernelSize(int pass) Implements abstract com. Doc from com. Returns the size of the desired convolution kernel for the given pass
as it would be applied in the coordinate space indicated by the
| |
| getInputTransform | back to summary |
|---|---|
| public BaseTransform getInputTransform(BaseTransform filterTransform) Implements com. Doc from com. Return the transform that should be used to obtain pixel input from the
| |
| getPassKernelSize | back to summary |
|---|---|
| public int getPassKernelSize() Implements abstract com. Doc from com. Returns the appropriate kernel size for the pass that was last validated using validateInput().
| |
| getPassResultBounds | back to summary |
|---|---|
| public Rectangle getPassResultBounds(Rectangle srcdimension, Rectangle outputClip) Implements abstract com. Doc from com. Returns the size of the scaled result image needed to hold the output for the currently validated pass with the indicated input dimensions and output clip. The image may be further scaled after the shader operation is through to obtain the final result bounds. This value is only of use to the actual shader to understand exactly how much room to allocate for the shader result.
| |
| getPassShadowColorComponents | back to summary |
|---|---|
| public float[] getPassShadowColorComponents() Implements abstract com. Doc from com. For a shadow convolution operation, return the 4 float versions of
the color components, in the range
| |
| getPassType | back to summary |
|---|---|
| public LinearConvolveRenderState. Overrides com. Doc from com. Return a hint about the way that the weights will be applied to the pixels for the currently validated pass.
| |
| getPassVector | back to summary |
|---|---|
| public float[] getPassVector() Implements abstract com. Doc from com. Returns an array of 4 floats used to initialize a float4 Shader constant with the relative starting location of the first weight in the convolution kernel and the incremental offset between each sample to be weighted and accumulated. The values are stored in the array in the following order:
shadervec.x = vector[0] = incdx // X delta between subsequent samples
shadervec.y = vector[1] = incdy // Y delta between subsequent samples
shadervec.z = vector[2] = startdx // X offset to first convolution sample
shadervec.w = vector[3] = startdy // Y offset to first convolution sample
These values are used in the shader loop as follows:
samplelocation = outputpixellocation.xy + shadervec.zw;
for (each weight) {
sum += weight * sample(samplelocation.xy);
samplelocation.xy += shadervec.xy;
}
The values are relative to the texture coordinate space which are
normalized to the range [0,1] over the source texture.
| |
| getPassWeights | back to summary |
|---|---|
| public FloatBuffer getPassWeights() Implements abstract com. Doc from com. A
| |
| getPassWeightsArrayLength | back to summary |
|---|---|
| public int getPassWeightsArrayLength() Implements abstract com. Doc from com. Returns the maximum number of valid float4 elements that should be referenced from the buffer returned by getWeights() for the currently validated pass.
| |
| getResultTransform | back to summary |
|---|---|
| public BaseTransform getResultTransform(BaseTransform filterTransform) Implements com. Doc from com. Return the transform that should be used to transform the results of
the filter operation.
The returned transform is combined with the resulting filter result
texture to produce an output ImageData object.
Typically, the output of
| |
| getShadowColor | back to summary |
|---|---|
| public Color4f getShadowColor() Implements abstract com. Doc from com. Returns the
| |
| isNop | back to summary |
|---|---|
| public boolean isNop() Implements abstract com. Doc from com. Returns true if the resulting operation is globally a NOP operation. This condition is calculated at the start of the render operation and is based on whether the perturbations of the convolution kernel would be noticeable at all in the coordinate space of the output.
| |
| isPassNop | back to summary |
|---|---|
| public boolean isPassNop() Implements abstract com. Doc from com. Returns true if the operation of the currently validated pass would be a NOP operation.
| |
| isShadow | back to summary |
|---|---|
| public boolean isShadow() Implements abstract com. Doc from com. Returns true if this is a shadow convolution operation where a
constant color is substituted for the color components of the
output.
This value is dependent only on the original
| |
| validatePassInput | back to summary |
|---|---|
| public ImageData validatePassInput(ImageData src, int pass) Implements abstract com. Doc from com. Validates the
| |
| validateWeights | back to summary |
|---|---|
| private void validateWeights() | |