Class IsothermCollection

java.lang.Object
com.flir.thermalsdk.image.isotherms.IsothermCollection

public class IsothermCollection extends Object
This class represents a collection of isotherms.
  • Constructor Details

    • IsothermCollection

      public IsothermCollection()
  • Method Details

    • size

      public int size()
      Gets the number of isotherms in the collection.
      Returns:
      Returns the number of isotherms in the collection.
    • remove

      public void remove(@NotNull @NotNull Isotherm isotherm)
      Removes the specified isotherm.
      Parameters:
      isotherm - The isotherm to be removed.
    • clear

      public void clear()
      Clears all isotherms from the collection.
    • contains

      public boolean contains(@NotNull @NotNull Isotherm isotherm)
      Determines whether the collection contains the specified Isotherm.
      Parameters:
      isotherm - The isotherm to look for.
      Returns:
      Returns true if the collection contains the specified isotherm, otherwise false.
    • getAll

      public List<Isotherm> getAll()
      Gets all active isotherms
      Returns:
      Returns a list of all active isotherms.
    • add

      public Isotherm add(@NotNull Isotherm.IsothermHolder holder)
      Creates a new isotherm and adds it to the collection.
      Parameters:
      holder - defines the isotherm type (e.g. Above, Interval), threshold value(s) and color blending and palette options
      Returns:
      Returns a reference to the new isotherm
      Throws:
      RuntimeException - When adding another isotherm would exceed the limit of isotherms allowed.
    • getCustomColorPalette1

      public CustomColor getCustomColorPalette1()
      Get suggested isotherm colors specified for a currently selected palette.
      Returns:
      Returns a suggested isotherm colors specified for a currently selected palette or null it not possible to determine the colors.
    • getCustomColorPalette2

      public CustomColor getCustomColorPalette2()
      Get suggested alternative isotherm colors specified for a currently selected palette.
      Returns:
      Returns a suggested isotherm colors specified for a currently selected palette or null it not possible to determine the colors.