Class TLspNITFLayerFactory
java.lang.Object
com.luciad.format.nitf.lightspeed.TLspNITFLayerFactory
- All Implemented Interfaces:
ILspLayerFactory
@LcdService(service=ILspLayerFactory.class,
priority=20000)
public class TLspNITFLayerFactory
extends Object
implements ILspLayerFactory
The default layer factory for NITF models. All models created by the NITF model decoder are supported.
This layer factory returns a layer tree node with two child layers:
- A layer responsible for painting the vector data from the NITF model which uses a
TLspCGMStyler
. - A layer responsible for painting the raster data from the NITF model.
Both child layers will have the same model, which is the model passed to the createLayers(ILcdModel)
method.
The layer tree node uses a TLcdModelTreeNode
which re-uses the model descriptor from the model passed to the createLayers(ILcdModel)
method.
- Since:
- 2019.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canCreateLayers
(ILcdModel aModel) Determines whether or not this layer factory is capable of creating layers for the given model.createLayers
(ILcdModel aModel) Creates one or moreILspLayer
objects for the given model.
-
Constructor Details
-
TLspNITFLayerFactory
public TLspNITFLayerFactory()
-
-
Method Details
-
canCreateLayers
Description copied from interface:ILspLayerFactory
Determines whether or not this layer factory is capable of creating layers for the given model. If this method returnsfalse
, the result of callingILspLayerFactory.createLayers(com.luciad.model.ILcdModel)
with the same parameters is undefined.- Specified by:
canCreateLayers
in interfaceILspLayerFactory
- Parameters:
aModel
- the model for which layers should be created- Returns:
true
if this factory can create layers foraModel
, orfalse
otherwise
-
createLayers
Description copied from interface:ILspLayerFactory
Creates one or moreILspLayer
objects for the given model. Note that this method should not be called ifILspLayerFactory.canCreateLayers(com.luciad.model.ILcdModel)
returnsfalse
; the results are undefined in this case. In most typical scenarios, this method will only create a singleILspLayer
instances for a given model. In such cases, theALspSingleLayerFactory
provides a convenient abstract base class for layer factory implementations. An example of when it might be useful to return multiple layers is a model that describes objects moving along a certain trajectory. The layer factory might return one layer which represents the trajectories as polylines, and another which represents the current positions of the objects as point icons.- Specified by:
createLayers
in interfaceILspLayerFactory
- Parameters:
aModel
- the model for which layers should be created- Returns:
- a collection of layers representing the given model
-