Class TLcdEarthAsset

java.lang.Object
com.luciad.earth.metadata.TLcdEarthAsset
All Implemented Interfaces:
ILcdEarthAsset, ILcdBounded, Comparable
Direct Known Subclasses:
TLcdEarthRasterAsset

public class TLcdEarthAsset extends Object implements ILcdEarthAsset
Default implementation of ILcdEarthAsset. The compareTo(Object) method is based on a user-supplied integer "sort order" value.
Since:
8.2
  • Constructor Details

    • TLcdEarthAsset

      public TLcdEarthAsset(String aSourceName, ILcdModelDecoder aModelDecoder, ILcdBounds aBounds, ILcdEarthTileSetCoverage.CoverageType aCoverageType, Date aModificationDate, int aSortOrder)
      Creates a new asset with the given properties.
      Parameters:
      aSourceName - the asset's source name
      aModelDecoder - the asset's model decoder
      aBounds - the asset's model bounds
      aCoverageType - the asset's coverage type
      aModificationDate - the asset's last modification date
      aSortOrder - the asset's sort order
  • Method Details

    • getSourceName

      public String getSourceName()
      Description copied from interface: ILcdEarthAsset
      Returns the source name from which this asset can be decoded.
      Specified by:
      getSourceName in interface ILcdEarthAsset
      Returns:
      the source name from which this asset can be decoded
    • getModelDecoder

      public ILcdModelDecoder getModelDecoder()
      Description copied from interface: ILcdEarthAsset
      Returns the model decoder that can decode this asset.

      The model decoder may be null.

      Specified by:
      getModelDecoder in interface ILcdEarthAsset
      Returns:
      the model decoder that can decode this asset or null
    • getBounds

      public ILcdBounds getBounds()
      Description copied from interface: ILcdEarthAsset
      Returns the bounds of this asset, expressed in the model reference of the model that contains this asset.
      Specified by:
      getBounds in interface ILcdBounded
      Specified by:
      getBounds in interface ILcdEarthAsset
      Returns:
      the bounds of this asset
      See Also:
    • getCoverageType

      public ILcdEarthTileSetCoverage.CoverageType getCoverageType()
      Description copied from interface: ILcdEarthAsset
      Returns the coverage type the asset is intended for.
      Specified by:
      getCoverageType in interface ILcdEarthAsset
      Returns:
      the asset's coverage type
    • getModificationDate

      public Date getModificationDate()
      Description copied from interface: ILcdEarthAsset
      Returns the date the asset was last modified. This can be used to check whether the preprocessed 3D terrain repository needs updating for the area covered by this asset.
      Specified by:
      getModificationDate in interface ILcdEarthAsset
      Returns:
      date of the last asset modification
    • getSortOrder

      public int getSortOrder()
      Returns this asset's sort order value.
      Returns:
      this asset's sort order value
    • compareTo

      public int compareTo(Object o)
      Specified by:
      compareTo in interface Comparable
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object