Package com.luciad.view.lightspeed.style
Class TLsp3DMeshStyle.Builder<B extends TLsp3DMeshStyle.Builder<B>>
java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle.Builder<B>
com.luciad.view.lightspeed.style.TLsp3DMeshStyle.Builder<B>
- All Implemented Interfaces:
ILspEffectsHintStyle.Builder
- Enclosing class:
TLsp3DMeshStyle
public static final class TLsp3DMeshStyle.Builder<B extends TLsp3DMeshStyle.Builder<B>>
extends ALspStyle.Builder<B>
implements ILspEffectsHintStyle.Builder
Builder for 3D mesh styles.
- Since:
- 2017.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets all builder parameters to the properties of the provided style.build()
Builds the resulting 3D mesh style.effectsHints
(ILspEffectsHintStyle.EffectsHint... aEffectsHints) Specifies the effects hints to be added to the style.modulationColor
(Color aColor) Sets the color that is modulated with the 3D mesh.opacity
(float aOpacity) Sets the opacity (alpha) value of the modulation color for the 3D mesh.transparent
(boolean aTransparent) Sets whether or not the mesh is transparent.Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle.Builder
equals, hashCode
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
transparent
Sets whether or not the mesh is transparent.- Parameters:
aTransparent
- whether or not the mesh is transparent- Returns:
this
- See Also:
-
opacity
Sets the opacity (alpha) value of the modulation color for the 3D mesh.- Parameters:
aOpacity
- the alpha value. Must be contained in the [0,1] interval (0 is fully transparent, 1 is fully opaque).- Returns:
this
- See Also:
-
modulationColor
Sets the color that is modulated with the 3D mesh. For example using an mesh with gray-scale colors and a red modulation color will result in a resulting painted icon with red hues. The alpha value of the color is also used to determine the opacity of the mesh.Using a white color has no effect.
Note: If an opacity was set on this builder before it will be overwritten by the opacity of this color.- Parameters:
aColor
- the modulation color- Returns:
this
- See Also:
-
effectsHints
Description copied from interface:ILspEffectsHintStyle.Builder
Specifies the effects hints to be added to the style.- Specified by:
effectsHints
in interfaceILspEffectsHintStyle.Builder
- Parameters:
aEffectsHints
- the effects hints to be added to the style- Returns:
this
-
all
Sets all builder parameters to the properties of the provided style.- Specified by:
all
in classALspStyle.Builder<B extends TLsp3DMeshStyle.Builder<B>>
- Parameters:
aStyle
- the style to copy- Returns:
this
-
build
Builds the resulting 3D mesh style.- Specified by:
build
in classALspStyle.Builder<B extends TLsp3DMeshStyle.Builder<B>>
- Returns:
- the resulting 3D mesh style using the set parameters
-