public class TLcyViewshedBackEnd extends ALcyTEABackEnd
To add support for custom models, override the createViewshed(com.luciad.lucy.util.properties.ALcyProperties, java.util.List)
ALcyTEABackEnd
Modifier and Type | Field and Description |
---|---|
static String |
ALTITUDE_TYPE_KEY
The property name for the altitude type of a viewshed.
|
static String |
ARC_ANGLE_KEY
The property name for a viewshed's arc angle.
|
static String |
AREA_BOUNDS_LIST_KEY
The property name for the list of areas used for the viewshed calculations.
|
static String |
EYEPOINT_KEY
The property name for an eyepoint.
|
static String |
EYEPOINT_REFERENCE_KEY
The property name for model reference of the property value represented by
EYEPOINT_KEY
The associated property value is of type ILcdGeoReference . |
static String |
FIXED_HEIGHT_OFFSET_KEY
The key used to identify the fixed height offset which is used when sampling the generated
viewshed using a viewshed raster.
|
static String |
MAX_VERTICAL_ANGLE_KEY
The property name for a viewshed's maximum vertical angle.
|
static String |
MIN_VERTICAL_ANGLE_KEY
The property name for a viewshed's minimum vertical angle.
|
static String |
MODELS_KEY
The property name of the models which will be used to calculate the viewshed.
|
static String |
START_ANGLE_KEY
The property name for a viewshed's start angle.
|
static String |
VIEWSHED_KEY
The property name for the viewshed.
|
static String |
VIEWSHED_MODEL_KEY
The property name for the model of the viewshed.
|
ALTITUDE_PROVIDER_KEY, DISPLAY_NAME_KEY, MODEL_DISPLAY_NAME_KEY, MODEL_REFERENCE_KEY, QUALITY_KEY, SHAPE_KEY, SHAPE_REFERENCE_KEY, SOURCE_NAME_KEY, TARGET_REFERENCE_KEY, VIEW_KEY
Constructor and Description |
---|
TLcyViewshedBackEnd(ILcyLucyEnv aLucyEnv)
Default constructor for the viewshed back-end.
|
Modifier and Type | Method and Description |
---|---|
ILcdViewshed |
createCompositeViewshed(List<ILcdViewshed> aViewshedList)
Creates a composite for a given list of viewsheds.
|
ILcdModelDescriptor |
createModelDescriptor(ALcyProperties aProperties)
Returns a model descriptor suitable for the add-on's used models.
|
TLcdViewshedMultilevelRaster |
createMultilevelRaster(ALcyProperties aProperties)
Creates a multilevel raster for a given properties object.
|
ILcdViewshed |
createViewshed(ALcyProperties aProperties,
List<ILcdModel> aUsedModelsSFCT)
Creates a viewshed for a single eyepoint.
|
createAltitudeDescriptor, createAltitudeMatrixViewFactory, createAltitudeProvider, getLucyEnv
public static final String EYEPOINT_KEY
ILcdPoint
.public static final String EYEPOINT_REFERENCE_KEY
EYEPOINT_KEY
The associated property value is of type ILcdGeoReference
.public static final String AREA_BOUNDS_LIST_KEY
TLcyDomainObjectContext
instances, each with an ILcdBounded
instance as its domain object.public static final String MODELS_KEY
ILcdModel
spublic static final String VIEWSHED_KEY
ILcdViewshed
public static final String VIEWSHED_MODEL_KEY
ILcdModel
public static final String ALTITUDE_TYPE_KEY
String
. It
can be either "REGULAR" or "SUN_POSITION".public static final String START_ANGLE_KEY
public static final String ARC_ANGLE_KEY
public static final String MIN_VERTICAL_ANGLE_KEY
public static final String MAX_VERTICAL_ANGLE_KEY
public static final String FIXED_HEIGHT_OFFSET_KEY
public TLcyViewshedBackEnd(ILcyLucyEnv aLucyEnv)
aLucyEnv
- the Lucy environment for which the back-end will be usedpublic ILcdModelDescriptor createModelDescriptor(ALcyProperties aProperties)
createModelDescriptor
in class ALcyTEABackEnd
aProperties
- a properties object with the following parameters:
ALcyTEABackEnd.SOURCE_NAME_KEY
: The source name that was used to retrieve the data
from, use null
to indicate that it was
created from scratch.
ALcyTEABackEnd.DISPLAY_NAME_KEY
: the display name that the model descriptor should
use @return a suitable model descriptor
public ILcdViewshed createViewshed(ALcyProperties aProperties, List<ILcdModel> aUsedModelsSFCT)
Creates a viewshed for a single eyepoint.
The following properties are supplied in
the aProperties
object:
MODELS_KEY
: An array of models for which the viewshed calculation occurs.EYEPOINT_KEY
: The eyepoint which for which a viewshedneeds to be createdEYEPOINT_REFERENCE_KEY
: The reference of the eyepoint which for which a viewshed
needs to be createdAREA_BOUNDS_LIST_KEY
: A list of bounds(as
TLcyDomainObjectContext
instances that should be used for the viewshed calculations.VIEWSHED_MODEL_KEY
: The reference of the model in which the viewshed resides.
This is not the same as the reference of the actual viewshed.ALTITUDE_TYPE_KEY
: The altitude type of the given eyepointMIN_VERTICAL_ANGLE_KEY
, the minumum vertical angle (used for cone of silence)MAX_VERTICAL_ANGLE_KEY
, the maximum vertical angle (used for cone of silence)START_ANGLE_KEY
, the start angle (used for cone of silence)ARC_ANGLE_KEY
, the arc angle (used for cone of silence)ALcyTEABackEnd.QUALITY_KEY
, the step size in meters for terrainaProperties
- A properties file containing the properties described above.aUsedModelsSFCT
- An empty list of models that gets filled at the end of this method with
the models that were used to create this viewshed.public ILcdViewshed createCompositeViewshed(List<ILcdViewshed> aViewshedList)
aViewshedList
- A list of viewsheds that were computed using createViewshed(com.luciad.lucy.util.properties.ALcyProperties, java.util.List)
.public TLcdViewshedMultilevelRaster createMultilevelRaster(ALcyProperties aProperties)
The following properties are supplied in
the aProperties
object:
MODELS_KEY
: An array of models for which the viewshed calculation occurs.AREA_BOUNDS_LIST_KEY
: A list of bounds(as
TLcyDomainObjectContext
instances that should be used for the viewshed calculations.VIEWSHED_MODEL_KEY
: The reference of the model in which the viewshed resides.
This is not the same as the reference of the actual viewshed.ALcyTEABackEnd.QUALITY_KEY
, the step size in meters for terrainFIXED_HEIGHT_OFFSET_KEY
, the offset (in meters) with which the viewshed should
be sampled above terrain.VIEWSHED_KEY
, the viewshed for which a viewshed raster should be createdaProperties
- A properties file containing the properties described above.TLcdViewshedMultilevelRaster
for the given
properties. This method returns null if the viewshed was null. This is usually due to
the viewshed being cancelled.