public final class TLspRadarVideoStyle extends ALspStyle
radar video layer
.
Radar video styles can be created using the supplied TLspRadarVideoStyle.Builder
.
The following screenshot is an example of what a radar video layer might display:
getBackgroundColor()
(dark gray in the screenshot). It is possible to
use a translucent color so that any background data is visible through the
radar feed.
getBlipColor()
(green in the screenshot). After the sweep has passed
them, blips begin to fade into the background color over a time interval determined by
getBlipAfterglow()
.
getBlipAfterglowColor()
. This allows the user to visually
distinguish "fresh" blips from ones that are only still visible due to afterglow.
If the afterglow color is set to null, the blip color is always used and this
visual distinction will not be made.
getIntensity()
property can be used to bias the intensity of the
blips and bring out more contrast in the display. The default value is 1.
Higher values increase the intensity of the blips, lower values decrease it.
The intensity setting has no effect on blips which already have maximal
amplitude; it only makes blips with a lower amplitude appear brighter.
If the radar signal contains a lot of noise, getAmplitudeThreshold()
can be used to filter out cells which produced only a low amplitude. The threshold
is a normalized value: 0 means that all non-zero amplitudes are displayed, and
1 means that only cells which have the highest possible amplitude are kept.
The radar video feed can also be antialiased. This reduces "shimmering" effects
for feeds that have a lot of noise or other high-frequency detail. Antialiasing
incurs a performance penalty, obviously, and is therefore configurable by a
quality hint
.Modifier and Type | Class and Description |
---|---|
static class |
TLspRadarVideoStyle.AfterglowMode
Mode that determines how the
afterglow duration
is interpreted. |
static class |
TLspRadarVideoStyle.AntialiasingHint
Mode that determines the quality of the antialiasing applied to radar video feeds.
|
static class |
TLspRadarVideoStyle.Builder<B extends TLspRadarVideoStyle.Builder<B>>
Builder used to create
TLspRadarVideoStyle objects. |
Modifier and Type | Method and Description |
---|---|
TLspRadarVideoStyle.Builder<?> |
asBuilder()
Creates a new builder initialized with all the properties of this style.
|
boolean |
equals(Object o) |
double |
getAmplitudeThreshold()
Returns the minimum amplitude required for a blip to be displayed,
normalized into [0, 1] range.
|
TLspRadarVideoStyle.AntialiasingHint |
getAntialiasingHint()
Returns the amount of antialiasing to be applied to the radar video feed.
|
Color |
getBackgroundColor()
Returns the background color used to visualize the circular area covered by the radar.
|
double |
getBlipAfterglow()
Returns the afterglow duration of the blips.
|
Color |
getBlipAfterglowColor()
Returns the afterglow color used to visualize objects that were not detected by
the last pass of the radar but which are still visible due to afterglow.
|
TLspRadarVideoStyle.AfterglowMode |
getBlipAfterglowMode()
Determines the interpretation of the blip afterglow time.
|
Color |
getBlipColor()
Returns the blip color used to visualize the detected objects.
|
double |
getIntensity()
Returns the intensity of the blips.
|
int |
hashCode() |
boolean |
isTransparent()
Determines whether this style is transparent.
|
static TLspRadarVideoStyle.Builder<?> |
newBuilder()
Creates a new builder with the default values.
|
addStyleChangeListener, getZOrder, isCompatible, removeStyleChangeListener, style
public static TLspRadarVideoStyle.Builder<?> newBuilder()
public TLspRadarVideoStyle.Builder<?> asBuilder()
public Color getBlipColor()
public Color getBlipAfterglowColor()
public Color getBackgroundColor()
public double getBlipAfterglow()
afterglow mode
.
It is either measured in seconds or as the number of full 360 degree sweeps of the radar.public TLspRadarVideoStyle.AfterglowMode getBlipAfterglowMode()
TLspRadarVideoStyle.AfterglowMode.ABSOLUTE
,
the afterglow
is measured in seconds.
If set to
TLspRadarVideoStyle.AfterglowMode.RELATIVE
,
the afterglow is defined as a number of full 360 degree sweeps of the radar.public double getAmplitudeThreshold()
public double getIntensity()
public TLspRadarVideoStyle.AntialiasingHint getAntialiasingHint()
amplitude threshold
, antialiasing is
disabled by default. This should be fine for most data, but you can
enable antialiasing if you don't want to use the amplitude threshold or
if that alone does not solve all aliasing artifacts for your data.public boolean isTransparent()
ALspStyle
isTransparent
in class ALspStyle