public class SensorDetailHandler extends CotDetailHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AZIMUTH_ATTRIBUTE |
static java.lang.String |
DISPLAY_LABELS |
static java.lang.String |
ELEVATION_ATTRIBUTE |
static java.lang.String |
FOV_ALPHA |
static java.lang.String |
FOV_ATTRIBUTE |
static java.lang.String |
FOV_BLUE |
static java.lang.String |
FOV_GREEN |
static java.lang.String |
FOV_RED |
static java.lang.String |
HIDE_FOV |
static java.lang.String |
MAG_REF_ATTRIBUTE |
static int |
MAX_SENSOR_RANGE |
static java.lang.String |
MODEL_ATTRIBUTE |
static java.lang.String |
RANGE_ATTRIBUTE |
static java.lang.String |
RANGE_LINES_ATTRIBUTE |
static java.lang.String |
ROLL_ATTRIBUTE |
static java.lang.String |
SENSOR_FOV |
static java.lang.String |
STROKE_COLOR |
static java.lang.String |
STROKE_WEIGHT |
static java.lang.String |
TAG |
static java.lang.String |
UID_POSTFIX |
static java.lang.String |
VFOV_ATTRIBUTE |
Modifier and Type | Method and Description |
---|---|
static SensorFOV |
addFovToMap(Marker marker,
double azimuth,
double fov,
double range,
float[] color,
boolean visible) |
static SensorFOV |
addFovToMap(Marker marker,
double azimuth,
double fov,
double range,
float[] color,
boolean visible,
boolean bLabels,
double rangeLines) |
static MapGroup |
getOrAddMapGroup() |
static boolean |
hasFoV(MapItem item) |
boolean |
isSupported(MapItem item,
CotEvent event,
CotDetail detail)
Check if this handler supports this item
Used to filter out certain types from being processed by a handler
|
static void |
selectFOVEndPoint(Marker m,
boolean showDetails,
boolean addBackListener) |
static void |
selectFOVEndPoint(Marker m,
boolean showDetails,
java.lang.String prompt,
java.lang.String intentAction,
boolean addBackListener) |
boolean |
toCotDetail(MapItem item,
CotEvent event,
CotDetail detail)
Convert map item metadata to a CoT detail
|
CommsMapComponent.ImportResult |
toItemMetadata(MapItem item,
CotEvent event,
CotDetail detail)
Convert CoT event detail to map item metadata
|
getDetailNames, getMapItem, getPoint, parseDouble, parseInt
public static final java.lang.String TAG
public static final java.lang.String SENSOR_FOV
public static final java.lang.String RANGE_ATTRIBUTE
public static final java.lang.String RANGE_LINES_ATTRIBUTE
public static final java.lang.String AZIMUTH_ATTRIBUTE
public static final java.lang.String FOV_ATTRIBUTE
public static final java.lang.String MAG_REF_ATTRIBUTE
public static final java.lang.String HIDE_FOV
public static final java.lang.String DISPLAY_LABELS
public static final java.lang.String FOV_ALPHA
public static final java.lang.String FOV_RED
public static final java.lang.String FOV_GREEN
public static final java.lang.String FOV_BLUE
public static final java.lang.String STROKE_COLOR
public static final java.lang.String STROKE_WEIGHT
public static final java.lang.String ROLL_ATTRIBUTE
public static final java.lang.String VFOV_ATTRIBUTE
public static final java.lang.String MODEL_ATTRIBUTE
public static final java.lang.String ELEVATION_ATTRIBUTE
public static final int MAX_SENSOR_RANGE
public static final java.lang.String UID_POSTFIX
public boolean isSupported(MapItem item, CotEvent event, CotDetail detail)
CotDetailHandler
isSupported
in class CotDetailHandler
item
- Map itemevent
- CoT Eventdetail
- Associated CoT detailpublic static boolean hasFoV(MapItem item)
public boolean toCotDetail(MapItem item, CotEvent event, CotDetail detail)
CotDetailHandler
toCotDetail
in class CotDetailHandler
item
- Map item to readevent
- Item's associated CoT eventdetail
- The CoT event root detail (add to this)public CommsMapComponent.ImportResult toItemMetadata(MapItem item, CotEvent event, CotDetail detail)
CotDetailHandler
toItemMetadata
in class CotDetailHandler
item
- Map itemevent
- Item's associated CoT eventdetail
- The detail associated with this handler (read from this)CommsMapComponent.ImportResult.SUCCESS
if handled successfully
CommsMapComponent.ImportResult.FAILURE
if handled but failed
CommsMapComponent.ImportResult.IGNORE
if not handled or N/A
CommsMapComponent.ImportResult.DEFERRED
if we should try again laterpublic static MapGroup getOrAddMapGroup()
public static SensorFOV addFovToMap(Marker marker, double azimuth, double fov, double range, float[] color, boolean visible)
public static SensorFOV addFovToMap(Marker marker, double azimuth, double fov, double range, float[] color, boolean visible, boolean bLabels, double rangeLines)
public static void selectFOVEndPoint(Marker m, boolean showDetails, boolean addBackListener)
public static void selectFOVEndPoint(Marker m, boolean showDetails, java.lang.String prompt, java.lang.String intentAction, boolean addBackListener)