Class TLcdAIXM51TimeSliceProvider

java.lang.Object
com.luciad.format.aixm51.model.TLcdAIXM51TimeSliceProvider
All Implemented Interfaces:
ILcdAIXM51TimeSliceProvider

public class TLcdAIXM51TimeSliceProvider extends Object implements ILcdAIXM51TimeSliceProvider
A default time slice provider implementation that will always return one of the original time slices of the feature. Null is returned if the feature does not have any time slices.

This provider uses the getShape(int) method of the ILcdShapeList interface that is implemented by TLcdAIXM51Feature to retrieve the first shape in the list of shapes. By default this list only contains baseline and snapshot time slices, but this can be changed by changing the geometry filter of the feature.

If the shape count of the feature is 0, the first time slice in the list of time slices is returned. This should also be a baseline or snapshot time slice in case the time slices in the feature are sorted.

Since:
10.1
See Also:
  • Constructor Details

    • TLcdAIXM51TimeSliceProvider

      public TLcdAIXM51TimeSliceProvider()
  • Method Details

    • getTimeSlice

      public <T extends TLcdAIXM51AbstractAIXMTimeSlice> T getTimeSlice(TLcdAIXM51Feature<T> aFeature)
      Description copied from interface: ILcdAIXM51TimeSliceProvider
      Returns a time slice that is selected or computed by this provider from the time slices of the given feature. This time slice can be one of the original time slices of the feature, for instance a baseline time slice, or a computed time slice such as a snapshot that is computed for a specific date.

      The returned time slice can change between consecutive calls.

      Specified by:
      getTimeSlice in interface ILcdAIXM51TimeSliceProvider
      Parameters:
      aFeature - the feature for which a time slice needs to be returned
      Returns:
      A valid time slice, can only be null in case the feature does not contain time slices.