SD - The type of source render target descriptionsS - The type of source render targetsDD - The type of destination render target descriptionsD - The type of destination render targets@Generated(value={"Immutables.generator","R2FilterBoxBlurParametersType<SD, S, DD, D>"}) public final class R2FilterBoxBlurParameters<SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>> extends Object implements R2FilterBoxBlurParametersType<SD,S,DD,D>
Parameters for box blur filters that blur render targets of type S
and write the blurred results to render targets of type T.
| Modifier and Type | Class and Description |
|---|---|
static class |
R2FilterBoxBlurParameters.Builder<SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>>
Builds instances of type
R2FilterBoxBlurParameters. |
| Modifier and Type | Method and Description |
|---|---|
R2BlurParameters |
blurParameters() |
static <SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>> |
builder()
Creates a builder for
R2FilterBoxBlurParameters. |
static <SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>> |
copyOf(R2FilterBoxBlurParametersType<SD,S,DD,D> instance)
Creates an immutable copy of a
R2FilterBoxBlurParametersType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
R2FilterBoxBlurParameters that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
sourceRenderTarget, sourceTextureSelector, outputRenderTarget, outputTextureSelector, renderTargetPool, blurParameters, outputDescriptionScaler. |
static <SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>> |
of(S sourceRenderTarget,
Function<S,R2Texture2DUsableType> sourceTextureSelector,
D outputRenderTarget,
Function<D,R2Texture2DUsableType> outputTextureSelector,
R2RenderTargetPoolUsableType<DD,D> renderTargetPool,
R2BlurParameters blurParameters,
BiFunction<DD,com.io7m.jareas.core.AreaInclusiveUnsignedLType,DD> outputDescriptionScaler)
Construct a new immutable
R2FilterBoxBlurParameters instance. |
BiFunction<DD,com.io7m.jareas.core.AreaInclusiveUnsignedLType,DD> |
outputDescriptionScaler() |
D |
outputRenderTarget() |
Function<D,R2Texture2DUsableType> |
outputTextureSelector() |
R2RenderTargetPoolUsableType<DD,D> |
renderTargetPool() |
S |
sourceRenderTarget() |
Function<S,R2Texture2DUsableType> |
sourceTextureSelector() |
String |
toString()
Prints the immutable value
R2FilterBoxBlurParameters with attribute values. |
R2FilterBoxBlurParameters<SD,S,DD,D> |
withBlurParameters(R2BlurParameters value)
Copy the current immutable object by setting a value for the
blurParameters attribute. |
R2FilterBoxBlurParameters<SD,S,DD,D> |
withOutputDescriptionScaler(BiFunction<DD,com.io7m.jareas.core.AreaInclusiveUnsignedLType,DD> value)
Copy the current immutable object by setting a value for the
outputDescriptionScaler attribute. |
R2FilterBoxBlurParameters<SD,S,DD,D> |
withOutputRenderTarget(D value)
Copy the current immutable object by setting a value for the
outputRenderTarget attribute. |
R2FilterBoxBlurParameters<SD,S,DD,D> |
withOutputTextureSelector(Function<D,R2Texture2DUsableType> value)
Copy the current immutable object by setting a value for the
outputTextureSelector attribute. |
R2FilterBoxBlurParameters<SD,S,DD,D> |
withRenderTargetPool(R2RenderTargetPoolUsableType<DD,D> value)
Copy the current immutable object by setting a value for the
renderTargetPool attribute. |
R2FilterBoxBlurParameters<SD,S,DD,D> |
withSourceRenderTarget(S value)
Copy the current immutable object by setting a value for the
sourceRenderTarget attribute. |
R2FilterBoxBlurParameters<SD,S,DD,D> |
withSourceTextureSelector(Function<S,R2Texture2DUsableType> value)
Copy the current immutable object by setting a value for the
sourceTextureSelector attribute. |
public S sourceRenderTarget()
sourceRenderTarget in interface R2FilterBoxBlurParametersType<SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>>public Function<S,R2Texture2DUsableType> sourceTextureSelector()
sourceTextureSelector in interface R2FilterBoxBlurParametersType<SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>>S, selects
which texture on that render target will be used for blurring.public D outputRenderTarget()
outputRenderTarget in interface R2FilterBoxBlurParametersType<SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>>public Function<D,R2Texture2DUsableType> outputTextureSelector()
outputTextureSelector in interface R2FilterBoxBlurParametersType<SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>>D, selects
which texture on that render target will be used for blurring.public R2RenderTargetPoolUsableType<DD,D> renderTargetPool()
renderTargetPool in interface R2FilterBoxBlurParametersType<SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>>public R2BlurParameters blurParameters()
blurParameters in interface R2FilterBoxBlurParametersType<SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>>public BiFunction<DD,com.io7m.jareas.core.AreaInclusiveUnsignedLType,DD> outputDescriptionScaler()
outputDescriptionScaler in interface R2FilterBoxBlurParametersType<SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>>D and an
area A, returns a new description with the values of D and
the area A.public final R2FilterBoxBlurParameters<SD,S,DD,D> withSourceRenderTarget(S value)
sourceRenderTarget attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for sourceRenderTargetthis objectpublic final R2FilterBoxBlurParameters<SD,S,DD,D> withSourceTextureSelector(Function<S,R2Texture2DUsableType> value)
sourceTextureSelector attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for sourceTextureSelectorthis objectpublic final R2FilterBoxBlurParameters<SD,S,DD,D> withOutputRenderTarget(D value)
outputRenderTarget attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for outputRenderTargetthis objectpublic final R2FilterBoxBlurParameters<SD,S,DD,D> withOutputTextureSelector(Function<D,R2Texture2DUsableType> value)
outputTextureSelector attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for outputTextureSelectorthis objectpublic final R2FilterBoxBlurParameters<SD,S,DD,D> withRenderTargetPool(R2RenderTargetPoolUsableType<DD,D> value)
renderTargetPool attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for renderTargetPoolthis objectpublic final R2FilterBoxBlurParameters<SD,S,DD,D> withBlurParameters(R2BlurParameters value)
blurParameters attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for blurParametersthis objectpublic final R2FilterBoxBlurParameters<SD,S,DD,D> withOutputDescriptionScaler(BiFunction<DD,com.io7m.jareas.core.AreaInclusiveUnsignedLType,DD> value)
outputDescriptionScaler attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for outputDescriptionScalerthis objectpublic boolean equals(Object another)
R2FilterBoxBlurParameters that have equal attribute values.public int hashCode()
sourceRenderTarget, sourceTextureSelector, outputRenderTarget, outputTextureSelector, renderTargetPool, blurParameters, outputDescriptionScaler.public String toString()
R2FilterBoxBlurParameters with attribute values.public static <SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>> R2FilterBoxBlurParameters<SD,S,DD,D> of(S sourceRenderTarget, Function<S,R2Texture2DUsableType> sourceTextureSelector, D outputRenderTarget, Function<D,R2Texture2DUsableType> outputTextureSelector, R2RenderTargetPoolUsableType<DD,D> renderTargetPool, R2BlurParameters blurParameters, BiFunction<DD,com.io7m.jareas.core.AreaInclusiveUnsignedLType,DD> outputDescriptionScaler)
R2FilterBoxBlurParameters instance.sourceRenderTarget - The value for the sourceRenderTarget attributesourceTextureSelector - The value for the sourceTextureSelector attributeoutputRenderTarget - The value for the outputRenderTarget attributeoutputTextureSelector - The value for the outputTextureSelector attributerenderTargetPool - The value for the renderTargetPool attributeblurParameters - The value for the blurParameters attributeoutputDescriptionScaler - The value for the outputDescriptionScaler attributepublic static <SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>> R2FilterBoxBlurParameters<SD,S,DD,D> copyOf(R2FilterBoxBlurParametersType<SD,S,DD,D> instance)
R2FilterBoxBlurParametersType value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.SD - generic parameter SDS - generic parameter SDD - generic parameter DDD - generic parameter Dinstance - The instance to copypublic static <SD extends R2RenderTargetDescriptionType,S extends R2RenderTargetUsableType<SD>,DD extends R2RenderTargetDescriptionType,D extends R2RenderTargetUsableType<DD>> R2FilterBoxBlurParameters.Builder<SD,S,DD,D> builder()
R2FilterBoxBlurParameters.SD - generic parameter SDS - generic parameter SDD - generic parameter DDD - generic parameter DCopyright © 2016 <code@io7m.com> http://io7m.com