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 Details

    • containsObject

      boolean containsObject(PathObject pathObject)
      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

      List<PathObject> getConnectedObjects(PathObject pathObject)
      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

      default Collection<PathObject> getPathObjectsForRegion(ImageRegion region)
      Get all the objects with connections that may intersect the specified region.
      Parameters:
      region -
      Returns: