Class BoundPhysicalExtent

All Implemented Interfaces:
Serializable

public class BoundPhysicalExtent extends BoundMinMax
A bound representing physical extents, which can be resolved based on image resolution.

This class extends BoundMinMax to provide functionality specific to physical extents, where the bound values may be adjusted based on the image resolution.

See Also:
  • Constructor Details

    • BoundPhysicalExtent

      public BoundPhysicalExtent(double min, double max)
      Creates a new instance with specified minimum and maximum values.
      Parameters:
      min - the minimum physical extent
      max - the maximum physical extent
    • BoundPhysicalExtent

      public BoundPhysicalExtent(BoundPhysicalExtent source)
      Creates a new instance by copying another BoundPhysicalExtent.
      Parameters:
      source - the source BoundPhysicalExtent to copy from
    • BoundPhysicalExtent

      public BoundPhysicalExtent()
  • Method Details

    • getMinResolved

      public double getMinResolved(Optional<Resolution> resolution, boolean do3D)
      Description copied from class: MarkBounds
      Gets the resolved minimum value of the bound, considering resolution and dimensionality.
      Specified by:
      getMinResolved in class MarkBounds
      Parameters:
      resolution - an optional resolution to consider when resolving the bound
      do3D - whether to consider 3D resolution (if available)
      Returns:
      the resolved minimum value
    • getMaxResolved

      public double getMaxResolved(Optional<Resolution> resolution, boolean do3D)
      Description copied from class: MarkBounds
      Gets the resolved maximum value of the bound, considering resolution and dimensionality.
      Specified by:
      getMaxResolved in class MarkBounds
      Parameters:
      resolution - an optional resolution to consider when resolving the bound
      do3D - whether to consider 3D resolution (if available)
      Returns:
      the resolved maximum value
    • duplicate

      public Bound duplicate()
      Description copied from class: Bound
      Creates a duplicate of this bound.
      Specified by:
      duplicate in class Bound
      Returns:
      a new instance of Bound with the same properties as this one