Uses of Class
org.anchoranalysis.spatial.box.BoundingBox
Packages that use BoundingBox
Package
Description
Axis-aligned bounding-boxes and related operations.
R-Tree data structure and related operations.
-
Uses of BoundingBox in org.anchoranalysis.spatial.box
Classes in org.anchoranalysis.spatial.box that implement interfaces with type arguments of type BoundingBoxModifier and TypeClassDescriptionfinal classA bounding-box in two or three dimensions.Methods in org.anchoranalysis.spatial.box that return BoundingBoxModifier and TypeMethodDescriptionstatic 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.BoundedList.boundingBox()A bounding-box that must contain all elements in the collectionBoundingBox.changeExtent(UnaryOperator<Extent> extentOperator) Creates a copiedBoundingBoxbut with a different extent.BoundingBox.changeExtent(Extent extent) Creates a copiedBoundingBoxbut with a different extent.BoundingBox.changeExtentZ(int extentZ) Creates a copiedBoundingBoxbut with a different extent in the Z-dimension.BoundingBox.changeZ(int cornerZ, int extentZ) Creates a copiedBoundingBoxbut with a different corner and extent in the Z-dimension.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.BoundingBox.flattenZ()Collapses the z-dimension of the box to a single voxel depth, and a corner at0voxels.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.BoundingBox.reflectThroughOrigin()Reflects the bounding box through the origin.BoundingBox.relativePositionToBox(BoundingBox other) A new bounding-box using relative position coordinates to another box.BoundingBox.scale(ScaleFactor scaleFactor) Scales the bounding-box, both the corner-point and the extent.BoundingBox.scale(ScaleFactor scaleFactor, Extent extentToAssign) Scales the bounding-box corner-point, and assigns a new extent.BoundingBox.scaleClampTo(ScaleFactor scaleFactor, Extent clampTo) Scales the bounding-box, both the corner-point and the extent - ensuring it remains inside a containing-extent.BoundingBox.shiftBackBy(ReadableTuple3i shift) Shifts the bounding-box backwards.BoundingBox.shiftBy(ReadableTuple3i shift) Shifts the bounding-box forwards.BoundingBox.shiftTo(ReadableTuple3i cornerMinToAssign) Assigns a new corner-location to the bounding-box.BoundingBox.shiftToOrigin()Moves the bounding-box to the origin (0,0,0) but preserves the extent.BoundingBox.shiftToZ(int cornerZToAssign) Assigns a new z-slice corner-location to the bounding-box.PointRange.toBoundingBox()Creates aBoundingBoxto just cover the range of points that have been added.PointRange.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.BoundingBoxUnion.with(BoundingBox other) Performs a union with another box (immutably).Methods in org.anchoranalysis.spatial.box that return types with arguments of type BoundingBoxModifier and TypeMethodDescriptionBoundingBoxIntersection.with(BoundingBox other) Finds the intersection with another bounding-box, if it exists.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 BoundingBoxModifier and TypeMethodDescriptionBoundedList.assignBoundingBox(BoundingBox boxToAssign) Assigns a new containing bounding-box.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.BoundingBox.relativePositionTo(BoundingBox other) The relative position of the corner to another bounding box.BoundingBox.relativePositionToBox(BoundingBox other) A new bounding-box using relative position coordinates to another box.BoundingBoxIntersection.with(BoundingBox other) Finds the intersection with another bounding-box, if it exists.BoundingBoxUnion.with(BoundingBox other) Performs a union with another box (immutably).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 BoundingBoxModifier and TypeMethodDescriptionstatic <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 -
Uses of BoundingBox in org.anchoranalysis.spatial.rtree
Methods in org.anchoranalysis.spatial.rtree with parameters of type BoundingBoxModifier and TypeMethodDescriptionvoidBoundingBoxRTree.add(BoundingBox box, T payload) Adds a bounding-box with a corresponding payload.BoundingBoxRTree.intersectsWith(BoundingBox toIntersectWith) Which bounding-boxes intersect with another specific bounding box?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 BoundingBoxModifierConstructorDescriptionSpatiallySeparate(Function<T, BoundingBox> extractBoundingBox) Creates a newSpatiallySeparateinstance.