Class TLspLOSCoverageStyle
java.lang.Object
com.luciad.view.lightspeed.style.ALspStyle
com.luciad.tea.lightspeed.los.view.TLspLOSCoverageStyle
- All Implemented Interfaces:
ILspEffectsHintStyle
,ILspWorldElevationStyle
,ILspStyler
public class TLspLOSCoverageStyle
extends ALspStyle
implements ILspWorldElevationStyle, ILspEffectsHintStyle
The LOS Coverage style. This style is used by the TLspLOSCoveragePainter
to
visualize a LOS calculation.
A LOS Coverage style defines the following things:
- The color map of a LOS Coverage
- The unknown color of a LOS Coverage, indicating the color for unknown values
- The invisible color of a LOS Coverage, indicating the color for invisible areas
- Whether or not the LOS Coverage should be draped.
- The order of painting in case there are overlapping LOS Coverages.
NOTE: Styles are generally immutable, and this style is no exception. You shouldn't
modify the color map after the style has been created, but instead create
a new TLspLOSCoverageStyle
instance with a new color map instance.
- Since:
- 2012.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for LOS coverage styles.Nested classes/interfaces inherited from interface com.luciad.view.lightspeed.style.ILspEffectsHintStyle
ILspEffectsHintStyle.EffectsHint
Nested classes/interfaces inherited from interface com.luciad.view.lightspeed.style.ILspWorldElevationStyle
ILspWorldElevationStyle.ElevationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new builder initialized with all the properties of this style.boolean
Gets the color map of this LOS Coverage Style.Returns the effects hints specified for this style.Returns the elevation mode of this style.Returns the color used to display "invisible" los elevation valuesReturns the unknown color used to display "unknown" los elevation valuesint
hashCode()
boolean
isCompatible
(TLspPaintPass aPaintPass) Utility method to determine whether the style is compatible with the given paint pass.boolean
Determines whether this style is transparent.static TLspLOSCoverageStyle.Builder
<?> Creates a new builder with the default values.Methods inherited from class com.luciad.view.lightspeed.style.ALspStyle
addStyleChangeListener, getZOrder, removeStyleChangeListener, style
-
Constructor Details
-
TLspLOSCoverageStyle
-
-
Method Details
-
newBuilder
Creates a new builder with the default values.- Returns:
- the new builder.
-
asBuilder
Creates a new builder initialized with all the properties of this style. -
getColorMap
Gets the color map of this LOS Coverage Style.- Returns:
- the color map
-
getUnknownColor
Returns the unknown color used to display "unknown" los elevation values- Returns:
- the unknown color
-
getInvisibleColor
Returns the color used to display "invisible" los elevation values- Returns:
- the invisible color
-
isTransparent
public boolean isTransparent()Determines whether this style is transparent.
The return value of this method depends on the color map of the style. If the color map contains a single transparent color, or has a master opacity value lower than 255
- Specified by:
isTransparent
in classALspStyle
- Returns:
- whether or not this style is transparent
-
getElevationMode
Description copied from interface:ILspWorldElevationStyle
Returns the elevation mode of this style.- Specified by:
getElevationMode
in interfaceILspWorldElevationStyle
- Returns:
- The elevation mode.
-
getEffectsHints
Description copied from interface:ILspEffectsHintStyle
Returns the effects hints specified for this style.- Specified by:
getEffectsHints
in interfaceILspEffectsHintStyle
- Returns:
- the effects hints specified for this style
-
isCompatible
Description copied from class:ALspStyle
Utility method to determine whether the style is compatible with the given paint pass. A style and paint pass are compatible if they use or request the same terrain and transparency properties.- Overrides:
isCompatible
in classALspStyle
- Parameters:
aPaintPass
- the paint pass- Returns:
true
if the style can be used in the given paint pass,false otherwise
.
-
equals
-
hashCode
public int hashCode()
-