Effect.filter() operation and it is queried for
various pieces of information required to perform that operation including,
but not limited to, the coordinate space to be used for the child input
Effect operations and the coordinate transform to be applied to
the resulting final ImageData object produced as the result of that
filter operation. Some effect-specific subclasses may also plan and supply
information about how the various pixels are to be computed in the inner
loops of the effect filter algorithm.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | RenderState.
This enum characterizes the types of coordinate spaces that will be
used for the filter operation (i.e. handed to the dependent input
|
| Modifier and Type | Field and Description |
|---|---|
| public static final RenderState | RenderSpaceRenderState
A helper implementation of |
| public static final RenderState | UnclippedUserSpaceRenderState
A helper implementation of |
| public static final RenderState | UserSpaceRenderState
A helper implementation of |
| Modifier and Type | Method and Description |
|---|---|
| public RenderState. | Returns: anEffectSpace value to describe the expected output
from the getEffectTransform(...) and getResultTransform(...)
methods.Return a hint indicating which coordinate space should be used for the pixel filtering for this particular filtering operation. |
| public Rectangle | Returns: the required rectangle from the indicated input to provide enough pixels to produce the indicated output clipthe index of the input being processed i, Rectangle the output clip supplied to the given filter operation filterClip)Return the clip for the indicated input based on the indicated output clip. |
| public BaseTransform | Returns: theBaseTransform object to use for the input effectsthe filterTransform)BaseTransform object for the filter operationReturn the transform that should be used to obtain pixel input from the
|
| public BaseTransform | Returns: theBaseTransform object to be applied to the result
texturethe filterTransform)BaseTransform object for the filter operationReturn the transform that should be used to transform the results of the filter operation. |
| RenderSpaceRenderState | back to summary |
|---|---|
| public static final RenderState RenderSpaceRenderState A helper implementation of | |
| UnclippedUserSpaceRenderState | back to summary |
|---|---|
| public static final RenderState UnclippedUserSpaceRenderState A helper implementation of | |
| UserSpaceRenderState | back to summary |
|---|---|
| public static final RenderState UserSpaceRenderState A helper implementation of | |
| getEffectTransformSpace | back to summary |
|---|---|
| public RenderState. Return a hint indicating which coordinate space should be used for
the pixel filtering for this particular filtering operation.
The
| |
| getInputClip | back to summary |
|---|---|
| public Rectangle getInputClip(int i, Rectangle filterClip) Return the clip for the indicated input based on the indicated output clip. | |
| getInputTransform | back to summary |
|---|---|
| public BaseTransform getInputTransform(BaseTransform filterTransform) Return the transform that should be used to obtain pixel input from the
| |
| getResultTransform | back to summary |
|---|---|
| public BaseTransform getResultTransform(BaseTransform filterTransform) 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
| |
Effect objects) and applied to the result of the filter.
| Modifier and Type | Field and Description |
|---|---|
| public static final RenderState. | CustomSpace
The |
| public static final RenderState. | RenderSpace
The |
| public static final RenderState. | UserSpace
The |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static RenderState. | |
| public static RenderState. |
| CustomSpace | back to summary |
|---|---|
| public static final RenderState. The
BaseTransform inputtx = getInputTransform(filtertx);
BaseTransform resulttx = getResultTransform(filtertx);
// Ignoring the potential for concatenate to modify the
// return values from the above two methods, this virtual
// assert statement is just for the sake of documenting
// the intended constraints.
assert(filtertx.equalsApproximately(resulttx.concatenate(inputtx)));
| |
| RenderSpace | back to summary |
|---|---|
| public static final RenderState. The | |
| UserSpace | back to summary |
|---|---|
| public static final RenderState. The | |
| EffectCoordinateSpace | back to summary |
|---|---|
| private EffectCoordinateSpace() | |
| valueOf | back to summary |
|---|---|
| public static RenderState. | |
| values | back to summary |
|---|---|
| public static RenderState. | |