Class TLcyLspLASFormatAddOn
This add-on adds support for displaying LASer data in a Lightspeed view.
For performance reasons, you can limit the maximum number of decoded points per LAS file with the property "maxNumberOfPointsPerFile" in TLcyLASAddOn.cfg.
See the javadoc of TLcdLASModelDecoder.setMaxNumberOfPoints(long) for more details.
- Since:
- 2014.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ALcyLspFormatReturns a new data format for this add-on.protected final ALcyLspFormatcreateFormatWrapper(ALcyLspFormat aBaseFormat) Returns a new data format wrapper for this add-on.protected TLcyPreferencesToolCreates theTLcyPreferencesToolto be used by this add-on.voidplugInto(ILcyLucyEnv aLucyEnv) Creates and plugs in the add-on's format and preferences tool.voidunplugFrom(ILcyLucyEnv aLucyEnv) Unplugs the add-on's format and preferences tool.Methods inherited from class com.luciad.lucy.addons.lightspeed.ALcyLspFormatAddOn
createFormatTool, getFormatMethods inherited from class com.luciad.lucy.addons.ALcyPreferencesAddOn
getLongPrefix, getLucyEnv, getPreferences, getPreferencesTool, getShortPrefixMethods inherited from class com.luciad.lucy.addons.ALcyAddOn
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
-
Constructor Details
-
TLcyLspLASFormatAddOn
public TLcyLspLASFormatAddOn()Default constructor for the Lightspeed LAS AddOn.
-
-
Method Details
-
unplugFrom
Description copied from class:ALcyLspFormatAddOnUnplugs the add-on's format and preferences tool.- Overrides:
unplugFromin classALcyLspFormatAddOn- Parameters:
aLucyEnv- the Lucy environment- See Also:
-
plugInto
Description copied from class:ALcyLspFormatAddOnCreates and plugs in the add-on's format and preferences tool.- Overrides:
plugIntoin classALcyLspFormatAddOn- Parameters:
aLucyEnv- the Lucy environment to plug into- See Also:
-
createPreferencesTool
Description copied from class:ALcyPreferencesAddOnCreates the
TLcyPreferencesToolto be used by this add-on. Overwriting this method for example allows to register additionalILcyPropertyConverters for (complex) custom properties, to make sure they are correctly decoded from the add-on's configuration file and/or saved to the workspace. Note that this isn't required for simple properties such asString,int,double, etc.The default implementation creates a new tool based on the
ALcyAddOn.getConfigSourceName()and the add-on's prefixes.- Overrides:
createPreferencesToolin classALcyPreferencesAddOn- Returns:
- the created
TLcyPreferencesTool.
-
createBaseFormat
Description copied from class:ALcyLspFormatAddOnReturns 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:
createBaseFormatin classALcyLspFormatAddOn- Returns:
- a new format for this add-on
-
createFormatWrapper
Description copied from class:ALcyLspFormatAddOnReturns 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:
createFormatWrapperin classALcyLspFormatAddOn- Parameters:
aBaseFormat- the base format to wrap- Returns:
- a new format for this add-on
- See Also:
-