Package com.luciad.util.measure
Class TLcdImageModelMeasureProviderFactory
java.lang.Object
com.luciad.util.measure.TLcdImageModelMeasureProviderFactory
- All Implemented Interfaces:
ILcdModelMeasureProviderFactory
@LcdService(service=ILcdModelMeasureProviderFactory.class,
priority=20000)
public class TLcdImageModelMeasureProviderFactory
extends Object
implements ILcdModelMeasureProviderFactory
This model measure provider factory makes it possible to create an ALcdMeasureProvider for models containing elements of the ALcdImage type. The
image also needs a measurement band semantics. The following ALcdImage sub-types are supported:
The resulting ALcdMeasureProvider will return multiple measures if the model for which it was created
contains multiple images.
It is possible to specify a different imaging engine than the
default one using setImagingEngine.
Note that this factory only supports models containing ALcdImage instances. So it will ignore
model elements of other types like ILcdRaster or ILcdMultilevelRaster. It will also only handle
models with an ILcdImageModelDescriptor.
- Since:
- 2015.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateMeasureProvider(ILcdModel aModel) Creates a new measure provider, based on the given model, ornullif no measure provider can be created for the given model.Returns the imaging engine to use to retrieve the pixel values from the images.voidsetImagingEngine(ALcdImagingEngine aImagingEngine) Sets the imaging engine to use to retrieve the pixel values from the images.
-
Constructor Details
-
TLcdImageModelMeasureProviderFactory
public TLcdImageModelMeasureProviderFactory()
-
-
Method Details
-
getImagingEngine
Returns the imaging engine to use to retrieve the pixel values from the images. When this method returnsnull, a default imaging engine is used.- Returns:
- the imaging engine. Can be
null. - See Also:
-
setImagingEngine
Sets the imaging engine to use to retrieve the pixel values from the images. Can benull. In that case a default imaging engine is used.- Parameters:
aImagingEngine- the imaging engine to use to retrieve the pixel values. Can benull.
-
createMeasureProvider
Description copied from interface:ILcdModelMeasureProviderFactoryCreates a new measure provider, based on the given model, ornullif no measure provider can be created for the given model.- Specified by:
createMeasureProviderin interfaceILcdModelMeasureProviderFactory- Parameters:
aModel- a model.- Returns:
- a measure provider, or
nullif no measure provider can be created for the given model.
-