public class TLcdEarthClippedRasterAssetCodec extends TLcdEarthRasterAssetCodec
TLcdEarthClippedRasterAsset
objects.TYPE_NAME
Constructor and Description |
---|
TLcdEarthClippedRasterAssetCodec() |
TLcdEarthClippedRasterAssetCodec(ILcdEarthNamedModelDecoderFactory aNamedModelDecoderFactory) |
Modifier and Type | Method and Description |
---|---|
boolean |
canDecodeAsset(Properties aProperties)
Returns true if this codec can create an ILcdEarthAsset based on the given
Properties object.
|
boolean |
canEncodeAsset(ILcdEarthAsset aAsset)
Returns true if this codec can create a Properties object for the
given ILcdEarthAsset.
|
protected TLcdEarthRasterAsset |
createAsset(Properties aProperties,
String aSource,
ILcdModelDecoder aModelDecoder,
ILcdBounds aBounds,
ILcdEarthTileSetCoverage.CoverageType aCoverageType,
double aPixelDensity,
Date aDate)
Creates an raster asset with the given parameters.
|
Properties |
encodeAsset(ILcdEarthAsset aAsset)
Create a Properties object based on an ILcdEarthAsset
|
String |
getDisplayName()
Returns a user-displayable name for this codec.
|
boolean |
isModelDecoderOptional()
If the model decoder is an optional field the encoding/decoding will not fail either due to an
invalid or unsupported clip model decoder.
|
decodeAsset, getFormatNameForModelDecoder, getModelDecoderForFormatName, getNamedModelDecoderFactory, setModelDecoderOptional, setNamedModelDecoderFactory
public TLcdEarthClippedRasterAssetCodec()
public TLcdEarthClippedRasterAssetCodec(ILcdEarthNamedModelDecoderFactory aNamedModelDecoderFactory)
public Properties encodeAsset(ILcdEarthAsset aAsset)
ILcdEarthAssetCodec
encodeAsset
in interface ILcdEarthAssetCodec
encodeAsset
in class TLcdEarthRasterAssetCodec
aAsset
- the asset to encode into a Properties objectpublic boolean isModelDecoderOptional()
isModelDecoderOptional
in class TLcdEarthRasterAssetCodec
protected TLcdEarthRasterAsset createAsset(Properties aProperties, String aSource, ILcdModelDecoder aModelDecoder, ILcdBounds aBounds, ILcdEarthTileSetCoverage.CoverageType aCoverageType, double aPixelDensity, Date aDate)
TLcdEarthRasterAssetCodec
aProperties
parameter corresponds to that of
decodeAsset()
; the other parameters are values that have
already been decoded from these properties.createAsset
in class TLcdEarthRasterAssetCodec
aProperties
- The asset properties.aSource
- The asset source name.aModelDecoder
- The asset model decoder.aBounds
- The asset bounds.aCoverageType
- The asset coverage type.aPixelDensity
- The asset pixel density.aDate
- The asset modification date.public boolean canDecodeAsset(Properties aProperties)
ILcdEarthAssetCodec
canDecodeAsset
in interface ILcdEarthAssetCodec
canDecodeAsset
in class TLcdEarthRasterAssetCodec
aProperties
- a Properties object representing an ILcdEarthAssetpublic boolean canEncodeAsset(ILcdEarthAsset aAsset)
ILcdEarthAssetCodec
canEncodeAsset
in interface ILcdEarthAssetCodec
canEncodeAsset
in class TLcdEarthRasterAssetCodec
aAsset
- the ILcdEarthAsset to be encodedpublic String getDisplayName()
ILcdEarthAssetCodec
getDisplayName
in interface ILcdEarthAssetCodec
getDisplayName
in class TLcdEarthRasterAssetCodec