Package qupath.lib.objects
Interface PathObjectConnectionGroup
- All Known Implementing Classes:
DefaultPathObjectConnectionGroup,DelaunayTriangulation
public interface PathObjectConnectionGroup
Interface defining a basic structure to represent relationships between PathObjects that do not fit with
the parent-child idea of the PathObjectHierarchy.
Example applications would be Delaunay triangulation.
Such connections can be represented on an overlay by drawing lines between object centroids.
- Author:
- Pete Bankhead
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsObject(PathObject pathObject) Returns true if the specified PathObject is contained within this group.getConnectedObjects(PathObject pathObject) Get all the connections to a specified PathObject stored in this group.Get an unmodifiable collection containing all the PathObjects contained within this group.default Collection<PathObject>getPathObjectsForRegion(ImageRegion region) Get all the objects with connections that may intersect the specified region.
-
Method Details
-
containsObject
Returns true if the specified PathObject is contained within this group.- Parameters:
pathObject-- Returns:
-
getPathObjects
Collection<PathObject> getPathObjects()Get an unmodifiable collection containing all the PathObjects contained within this group.- Returns:
-
getConnectedObjects
Get all the connections to a specified PathObject stored in this group.If containsObject(pathObject) returns null, this will return an empty list (and not null).
- Parameters:
pathObject-- Returns:
-
getPathObjectsForRegion
Get all the objects with connections that may intersect the specified region.- Parameters:
region-- Returns:
-