Class DistanceVoxels

All Implemented Interfaces:
Serializable

public class DistanceVoxels extends UnitValueDistance
Implementation of UnitValueDistance that specifies a value in voxels, ignoring any physical image resolution.
Author:
Owen Feehan
See Also:
  • Constructor Details

    • DistanceVoxels

      public DistanceVoxels(double value)
      Create with a particular value.
      Parameters:
      value - the distance in units of voxels.
    • DistanceVoxels

      public DistanceVoxels()
  • Method Details

    • resolve

      public double resolve(Optional<UnitConverter> unitConverter, DirectionVector direction)
      Description copied from class: UnitValueDistance
      Resolves the distance using a DirectionVector.

      The magnitude of the vector is ignored, using only the direction.

      Specified by:
      resolve in class UnitValueDistance
      Parameters:
      unitConverter - converts to/from voxels to physical units.
      direction - the direction-vector.
      Returns:
      the distance in units of voxels.
    • getValue

      public double getValue()
      The distance in units of voxels.
    • setValue

      public void setValue(double value)
      The distance in units of voxels.