Uses of Class
org.anchoranalysis.spatial.box.Extent
Packages that use Extent
Package
Description
Axis-aligned bounding-boxes and related operations.
How to much to scale an entity in Cartesian space by.
-
Uses of Extent in org.anchoranalysis.spatial.box
Classes in org.anchoranalysis.spatial.box that implement interfaces with type arguments of type ExtentMethods in org.anchoranalysis.spatial.box that return ExtentModifier and TypeMethodDescriptionstatic ExtentExtent.createFromTupleDuplicate(ReadableTuple3i tuple) Creates from aReadableTuple3irepresenting the sizes in each dimension, where the tuple is not used internally.static ExtentExtent.createFromTupleReuse(ReadableTuple3i tuple) Creates from aReadableTuple3irepresenting the sizes in each dimension, where the tuple is used internally.Extent.duplicateChangeX(int xToAssign) Creates a copy of the currentExtentwith the value for the X-dimension changed.Extent.duplicateChangeY(int yToAssign) Creates a copy of the currentExtentwith the value for the Y-dimension changed.Extent.duplicateChangeZ(int zToAssign) Creates a copy of the currentExtentwith the value for the Z-dimension changed.BoundingBox.extent()Dimensions in pixels needed to represent the bounding box.Extent.flattenZ()Collapses the Z dimension.Extent.growBy(int toAdd) Creates a newExtentwithtoAddsize added to each dimension.Extent.growBy(ReadableTuple3i toAdd) Creates a newExtentwithtoAddsize added to each respective dimension.Extent.intersectWith(Extent other) Intersects this extent with another (i.e.An extent that contains the minimum of two extents for each dimension respectively.Extent.scaleXYBy(double scaleFactor, boolean round) Scales all dimensions by a scaling-factor.Extent.scaleXYBy(ScaleFactor scaleFactor, boolean round) Scales the X- and Y- dimensions by a scaling-factor.Extent.shrinkBy(ReadableTuple3i toSubtract) Creates a newExtentwithtoSubtractsize subtracted from each respective dimension.Methods in org.anchoranalysis.spatial.box with parameters of type ExtentModifier and TypeMethodDescriptionbooleanExtent.anyDimensionIsLargerThan(Extent other) Returns true if any dimension in this extent is larger than the corresponding dimension inotherextent.booleanDoes the bounding-box have an edge at the border of an image of sizeextent?booleanBoundingBox.atBorderXY(Extent extent) LikeBoundingBox.atBorder(Extent)but considers only the X- and Y- dimensions.booleanLikeBoundingBox.atBorder(Extent)but considers only the Z-dimension.BoundingBox.changeExtent(Extent extent) Creates a copiedBoundingBoxbut with a different extent.Ensures that the box fits inside aExtentby reducing any values to their limits in the respective dimension.intstatic BoundingBoxBoundingBox.createDuplicate(ReadableTuple3i cornerMin, Extent extent) Creates a bounding-box from a corner and an extent - duplicatingcornerMin.static BoundingBoxBoundingBox.createReuse(ReadableTuple3i cornerMin, Extent extent) Creates a bounding-box from a corner and an extent - reusingcornerMininternally.booleanExtent.equalsIgnoreZ(Extent other) Checks for equality with another extent ignoring any differences in the Z dimension.Grow the bounding-box bytoAddamount in each dimension in both positive and negative directions.Extent.intersectWith(Extent other) Intersects this extent with another (i.e.An extent that contains the minimum of two extents for each dimension respectively.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.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 ExtentModifier and TypeMethodDescriptionBoundingBox.changeExtent(UnaryOperator<Extent> extentOperator) Creates a copiedBoundingBoxbut with a different extent.Constructors in org.anchoranalysis.spatial.box with parameters of type ExtentModifierConstructorDescriptionBoundingBox(Extent extent) Constructs a bounding-box to cover the entirety of a certain extent. -
Uses of Extent in org.anchoranalysis.spatial.scale
Methods in org.anchoranalysis.spatial.scale that return ExtentModifier and TypeMethodDescriptionMultiplies anExtentby the respective scaling-factor in each dimension.Methods in org.anchoranalysis.spatial.scale with parameters of type ExtentModifier and TypeMethodDescriptionstatic ScaleFactorRelativeScaleCalculator.relativeScale(Extent source, Extent target) Calculates a scaling factor so as to scalesourcetotarget.static ScaleFactorRelativeScaleCalculator.relativeScale(Extent source, Extent target, boolean preserveAspectRatio) static ScaleFactorRelativeScaleCalculator.relativeScalePreserveAspectRatio(Extent source, Extent target) Calculates a scaling factor so as to maximally scalesourcetotarget- while preserving the aspect ratio.Multiplies anExtentby the respective scaling-factor in each dimension.