public class AreaPhysical extends UnitValueArea
Area expressed in square meters, or units thereof.
Author:
Owen Feehan
  • Constructor Details

    • AreaPhysical

      public AreaPhysical()
  • 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()
      Description copied from class: AnchorBean
      By default, we use AnchorBean.describeBean() as the string representation of the bean.
      Overrides:
      toString in class AnchorBean<UnitValueExtent>
      Returns:
      the string representation
    • 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. square nanometers, squares 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. square nanometers, squares millimeters etc.

      If unspecified, it describes meters (unsquared).

      See SpatialUnits for acceptable string-values.