public class ViewShedReceiver
extends android.content.BroadcastReceiver
Modifier and Type | Class and Description |
---|---|
static class |
ViewShedReceiver.VsdLayer |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_DISMISS_VIEWSHED
Action to dismiss the viewshed overlay.
|
static java.lang.String |
ACTION_DISMISS_VIEWSHED_LINE |
static java.lang.String |
ACTION_SHOW_VIEWSHED
Action to show the viewshed overlay.
|
static java.lang.String |
ACTION_SHOW_VIEWSHED_LINE |
static java.lang.String |
EXTRA_ELEV_CIRCLE |
static java.lang.String |
EXTRA_ELEV_OPACITY
The opacity value for the viewshed overlay
|
static java.lang.String |
EXTRA_ELEV_POINT
The point of interest for viewshed analysis.
|
static java.lang.String |
EXTRA_ELEV_POINT2
The point of interest for viewshed analysis.
|
static java.lang.String |
EXTRA_ELEV_RADIUS
The radius in meters for how far around the center point the viewshed
should be calculated.
|
static java.lang.String |
EXTRA_ELEV_THRESHOLD
The elevation threshold value for the viewshed, in meters MSL.
|
static java.lang.String |
EXTRA_LINE_SAMPLES |
static java.lang.String |
EXTRA_RESOLUTION |
static java.lang.String |
SHOWING_LINE |
static java.lang.String |
UPDATE_VIEWSHED_INTENSITY
Action to update the viewshed intensity.
|
static java.lang.String |
VIEWSHED_LINE_UID_SEPERATOR |
static java.lang.String |
VIEWSHED_PREFERENCE_CIRCULAR_VIEWSHED |
static java.lang.String |
VIEWSHED_PREFERENCE_COLOR_INTENSITY_KEY
viewshed related preferences
|
static java.lang.String |
VIEWSHED_PREFERENCE_HEIGHT_ABOVE_KEY |
static java.lang.String |
VIEWSHED_PREFERENCE_RADIUS_KEY |
static java.lang.String |
VIEWSHED_UID
The UID of the
MapItem of interest for viewshed analysis. |
static java.lang.String |
VIEWSHED_UID2 |
Modifier and Type | Method and Description |
---|---|
static ViewShedReceiver |
getInstance() |
static java.util.HashMap<java.lang.String,java.util.ArrayList<ViewShedReceiver.VsdLayer>> |
getSingleVsdLayerMap() |
static java.util.HashMap<java.lang.String,java.util.ArrayList<ViewShedReceiver.VsdLayer>> |
getVsdLineLayerMap() |
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public static final java.lang.String ACTION_SHOW_VIEWSHED
Intent
should include
one of the extras:
In the event that more than one is included, the threshold elevation
argument will be selected using the above order.
This action may be posted after the viewshed is made visible to update the viewshed elevation threshold value.
public static final java.lang.String ACTION_SHOW_VIEWSHED_LINE
public static final java.lang.String ACTION_DISMISS_VIEWSHED
public static final java.lang.String ACTION_DISMISS_VIEWSHED_LINE
public static final java.lang.String UPDATE_VIEWSHED_INTENSITY
public static final java.lang.String EXTRA_ELEV_POINT
GeoPoint
instance. If the associated point does not have a
valid altitude, the elevation model will be queried.public static final java.lang.String EXTRA_ELEV_POINT2
GeoPoint
instance. If the associated point does not have a
valid altitude, the elevation model will be queried.public static final java.lang.String EXTRA_ELEV_RADIUS
public static final java.lang.String EXTRA_RESOLUTION
public static final java.lang.String EXTRA_LINE_SAMPLES
public static final java.lang.String EXTRA_ELEV_OPACITY
public static final java.lang.String EXTRA_ELEV_CIRCLE
public static final java.lang.String VIEWSHED_UID
MapItem
of interest for viewshed analysis. The
associated value should be an instance of String
that is the
MapItem
UID. If the GeoPoint
associated with the
MapItem
does not have a valid altitude, the elevation
model will be queried at the point.public static final java.lang.String VIEWSHED_UID2
public static final java.lang.String SHOWING_LINE
public static final java.lang.String EXTRA_ELEV_THRESHOLD
Double.NaN
indicates an invalid value.public static final java.lang.String VIEWSHED_PREFERENCE_COLOR_INTENSITY_KEY
public static final java.lang.String VIEWSHED_PREFERENCE_CIRCULAR_VIEWSHED
public static final java.lang.String VIEWSHED_PREFERENCE_RADIUS_KEY
public static final java.lang.String VIEWSHED_PREFERENCE_HEIGHT_ABOVE_KEY
public static final java.lang.String VIEWSHED_LINE_UID_SEPERATOR
public static ViewShedReceiver getInstance()
public static java.util.HashMap<java.lang.String,java.util.ArrayList<ViewShedReceiver.VsdLayer>> getSingleVsdLayerMap()
public static java.util.HashMap<java.lang.String,java.util.ArrayList<ViewShedReceiver.VsdLayer>> getVsdLineLayerMap()
public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver