Class TLcyLspShapeVisibilityFormatAddOn
This add-on provides the visualization code for the point observers and observation results created by the TLcyShapeVisibilityAddOn
.
- Since:
- 2019.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
The value in the visibility calculation results representing invisible points.static final double
The value in the visibility calculation results representing not computed points.static final double
The value in the visibility calculation results representing outside of the shape points.static final double
The value in the visibility calculation results representing uncertain points.static final double
The value in the visibility calculation results representing visible points. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ALcyLspFormat
Returns a new data format for this add-on.protected final ALcyLspFormat
createFormatWrapper
(ALcyLspFormat aBaseFormat) Returns a new data format wrapper for this add-on.void
plugInto
(ILcyLucyEnv aLucyEnv) Creates and plugs in the add-on's format and preferences tool.Methods inherited from class com.luciad.lucy.addons.lightspeed.ALcyLspFormatAddOn
createFormatTool, getFormat, unplugFrom
Methods inherited from class com.luciad.lucy.addons.ALcyPreferencesAddOn
createPreferencesTool, getLongPrefix, getLucyEnv, getPreferences, getPreferencesTool, getShortPrefix
Methods inherited from class com.luciad.lucy.addons.ALcyAddOn
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
-
Field Details
-
VISIBLE_VALUE
public static final double VISIBLE_VALUEThe value in the visibility calculation results representing visible points.
All the visibility calculation results use a a
ILcdVisibilityMatrixView.getVisibilityDescriptor()
with the same special values interpretation. For convenience, those special values are exposed here as a constant. You can use them to customize the color map in the default style file of this add-on, or through the API.- See Also:
-
INVISIBLE_VALUE
public static final double INVISIBLE_VALUEThe value in the visibility calculation results representing invisible points.
All the visibility calculation results use a a
ILcdVisibilityMatrixView.getVisibilityDescriptor()
with the same special values interpretation. For convenience, those special values are exposed here as a constant. You can use them to customize the color map in the default style file of this add-on, or through the API.- See Also:
-
UNCERTAIN_VALUE
public static final double UNCERTAIN_VALUEThe value in the visibility calculation results representing uncertain points.
All the visibility calculation results use a a
ILcdVisibilityMatrixView.getVisibilityDescriptor()
with the same special values interpretation. For convenience, those special values are exposed here as a constant. You can use them to customize the color map in the default style file of this add-on, or through the API.- See Also:
-
OUTSIDE_SHAPE_VALUE
public static final double OUTSIDE_SHAPE_VALUEThe value in the visibility calculation results representing outside of the shape points.
All the visibility calculation results use a a
ILcdVisibilityMatrixView.getVisibilityDescriptor()
with the same special values interpretation. For convenience, those special values are exposed here as a constant. You can use them to customize the color map in the default style file of this add-on, or through the API.- See Also:
-
NOT_COMPUTED_VALUE
public static final double NOT_COMPUTED_VALUEThe value in the visibility calculation results representing not computed points.
All the visibility calculation results use a a
ILcdVisibilityMatrixView.getVisibilityDescriptor()
with the same special values interpretation. For convenience, those special values are exposed here as a constant. You can use them to customize the color map in the default style file of this add-on, or through the API.- See Also:
-
-
Constructor Details
-
TLcyLspShapeVisibilityFormatAddOn
public TLcyLspShapeVisibilityFormatAddOn()Default constructor
-
-
Method Details
-
plugInto
Description copied from class:ALcyLspFormatAddOn
Creates and plugs in the add-on's format and preferences tool.- Overrides:
plugInto
in classALcyLspFormatAddOn
- Parameters:
aLucyEnv
- the Lucy environment to plug into- See Also:
-
createBaseFormat
Description copied from class:ALcyLspFormatAddOn
Returns a new data format for this add-on. Override this method to extend the default format with new functionality.
For example, to alter the icon of the layers of this format, you can decorate the layer factory created in the format:
@Override protected ALcyLspFormat createBaseFormat() { return new ALcyLspFormatWrapper(super.createBaseFormat()){ @Override protected ILspLayerFactory createLayerFactory(){ final ILspLayerFactory delegate = super.createLayerFactory(); return new ILspLayerFactory(){ @Override public boolean canCreateLayers(ILcdModel aModel){ return delegate.canCreateLayers(aModel); } @Override public Collection<ILspLayer> createLayers(ILcdModel aModel){ Collection<ILspLayer> layers = delegate.createLayers(aModel); for(ILspLayer layer : layers){ ILcdIcon icon = ...; layer.setIcon(icon) } return layers; } } } } }
- Specified by:
createBaseFormat
in classALcyLspFormatAddOn
- Returns:
- a new format for this add-on
-
createFormatWrapper
Description copied from class:ALcyLspFormatAddOn
Returns a new data format wrapper for this add-on. A format wrapper extends the base format with aspects such as safe guarding, etc.
Overriding this method of an existing add-on should be done with extreme care as add-ons typically rely on the wrappers that should be present (e.g. a safe guard).
- Specified by:
createFormatWrapper
in classALcyLspFormatAddOn
- Parameters:
aBaseFormat
- the base format to wrap- Returns:
- a new format for this add-on
- See Also:
-