Class VolumePhysical


public class VolumePhysical
extends UnitValueVolume
Volume expressed in cubic meters, or units thereof.
Author:
Owen
  • Constructor Details

  • Method Details

    • resolveToVoxels

      public double resolveToVoxels​(Optional<UnitConverter> unitConverter) throws UnitValueException
      Description copied from class: UnitValueExtent
      Resolves a measurement of area/volume (in whatever units) to units corresponding to the image pixels/voxels.
      Specified by:
      resolveToVoxels in class UnitValueExtent
      Parameters:
      unitConverter - converts from voxelized units to different physical measurements of area / volume / distance.
      Returns:
      the resolved-value (pixels for area, voxels for volume).
      Throws:
      UnitValueException - if missing a UnitConverter, when needed for resolution.
    • toString

      public String toString()
      Overrides:
      toString in class AnchorBean<UnitValueExtent>
    • getValue

      public double getValue()
      The volume in units of meters, with the unit described by unitType.
    • setValue

      public void setValue​(double value)
      The volume in units of meters, with the unit described by unitType.
    • getUnitType

      public String getUnitType()
      How much each value represents e.g. cubic nanometers, cubic millimeters etc.

      If unspecified, it describes meters (unsquared).

      See SpatialUnits for acceptable string-values.

    • setUnitType

      public void setUnitType​(String unitType)
      How much each value represents e.g. cubic nanometers, cubic millimeters etc.

      If unspecified, it describes meters (unsquared).

      See SpatialUnits for acceptable string-values.