Class IsothermCollection
java.lang.Object
com.flir.thermalsdk.image.isotherms.IsothermCollection
This class represents a collection of isotherms.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(Isotherm.IsothermHolder holder) Creates a new isotherm and adds it to the collection.voidclear()Clears all isotherms from the collection.booleanDetermines whether the collection contains the specified Isotherm.getAll()Gets all active isothermsGet suggested isotherm colors specified for a currently selected palette.Get suggested alternative isotherm colors specified for a currently selected palette.voidRemoves the specified isotherm.intsize()Gets the number of isotherms in the collection.
-
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
Removes the specified isotherm.- Parameters:
isotherm- The isotherm to be removed.
-
clear
public void clear()Clears all isotherms from the collection. -
contains
Determines whether the collection contains the specified Isotherm.- Parameters:
isotherm- The isotherm to look for.- Returns:
- Returns
trueif the collection contains the specified isotherm, otherwisefalse.
-
getAll
Gets all active isotherms- Returns:
- Returns a list of all active isotherms.
-
add
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
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
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.
-