Class TLspLOSCoverageStyle.Builder<B extends TLspLOSCoverageStyle.Builder<B>>
java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle.Builder<B>
com.luciad.tea.lightspeed.los.view.TLspLOSCoverageStyle.Builder<B>
- All Implemented Interfaces:
ILspEffectsHintStyle.Builder
,ILspWorldElevationStyle.Builder
- Enclosing class:
TLspLOSCoverageStyle
public static class TLspLOSCoverageStyle.Builder<B extends TLspLOSCoverageStyle.Builder<B>>
extends ALspStyle.Builder<B>
implements ILspWorldElevationStyle.Builder, ILspEffectsHintStyle.Builder
Builder for LOS coverage styles. The default LOS Coverage Style is painted above the ellipsoid and has a color map that is defined as follows:
- Unknown values are blue
- Invisible values (for all elevations) are completely transparent (r=0, g=0, b=0, a=0)
- Points in red areas need a minimum height of 0 metres to be visible
- Points in orange areas need a minimum height of 50 metres to be visible
- Points in yellow areas need a minimum height of 150 metres to be visible
- Points in green areas need a minimum height of 250 metres or more to be visible
- Since:
- 2012.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets all parameters on the builder based on the given LOS Coverage style.build()
Builds the style with the set parameters.colorMap
(TLcdColorMap aColorMap) Sets the color map.effectsHints
(ILspEffectsHintStyle.EffectsHint... aEffectsHints) Specifies the effects hints to be added to the style.elevationMode
(ILspWorldElevationStyle.ElevationMode aElevationMode) Specifies the elevation mode.invisibleColor
(Color aInvisibleColor) Sets the "invisible" value color, for LOS coverages of which points are invisible for all elevations.toString()
unknownColor
(Color aUnknownColor) Sets the "unknown" value color, for LOS coverages of which the outcome could not be determined.zOrder
(int aZOrder) Sets the Z-order of this style.Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle.Builder
equals, hashCode
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
zOrder
Sets the Z-order of this style. Styles should be painted from lowest to highest Z-order. Increasing the number of different Z-orders can negatively impact painting performance. By default, it is set to 0.- Parameters:
aZOrder
- the z order- Returns:
this
- Since:
- 2017.1.01
-
colorMap
Sets the color map. Should not benull
. This color map should be defined with levels in the range [-32768, 32767]. Note that even though the given color map also, technically, can define colors for theinvisible
andunknown
values, the colors for these values should be configured using theinvisibleColor
andunknownColor
method respectively. For color maps that explicitly contain theunknown value
an exception is made and thus will override the configured unknown color.- Parameters:
aColorMap
- the color map- Returns:
this
- Throws:
IllegalArgumentException
-if aColorMap==null
-
unknownColor
Sets the "unknown" value color, for LOS coverages of which the outcome could not be determined. Should not benull
- Parameters:
aUnknownColor
- a color for the "unknown" LOS value.- Returns:
this
- Throws:
IllegalArgumentException
-if aColor==null
-
invisibleColor
Sets the "invisible" value color, for LOS coverages of which points are invisible for all elevations. Should not benull
- Parameters:
aInvisibleColor
- a color for the "unknown" LOS value.- Returns:
this
- Throws:
IllegalArgumentException
-if aColor==null
-
elevationMode
Specifies the elevation mode. By default this is set toILspWorldElevationStyle.ElevationMode.ABOVE_ELLIPSOID
.- Specified by:
elevationMode
in interfaceILspWorldElevationStyle.Builder
- Parameters:
aElevationMode
- The elevation mode- Returns:
this
-
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 parameters on the builder based on the given LOS Coverage 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 TLspLOSCoverageStyle.Builder<B>>
- Parameters:
aLOScoverageStyle
- the style to copy from- Returns:
this
-
build
Builds the style with the set parameters.- Specified by:
build
in classALspStyle.Builder<B extends TLspLOSCoverageStyle.Builder<B>>
- Returns:
- the resulting style
-
toString
-