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 SummaryModifier and TypeMethodDescriptionstatic PathObjectListWrappercreate(ImageData<?> imageData, Collection<? extends PathObject> pathObjects) Create a warpper containing the specified objects.static PathObjectListWrappercreate(ImageData<?> imageData, Predicate<PathObject> predicate) Create a wrapper that includes all objects selected by the specified predicate.static PathObjectListWrapperforAnnotations(ImageData<?> imageData) Create a wrapper including all annotations.static PathObjectListWrapperCreate a wrapper containing all cells.static PathObjectListWrapperforDetections(ImageData<?> imageData) Create a wrapper including all detections.static PathObjectListWrapperCreate a wrapper including only the root object.static PathObjectListWrapperCreate a wrapper containing all tile objects.static PathObjectListWrapperforTmaCores(ImageData<?> imageData) Create a wrapper containing all TMA cores.
- 
Method Details- 
createpublic static PathObjectListWrapper create(ImageData<?> imageData, Collection<? extends PathObject> pathObjects) Create a warpper containing the specified objects.- Parameters:
- imageData-
- pathObjects-
- Returns:
 
- 
createCreate a wrapper that includes all objects selected by the specified predicate.- Parameters:
- imageData-
- predicate-
- Returns:
 
- 
forRootCreate a wrapper including only the root object.- Parameters:
- imageData-
- Returns:
 
- 
forAnnotationsCreate a wrapper including all annotations.- Parameters:
- imageData-
- Returns:
 
- 
forDetectionsCreate a wrapper including all detections.- Parameters:
- imageData-
- Returns:
 
- 
forCellsCreate a wrapper containing all cells.- Parameters:
- imageData-
- Returns:
 
- 
forTilesCreate a wrapper containing all tile objects.- Parameters:
- imageData-
- Returns:
 
- 
forTmaCoresCreate a wrapper containing all TMA cores.- Parameters:
- imageData-
- Returns:
 
 
-