Package com.luciad.util.height
Class TLcdImageModelHeightProviderFactory
java.lang.Object
com.luciad.util.height.ALcdModelHeightProviderFactory
com.luciad.util.height.ALcdRasterModelHeightProviderFactory
com.luciad.util.height.TLcdImageModelHeightProviderFactory
- All Implemented Interfaces:
ILcdModelHeightProviderFactory
This class provides a method to create an
ILcdHeightProvider when an
ILcdModel is given that contains elements of the type
ALcdBasicImage, ALcdImageMosaic or
ALcdMultilevelImageMosaic.
When the model contains elements of type ILcdRaster or
ILcdMultilevelRaster, the factory will fall back to the legacy implementation in
TLcdRasterModelHeightProviderFactory
The height providers created by this factory are thread-safe. However when you need to retrieve the height at many
locations its usually more efficient to create a new height provider. This avoids cache conflicts between different
threads need different image data (e.g. tiles) to retrieve their heights.- Since:
- 2014.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey used to pass a user-defined imaging engine to theTLcdImageHeightProviderscreated by this factory.Fields inherited from class com.luciad.util.height.ALcdRasterModelHeightProviderFactory
KEY_INTERPOLATE_DATA, KEY_MAX_VALID_HEIGHT, KEY_MIN_VALID_HEIGHT, KEY_PIXEL_DENSITYFields inherited from interface com.luciad.util.height.ILcdModelHeightProviderFactory
KEY_GEO_REFERENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanCreateHeightProvider(ILcdModel aModel) Check if a height provider can be created from the givenILcdModel.protected ILcdHeightProvidercreateModelElementHeightProvider(Object aElement, Map<String, Object> aRequiredPropertiesSFCT, Map<String, Object> aOptionalProperties) Creates anILcdHeightProviderfor the given model element.Methods inherited from class com.luciad.util.height.ALcdRasterModelHeightProviderFactory
transformPropertiesMethods inherited from class com.luciad.util.height.ALcdModelHeightProviderFactory
createHeightProvider
-
Field Details
-
KEY_IMAGING_ENGINE
Key used to pass a user-defined imaging engine to theTLcdImageHeightProviderscreated by this factory. If defined, the property should be aALcdImagingEngine. If not defined, a default imaging engine will be created for every height provider factory.- See Also:
-
-
Constructor Details
-
TLcdImageModelHeightProviderFactory
public TLcdImageModelHeightProviderFactory()
-
-
Method Details
-
createModelElementHeightProvider
protected ILcdHeightProvider createModelElementHeightProvider(Object aElement, Map<String, Object> aRequiredPropertiesSFCT, Map<String, throws TLcdMissingPropertyException, TLcdUnsupportedPropertyExceptionObject> aOptionalProperties) Description copied from class:ALcdModelHeightProviderFactoryCreates anILcdHeightProviderfor the given model element.- Specified by:
createModelElementHeightProviderin classALcdRasterModelHeightProviderFactory- Parameters:
aElement- a model element.aRequiredPropertiesSFCT- the required properties.aOptionalProperties- the optional properties.- Returns:
- an
ILcdHeightProviderfor the given model element ornullif noILcdHeightProvidercan be created. - Throws:
TLcdMissingPropertyException- when a property is missing that is necessary to create theILcdHeightProvider.TLcdUnsupportedPropertyException- when a required property was never used while creating theILcdHeightProvider.
-
canCreateHeightProvider
Description copied from class:ALcdRasterModelHeightProviderFactoryCheck if a height provider can be created from the givenILcdModel. The default implementation only returnstrueif the model contains aTLcdRasterModelDescriptoror aTLcdMultilevelRasterModelDescriptor, andfalseotherwise.- Overrides:
canCreateHeightProviderin classALcdRasterModelHeightProviderFactory- Parameters:
aModel- the given model.- Returns:
trueif a height provider can be created from the given model andfalseotherwise.
-