| Modifier and Type | Field and Description |
|---|---|
| private float[] | |
| private float | |
| private float | |
| private float | |
| private float | |
| private final PerspectiveTransformState | |
| private float[][] | |
| private float | |
| private float | |
| private float | |
| private float |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ImageData | filter(FilterContext fctx, BaseTransform transform, Rectangle outputClip, Object renderHelper, Effect defaultInput)
Overrides com. Applies this filter effect to the series of images represented by
the input |
| public RectBounds | getBounds(BaseTransform transform, Effect defaultInput)
Overrides com. Returns the bounding box that will be affected by this filter
operation when viewed under the specified |
| public DirtyRegionContainer | getDirtyRegions(Effect defaultInput, DirtyRegionPool regionPool)
Overrides com. Returns the dirty region container containing dirty regions affected by this filter operation. |
| public final Effect | |
| public RenderState | getRenderState(FilterContext fctx, BaseTransform transform, Rectangle outputClip, Object renderHelper, Effect defaultInput)
Implements abstract com. Returns the object representing the rendering strategy and state for the filter operation characterized by the specified arguments. |
| public Rectangle | getResultBounds(BaseTransform transform, Rectangle outputClip, ImageData... inputDatas)
Overrides com.
|
| pack-priv Object | getState()
Overrides com. Returns state object that is associated with this effect instance. |
| public boolean | reducesOpaquePixels()
Implements abstract com. Whether an opacity for any pixel is different (lower) than the corresponding pixel in the default input. |
| public void | |
| public final void | setQuadMapping(float ulx, float uly, float urx, float ury, float lrx, float lry, float llx, float lly)
|
| private void | setUnitQuadMapping(float
The X coordinate to which ulx, float (0, 0) is mapped.The Y coordinate to which uly, float (0, 0) is mapped.The X coordinate to which urx, float (1, 0) is mapped.The Y coordinate to which ury, float (1, 0) is mapped.The X coordinate to which lrx, float (1, 1) is mapped.The Y coordinate to which lry, float (1, 1) is mapped.The X coordinate to which llx, float (0, 1) is mapped.The Y coordinate to which lly)(0, 1) is mapped.Sets the transform to map the unit square to the indicated quadrilateral coordinates. |
| private void | |
| private void | |
| public Point2D | transform(Point2D p, Effect defaultInput)
Overrides com. Transform the specified point |
| public Point2D | untransform(Point2D p, Effect defaultInput)
Overrides com. Transform the specified point |
| devcoords | back to summary |
|---|---|
| private float[] devcoords | |
| llx | back to summary |
|---|---|
| private float llx | |
| lly | back to summary |
|---|---|
| private float lly | |
| lrx | back to summary |
|---|---|
| private float lrx | |
| lry | back to summary |
|---|---|
| private float lry | |
| state | back to summary |
|---|---|
| private final PerspectiveTransformState state | |
| tx | back to summary |
|---|---|
| private float[][] tx | |
| ulx | back to summary |
|---|---|
| private float ulx | |
| uly | back to summary |
|---|---|
| private float uly | |
| urx | back to summary |
|---|---|
| private float urx | |
| ury | back to summary |
|---|---|
| private float ury | |
| PerspectiveTransform | back to summary |
|---|---|
| public PerspectiveTransform() | |
| PerspectiveTransform | back to summary |
|---|---|
| public PerspectiveTransform(Effect input) | |
| filter | back to summary |
|---|---|
| public ImageData filter(FilterContext fctx, BaseTransform transform, Rectangle outputClip, Object renderHelper, Effect defaultInput) Overrides com. Doc from com. Applies this filter effect to the series of images represented by
the input
The filter might be able to use the
Note that the
boolean valid;
do {
ImageData res = filter(fctx, transform, clip, renderer, defaultInput);
if (res == null) {
break;
}
if (valid = res.validate(fctx)) {
// Render res.getImage() to the appropriate destination
// or use it as an input to another chain of effects.
}
res.unref();
} while (!valid);
| |
| getBounds | back to summary |
|---|---|
| public RectBounds getBounds(BaseTransform transform, Effect defaultInput) Overrides com. Doc from com. Returns the bounding box that will be affected by this filter
operation when viewed under the specified
| |
| getDirtyRegions | back to summary |
|---|---|
| public DirtyRegionContainer getDirtyRegions(Effect defaultInput, DirtyRegionPool regionPool) Overrides com. Doc from com. Returns the dirty region container containing dirty regions affected by this filter operation.
| |
| getInput | back to summary |
|---|---|
| public final Effect getInput() Returns the input for this
| |
| getRenderState | back to summary |
|---|---|
| public RenderState getRenderState(FilterContext fctx, BaseTransform transform, Rectangle outputClip, Object renderHelper, Effect defaultInput) Implements abstract com. Doc from com. Returns the object representing the rendering strategy and state for
the filter operation characterized by the specified arguments.
This call can also be used to get a state object for non-rendering
cases like querying the bounds of an operation in which case the
| |
| getResultBounds | back to summary |
|---|---|
| public Rectangle getResultBounds(BaseTransform transform, Rectangle outputClip, ImageData... inputDatas) Overrides com.
| |
| getState | back to summary |
|---|---|
| pack-priv Object getState() Overrides com. Doc from com. Returns state object that is associated with this effect instance. Subclasses may override this method to return some sort of state object that contains implementation details that are hidden from the public API. Classes outside this package can use the AccessHelper class to get access to this package-private method.
| |
| reducesOpaquePixels | back to summary |
|---|---|
| public boolean reducesOpaquePixels() Implements abstract com. Doc from com. Whether an opacity for any pixel is different (lower) than the corresponding pixel in the default input. It is always safe to return true from this method, though the consequences may be that the caller chooses to not utilize a planned optimization.
| |
| setInput | back to summary |
|---|---|
| public void setInput(Effect input) Sets the input for this
| |
| setQuadMapping | back to summary |
|---|---|
| public final void setQuadMapping(float ulx, float uly, float urx, float ury, float lrx, float lry, float llx, float lly) | |
| setUnitQuadMapping | back to summary |
|---|---|
| private void setUnitQuadMapping(float ulx, float uly, float urx, float ury, float lrx, float lry, float llx, float lly) Sets the transform to map the unit square to the indicated quadrilateral coordinates. The resulting perspective transform will perform the following coordinate mappings:
T(0, 0) = (ulx, uly)
T(0, 1) = (urx, ury)
T(1, 1) = (lrx, lry)
T(1, 0) = (llx, lly)
Note that the upper left corner of the unit square (0, 0)
is mapped to the coordinates specified by (ulx, uly) and
so on around the unit square in a clockwise direction.
| |
| setupDevCoords | back to summary |
|---|---|
| private void setupDevCoords(BaseTransform transform) | |
| setupTransforms | back to summary |
|---|---|
| private void setupTransforms(BaseTransform transform) | |
| transform | back to summary |
|---|---|
| public Point2D transform(Point2D p, Effect defaultInput) Overrides com. Doc from com. Transform the specified point
The definition of which input represents the primary content input
and how the coordinate space of that input compares to the coordinate
space of the result varies from effect to effect.
Note that some effects may have a reasonable definition of how to
map source coordinates to destination coordinates, but not the
reverse.
In particular, effects which map source coordinates discontiguously
into the result may have several output coordinates that are affected
by a given input coordinate and may choose to return one of many
equally valid answers, or an undefined result such as
| |
| untransform | back to summary |
|---|---|
| public Point2D untransform(Point2D p, Effect defaultInput) Overrides com. Doc from com. Transform the specified point
The definition of which input represents the primary content input
and how the coordinate space of that input compares to the coordinate
space of the result varies from effect to effect.
Note that some effects may have a reasonable definition of how to
map destination coordinates back to source coordinates, but not the
reverse.
In particular, effects which produce entirely synthetic results not
based on any content input may not be able to give a meaningful
result to this query and may return undefined coordinates such as
| |