Uses of Class
org.anchoranalysis.spatial.box.BoundingBox
| Package | Description |
|---|---|
| org.anchoranalysis.spatial.box |
Axis-aligned bounding-boxes and related operations.
|
| org.anchoranalysis.spatial.rtree |
R-Tree data structure and related operations.
|
-
Uses of BoundingBox in org.anchoranalysis.spatial.box
Methods in org.anchoranalysis.spatial.box that return BoundingBox Modifier and Type Method Description static BoundingBoxBoundingBoxFactory. at(int x, int y, int width, int height)Short-hand factory method for creating a 2D bounding-box.static BoundingBoxBoundingBoxFactory. at(int x, int y, int z, int width, int height, int depth)Short-hand factory method for creating a 3D bounding-box.BoundingBoxBoundedList. boundingBox()A bounding-box that must contain all elements in the collectionBoundingBoxBoundingBox. changeExtent(UnaryOperator<Extent> extentOperator)Creates a copiedBoundingBoxbut with a different extent.BoundingBoxBoundingBox. changeExtent(Extent extent)Creates a copiedBoundingBoxbut with a different extent.BoundingBoxBoundingBox. changeExtentZ(int extentZ)Creates a copiedBoundingBoxbut with a different extent in the Z-dimension.BoundingBoxBoundingBox. changeZ(int cornerZ, int extentZ)Creates a copiedBoundingBoxbut with a different corner and extent in the Z-dimension.BoundingBoxBoundingBox. clampTo(Extent extent)Ensures that the box fits inside aExtentby reducing any values to their limits in the respective dimension.static BoundingBoxBoundingBox. createDuplicate(ReadableTuple3i cornerMin, Extent extent)Creates a bounding-box from a corner and an extent - duplicatingcornerMin.static BoundingBoxBoundingBox. createDuplicate(ReadableTuple3i cornerMinInclusive, ReadableTuple3i cornerMaxInclusive)Creates from twointpoints (a minimum corner and a maximum corner) - reusingcornerMinInclusiveinternally.static BoundingBoxBoundingBox. createReuse(Point3d cornerMinInclusive, Point3d cornerMaxInclusive)Creates from twodoublepoints (a minimum corner and a maximum corner).static BoundingBoxBoundingBox. createReuse(ReadableTuple3i cornerMin, Extent extent)Creates a bounding-box from a corner and an extent - reusingcornerMininternally.static BoundingBoxBoundingBox. createReuse(ReadableTuple3i cornerMinInclusive, ReadableTuple3i cornerMaxInclusive)Creates from twointpoints (a minimum corner and a maximum corner) - reusingcornerMinInclusiveinternally.BoundingBoxBoundingBox. flattenZ()Collapses the z-dimension of the box to a single voxel depth, and a corner at0voxels.BoundingBoxBoundingBox. growBy(Tuple3i toAdd, Extent containingExtent)Grow the bounding-box bytoAddamount in each dimension in both positive and negative directions.static BoundingBoxBoundingBoxMerger. merge(Stream<BoundingBox> stream)Merges all the bounding boxes in a stream.BoundingBoxBoundingBox. reflectThroughOrigin()Reflects the bounding box through the origin.BoundingBoxBoundingBox. relativePositionToBox(BoundingBox other)A new bounding-box using relative position coordinates to another box.BoundingBoxBoundingBox. scale(ScaleFactor scaleFactor)Scales the bounding-box, both the corner-point and the extent.BoundingBoxBoundingBox. scale(ScaleFactor scaleFactor, Extent extentToAssign)Scales the bounding-box corner-point, and assigns a new extent.BoundingBoxBoundingBox. scaleClampTo(ScaleFactor scaleFactor, Extent clampTo)Scales the bounding-box, both the corner-point and the extent - ensuring it remains inside a containing-extent.BoundingBoxBoundingBox. shiftBackBy(ReadableTuple3i shift)Shifts the bounding-box backwards.BoundingBoxBoundingBox. shiftBy(ReadableTuple3i shift)Shifts the bounding-box forwards.BoundingBoxBoundingBox. shiftTo(ReadableTuple3i cornerMinToAssign)Assigns a new corner-location to the bounding-box.BoundingBoxBoundingBox. shiftToOrigin()Moves the bounding-box to the origin (0,0,0) but preserves the extent.BoundingBoxBoundingBox. shiftToZ(int cornerZToAssign)Assigns a new z-slice corner-location to the bounding-box.BoundingBoxPointRange. toBoundingBox()Creates aBoundingBoxto just cover the range of points that have been added.BoundingBoxPointRange. toBoundingBoxNoCheck()LikePointRange.toBoundingBox()but if no points exist, an exception is not thrown.static BoundingBoxBoundingBoxFactory. uniform3D(int corner, int extent)Short-hand factory method for creating a 3D bounding-box, where a coordinate is identical in each dimension.BoundingBoxBoundingBoxUnion. with(BoundingBox other)Performs a union with another box (immutably).Methods in org.anchoranalysis.spatial.box that return types with arguments of type BoundingBox Modifier and Type Method Description Optional<BoundingBox>BoundingBoxIntersection. with(BoundingBox other)Finds the intersection with another bounding-box, if it exists.Optional<BoundingBox>BoundingBoxIntersection. withInside(BoundingBox other, Extent containingExtent)Finds the intersection and clamp to a containing extent.Methods in org.anchoranalysis.spatial.box with parameters of type BoundingBox Modifier and Type Method Description BoundedList<T>BoundedList. assignBoundingBox(BoundingBox boxToAssign)Assigns a new containing bounding-box.BoundedList<T>BoundedList. assignBoundingBoxAndMap(BoundingBox boxToAssign, UnaryOperator<T> mappingFunction)Assigns a new containing bounding-box and maps each individual element.booleanBoundingBoxContains. box(BoundingBox maybeContainedInside)Is this other bounding-box fully contained within this bounding box?intBoundingBox. compareTo(BoundingBox other)booleanExtent. contains(BoundingBox box)Isboxentirely contained within the extent?static doubleBoundingBoxDistance. distance(BoundingBox box1, BoundingBox box2, boolean includeZ)Calculates the distance between twoBoundingBoxes.booleanBoundingBoxIntersection. existsWith(BoundingBox other)Does intersection exist with another bounding-box?static doubleIntersectionOverUnion. forBoxes(BoundingBox box1, BoundingBox box2)Calculates the intersection-over-union score a pair of bounding-boxes.Point3iBoundingBox. relativePositionTo(BoundingBox other)The relative position of the corner to another bounding box.BoundingBoxBoundingBox. relativePositionToBox(BoundingBox other)A new bounding-box using relative position coordinates to another box.Optional<BoundingBox>BoundingBoxIntersection. with(BoundingBox other)Finds the intersection with another bounding-box, if it exists.BoundingBoxBoundingBoxUnion. with(BoundingBox other)Performs a union with another box (immutably).Optional<BoundingBox>BoundingBoxIntersection. withInside(BoundingBox other, Extent containingExtent)Finds the intersection and clamp to a containing extent.Method parameters in org.anchoranalysis.spatial.box with type arguments of type BoundingBox Modifier and Type Method Description static <T> BoundedList<T>BoundedList. createFromList(List<T> list, Function<T,BoundingBox> extractBoundingBox)Creates for a list, minimally fitting a bounding-box around all elementsstatic <T> BoundedList<T>BoundedList. createSingle(T element, Function<T,BoundingBox> extractBoundingBox)Creates for a single element using its current bounding-box.booleanBoundingBoxIntersection. existsWithAny(List<BoundingBox> others)Does intersection exist with with any of the others in the list?static BoundingBoxBoundingBoxMerger. merge(Stream<BoundingBox> stream)Merges all the bounding boxes in a stream.Constructors in org.anchoranalysis.spatial.box with parameters of type BoundingBox Constructor Description BoundingBoxContains(BoundingBox box)Create with theBoundingBoxthat is queried.BoundingBoxIntersection(BoundingBox box)BoundingBoxUnion(BoundingBox box) -
Uses of BoundingBox in org.anchoranalysis.spatial.rtree
Methods in org.anchoranalysis.spatial.rtree with parameters of type BoundingBox Modifier and Type Method Description voidBoundingBoxRTree. add(BoundingBox box, T payload)Adds a bounding-box with a corresponding payload.Set<T>BoundingBoxRTree. intersectsWith(BoundingBox toIntersectWith)Which bounding-boxes intersect with another specific bounding box?Stream<T>BoundingBoxRTree. intersectsWithStream(BoundingBox toIntersectWith)voidBoundingBoxRTree. remove(BoundingBox box, T payload)Removes a particular item from the r-tree, identified by its bounding-box and payload.Constructor parameters in org.anchoranalysis.spatial.rtree with type arguments of type BoundingBox Constructor Description SpatiallySeparate(Function<T,BoundingBox> extractBoundingBox)