Class TLspImageProcessingStyle.Builder<B extends TLspImageProcessingStyle.Builder<B>>
java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle.Builder<B>
com.luciad.view.lightspeed.style.imagefilter.TLspImageProcessingStyle.Builder<B>
- Enclosing class:
TLspImageProcessingStyle
public static class TLspImageProcessingStyle.Builder<B extends TLspImageProcessingStyle.Builder<B>>
extends ALspStyle.Builder<B>
Builder for image processing styles. The image operator chain must be specified.
Example that sets a convolution operator:
ALcdImageOperatorChain chain = ALcdImageOperatorChain.newBuilder() .operator(new TLcdConvolveOp()) .parameter(TLcdConvolveOp.KERNEL_HEIGHT,3) .parameter(TLcdConvolveOp.KERNEL_WIDTH,3) .parameter(TLcdConvolveOp.KERNEL,new float[]{-1f,-1f,-1f,-1f,9f,-1f,-1f,-1f,-1f}) .build(); TLspImageProcessingStyle style = TLspImageProcessingStyle.newBuilder().operatorChain(chain).build();
- Since:
- 2014.0
-
Method Summary
Modifier and TypeMethodDescriptionSets all parameters on the builder based on the given style.build()
Builds the style with the set parameters.operatorChain
(ALcdImageOperatorChain aChain) Sets the image operator chain.Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle.Builder
equals, hashCode
-
Method Details
-
operatorChain
Sets the image operator chain. Note that the passed image operator chain should always return the same result given the same input. Usually this means that the chain should not contain mutable state.- Parameters:
aChain
- the operator chain- Returns:
- this builder
-
all
Description copied from class:ALspStyle.Builder
Sets all parameters on the builder based on the given style. This is useful for example to create a new style that has almost all properties equal to another style.- Specified by:
all
in classALspStyle.Builder<B extends TLspImageProcessingStyle.Builder<B>>
- Parameters:
aStyle
- the style to copy- Returns:
this
-
build
Description copied from class:ALspStyle.Builder
Builds the style with the set parameters.- Specified by:
build
in classALspStyle.Builder<B extends TLspImageProcessingStyle.Builder<B>>
- Returns:
- the resulting style
-