Package qupath.lib.gui.measure
Class PathObjectListWrapper
java.lang.Object
qupath.lib.gui.measure.PathObjectListWrapper
Helper class to wrap a collection of PathObjects that should be measured.
This provides an unmodifiable list of the objects, and performs a single pass through the objects to determine key information that is useful for determining which measurements to show.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PathObjectListWrapper
create
(ImageData<?> imageData, Collection<? extends PathObject> pathObjects) Create a warpper containing the specified objects.static PathObjectListWrapper
create
(ImageData<?> imageData, Predicate<PathObject> predicate) Create a wrapper that includes all objects selected by the specified predicate.static PathObjectListWrapper
forAnnotations
(ImageData<?> imageData) Create a wrapper including all annotations.static PathObjectListWrapper
Create a wrapper containing all cells.static PathObjectListWrapper
forDetections
(ImageData<?> imageData) Create a wrapper including all detections.static PathObjectListWrapper
Create a wrapper including only the root object.static PathObjectListWrapper
Create a wrapper containing all tile objects.static PathObjectListWrapper
forTmaCores
(ImageData<?> imageData) Create a wrapper containing all TMA cores.
-
Method Details
-
create
public static PathObjectListWrapper create(ImageData<?> imageData, Collection<? extends PathObject> pathObjects) Create a warpper containing the specified objects.- Parameters:
imageData
-pathObjects
-- Returns:
-
create
Create a wrapper that includes all objects selected by the specified predicate.- Parameters:
imageData
-predicate
-- Returns:
-
forRoot
Create a wrapper including only the root object.- Parameters:
imageData
-- Returns:
-
forAnnotations
Create a wrapper including all annotations.- Parameters:
imageData
-- Returns:
-
forDetections
Create a wrapper including all detections.- Parameters:
imageData
-- Returns:
-
forCells
Create a wrapper containing all cells.- Parameters:
imageData
-- Returns:
-
forTiles
Create a wrapper containing all tile objects.- Parameters:
imageData
-- Returns:
-
forTmaCores
Create a wrapper containing all TMA cores.- Parameters:
imageData
-- Returns:
-