Package sc.fiji.snt
Record Class SNT.VoxelBounds
java.lang.Object
java.lang.Record
sc.fiji.snt.SNT.VoxelBounds
- Record Components:
min- the resolved region's minimum voxel index, per axis (inclusive)max- the resolved region's maximum voxel index, per axis (inclusive)clamped-trueif the requested region had to be trimmed on at least one side to fit within the loaded source's own extent (e.g. padding, or a fixed-size/center region, pushed past an edge) - i.e. the resolved region is smaller than what was asked for, though never empty (an empty result throws instead, see below)
- Enclosing class:
SNT
The result of
SNT.resolveVoxelBounds(BoundingBox, Calibration): a world-space region resolved and clamped to
voxel-index bounds within this session's streamed source.-
Constructor Summary
ConstructorsConstructorDescriptionVoxelBounds(long[] min, long[] max, boolean clamped) Creates an instance of aVoxelBoundsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanclamped()Returns the value of theclampedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.long[]max()Returns the value of themaxrecord component.long[]min()Returns the value of theminrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
min
public long[] min()Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
public long[] max()Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-
clamped
public boolean clamped()Returns the value of theclampedrecord component.- Returns:
- the value of the
clampedrecord component
-