Package qupath.lib.objects
Enum Class PathObjectFilter
- All Implemented Interfaces:
Serializable
,Comparable<PathObjectFilter>
,Constable
,Predicate<PathObject>
Enumeration of filters (predicates) that can be used to select objects based on their type.
See also PathObjectPredicates
for more complex JSON-serializable predicates.
- Author:
- Pete Bankhead
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAccept annotation objectsAccept cellsAccept detection objects (no subtypes, e.g.Accept detection objects (all subtypes)Accept any object that has a ROIAccept any object that has an area ROIAccept any object that has a line ROIAccept any object that has a points ROIAccept tilesAccept TMA coresAccept any object that is 'unlocked' -
Method Summary
Modifier and TypeMethodDescriptionboolean
test
(PathObject p) toString()
static PathObjectFilter
Returns the enum constant of this class with the specified name.static PathObjectFilter[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANNOTATIONS
Accept annotation objects -
DETECTIONS
Accept detection objects (no subtypes, e.g. cells) -
DETECTIONS_ALL
Accept detection objects (all subtypes) -
CELLS
Accept cells -
TILES
Accept tiles -
TMA_CORES
Accept TMA cores -
UNLOCKED
Accept any object that is 'unlocked' -
ROI
Accept any object that has a ROI -
ROI_LINE
Accept any object that has a line ROI -
ROI_AREA
Accept any object that has an area ROI -
ROI_POINT
Accept any object that has a points ROI
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<PathObjectFilter>
-
test
- Specified by:
test
in interfacePredicate<PathObject>
-