Class TLcdTimeBoundsUtil

java.lang.Object
com.luciad.shape.TLcdTimeBoundsUtil

public class TLcdTimeBoundsUtil extends Object
Utility class containing several methods for processing ILcdTimeBounds objects.
Since:
9.1
  • Method Details

    • contains

      public static boolean contains(ILcdTimeBounds aOuterTimeBounds, ILcdTimeBounds aInnerTimeBounds)
      Checks whether the specified aOuterTimeBounds argument contains the specified aInnerTimeBounds argument.

      Note that, if an undefined time settings is found, the containment test shall fail.

      Parameters:
      aOuterTimeBounds - the outer time bounds.
      aInnerTimeBounds - the inner time bounds.
      Returns:
      whether the specified aOuterTimeBounds argument contains the specified aInnerTimeBounds argument.
    • interacts

      public static boolean interacts(ILcdTimeBounds aTimeBounds1, ILcdTimeBounds aTimeBounds2)
      Checks whether the specified aTimeBounds1 argument interacts with the specified aTimeBounds2 argument.

      Note that, if an undefined time settings is found, the interaction test shall fail.

      Parameters:
      aTimeBounds1 - the first time bounds.
      aTimeBounds2 - the second time bounds.
      Returns:
      whether the specified aTimeBounds1 argument interacts with the specified aTimeBounds2 argument.
    • intersection

      public static ILcdTimeBounds intersection(ILcdTimeBounds aTimeBounds1, ILcdTimeBounds aTimeBounds2)
      Returns the intersection between specified aTimeBounds1 argument and the specified aTimeBounds2 argument.

      Note that, if an undefined ILcdTimeBounds object is found, or when there is no intersection, an undefined ILcdTimeBounds is returned.

      Parameters:
      aTimeBounds1 - the first time bounds.
      aTimeBounds2 - the second time bounds.
      Returns:
      the intersection between specified aTimeBounds1 argument and the specified aTimeBounds2 argument.
    • union

      public static ILcdTimeBounds union(ILcdTimeBounds aTimeBounds1, ILcdTimeBounds aTimeBounds2)
      Returns the union of specified aTimeBounds1 argument and the specified aTimeBounds2 argument.

      Note that, if an undefined ILcdTimeBounds object is found, an undefined ILcdTimeBounds is returned.

      Parameters:
      aTimeBounds1 - the first time bounds.
      aTimeBounds2 - the second time bounds.
      Returns:
      the union of specified aTimeBounds1 argument and the specified aTimeBounds2 argument.
    • union

      public static ILcdTimeBounds union(ILcdTimeBounds aTimeBounds1, ILcdTimeBounds aTimeBounds2, boolean aIgnoreUnbounded)
      Returns the union of two time bounds. A boolean flag can be used to determine whether or not unbounded timebounds should be taken into account. When the aIgnoreUnbounded flag is set, the union operation will ignore any unbounded parts of the two timebounds.

      For instance, when the aIgnoreUnbounded flag is set to true, and there are two bounds:
      • [0,UNBOUNDED]
      • [10,UNBOUNDED]
      The resulting timebounds will be [0,10], which effectively ignores the unbounded parts of the calculations.

      In the same example, when the flag is set to false, the resulting value would be [0,UNBOUNDED]

      If the given aTimeBounds is fully unbounded, then depending on the flag, this timebounds will either become fully unbounded too, or no change will occur if the unbounded parts should be ignored.

      Undefined bounds will always be ignored.
      Parameters:
      aTimeBounds1 - The first time bounds
      aTimeBounds2 - The second time bounds
      aIgnoreUnbounded - Whether or not to ignore the unbounded parts of timebounds. (See description)
      Returns:
      the union time bounds