| Modifier and Type | Field and Description |
|---|---|
| private FloatMap | |
| private float | |
| private float | |
| private float | |
| private float | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | DisplacementMap(FloatMap mapData)
Constructs a new |
| public | DisplacementMap(FloatMap
the map data mapData, Effect the content input contentInput)EffectConstructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public ImageData | filterImageDatas(FilterContext fctx, BaseTransform transform, Rectangle outputClip, RenderState rstate, ImageData... inputs)
Overrides com. Convenience method that sends the given input data through the current peer, and then attempts to release the input image data. |
| public final Effect | Returns: the content input for thisEffectReturns the content input for this |
| public DirtyRegionContainer | getDirtyRegions(Effect defaultInput, DirtyRegionPool regionPool)
Overrides com. Returns the dirty region container containing dirty regions affected by this filter operation. |
| public final FloatMap | |
| public float | |
| public float | |
| 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 float | |
| public float | |
| public boolean | Returns: true if wrapping is enabled, false otherwiseReturns whether values taken from outside the edges of the map "wrap around" or not. |
| 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 | setContentInput(Effect
the content input for this contentInput)EffectSets the content input for this |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setWrap(boolean
true if wrapping is enabled, false otherwise wrap)Sets whether values taken from outside the edges of the map "wrap around" or not. |
| public Point2D | Returns: the undefined point(NaN, NaN)the point in the coordinate space of the primary content
input to be transformed p, Effect the default input defaultInput)Effect to be used in
all cases where a filter has a null inputOverrides com. Transform the specified point |
| public Point2D | Returns: the untransformed point in the coordinate space of the primary content inputthe point in the coordinate space of the result output
to be transformed p, Effect the default input defaultInput)Effect to be used in
all cases where a filter has a null inputOverrides com. Transform the specified point |
| mapData | back to summary |
|---|---|
| private FloatMap mapData | |
| offsetX | back to summary |
|---|---|
| private float offsetX | |
| offsetY | back to summary |
|---|---|
| private float offsetY | |
| scaleX | back to summary |
|---|---|
| private float scaleX | |
| scaleY | back to summary |
|---|---|
| private float scaleY | |
| wrap | back to summary |
|---|---|
| private boolean wrap | |
| DisplacementMap | back to summary |
|---|---|
| public DisplacementMap(FloatMap mapData) Constructs a new
new DisplacementMap(mapData, DefaultInput)
| |
| DisplacementMap | back to summary |
|---|---|
| public DisplacementMap(FloatMap mapData, Effect contentInput) Constructs a new
| |
| filterImageDatas | back to summary |
|---|---|
| public ImageData filterImageDatas(FilterContext fctx, BaseTransform transform, Rectangle outputClip, RenderState rstate, ImageData... inputs) Overrides com. Doc from com. Convenience method that sends the given input data through the current peer, and then attempts to release the input image data.
| |
| getContentInput | back to summary |
|---|---|
| public final Effect getContentInput() Returns the content input for this
| |
| 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.
| |
| getMapData | back to summary |
|---|---|
| public final FloatMap getMapData() Returns the map data for this
| |
| getOffsetX | back to summary |
|---|---|
| public float getOffsetX() Returns the x offset factor.
| |
| getOffsetY | back to summary |
|---|---|
| public float getOffsetY() Returns the y offset factor.
| |
| 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
| |
| getScaleX | back to summary |
|---|---|
| public float getScaleX() Returns the x scale factor.
| |
| getScaleY | back to summary |
|---|---|
| public float getScaleY() Returns the y scale factor.
| |
| getWrap | back to summary |
|---|---|
| public boolean getWrap() Returns whether values taken from outside the edges of the map "wrap around" or not.
| |
| 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.
| |
| setContentInput | back to summary |
|---|---|
| public void setContentInput(Effect contentInput) Sets the content input for this
| |
| setMapData | back to summary |
|---|---|
| public void setMapData(FloatMap mapData) Sets the map data for this
| |
| setOffsetX | back to summary |
|---|---|
| public void setOffsetX(float offsetX) Sets the x offset factor.
Min: n/a
Max: n/a
Default: -0.5
Identity: 0.0
| |
| setOffsetY | back to summary |
|---|---|
| public void setOffsetY(float offsetY) Sets the y offset factor.
Min: n/a
Max: n/a
Default: -0.5
Identity: 0.0
| |
| setScaleX | back to summary |
|---|---|
| public void setScaleX(float scaleX) Sets the x scale factor.
Min: n/a
Max: n/a
Default: 1.0
Identity: 1.0
| |
| setScaleY | back to summary |
|---|---|
| public void setScaleY(float scaleY) Sets the y scale factor.
Min: n/a
Max: n/a
Default: 1.0
Identity: 1.0
| |
| setWrap | back to summary |
|---|---|
| public void setWrap(boolean wrap) Sets whether values taken from outside the edges of the map "wrap around" or not.
Min: n/a
Max: n/a
Default: false
Identity: n/a
| |
| transform | back to summary |
|---|---|
| public Point2D transform(Point2D p, Effect defaultInput) Overrides com. Transform the specified point
Since the displacement map represents a mapping from output pixels
to relative source pixels, there may be multiple answers or no
answer for any given input coordinate so this method returns
| |
| untransform | back to summary |
|---|---|
| public Point2D untransform(Point2D p, Effect defaultInput) Overrides com. Transform the specified point This method returns the floating point coordinate where the backwards mapping displacement map tells it to get the data for the specified coordinate.
| |