Class TLspColorLookupTableFilterStyle.Builder<B extends TLspColorLookupTableFilterStyle.Builder<B>>
java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle.Builder<B>
com.luciad.view.lightspeed.style.imagefilter.TLspColorLookupTableFilterStyle.Builder<B>
- Enclosing class:
TLspColorLookupTableFilterStyle
public static class TLspColorLookupTableFilterStyle.Builder<B extends TLspColorLookupTableFilterStyle.Builder<B>>
extends ALspStyle.Builder<B>
Builder for color lookup table filter styles.
At least one lookup table must be specified.
For example to create a grey-scale filter:
TLspColorLookupTableFilterStyle style = TLspColorLookupTableFilterStyle.newBuilder(). filter( TLcdColorLookupTable.newBuilder().filter( new ILcdColorFilter() { public void apply( float[] aRGBColorSFCT ) { float lum = 0.2126f * aRGBColorSFCT[ 0 ] + 0.7152f * aRGBColorSFCT[ 1 ] + 0.0722f * aRGBColorSFCT[ 2 ]; aRGBColorSFCT[ 0 ] = aRGBColorSFCT[ 1 ] = aRGBColorSFCT[ 2 ] = lum; } } ).build() ). build();
- Since:
- 2013.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets all parameters on the builder based on the given style.build()
Builds the style with the set parameters.filter
(ALcdColorLookupTable aLookupTable) Adds a filter from a lookup table.Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle.Builder
equals, hashCode
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
filter
Adds a filter from a lookup table. This filter will be applied after all previously added filters. The following types of lookup tables are supported:TLcdColorLookupTable
: typically used for general color transformationsTLcdComponentColorLookupTable
: typically used for transforming color components independently
- Parameters:
aLookupTable
- the lookup table- 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 TLspColorLookupTableFilterStyle.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 TLspColorLookupTableFilterStyle.Builder<B>>
- Returns:
- the resulting style
-