public class VolumePhysical extends UnitValueVolume
Constructor and Description |
---|
VolumePhysical() |
Modifier and Type | Method and Description |
---|---|
String |
getUnitType()
How much each value represents e.g.
|
double |
getValue()
The volume in units of meters, with the unit described by
unitType . |
double |
resolveToVoxels(Optional<UnitConverter> unitConverter)
Resolves a measurement of area/volume (in whatever units) to units corresponding to the image
pixels/voxels.
|
void |
setUnitType(String unitType)
How much each value represents e.g.
|
void |
setValue(double value)
The volume in units of meters, with the unit described by
unitType . |
String |
toString()
By default, we use
AnchorBean.describeBean() as the string representation of the bean. |
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
public double resolveToVoxels(Optional<UnitConverter> unitConverter) throws UnitValueException
UnitValueExtent
resolveToVoxels
in class UnitValueExtent
unitConverter
- converts from voxelized units to different physical measurements of area
/ volume / distance.UnitValueException
- if missing a UnitConverter
, when needed for resolution.public String toString()
AnchorBean
AnchorBean.describeBean()
as the string representation of the bean.toString
in class AnchorBean<UnitValueExtent>
public double getValue()
unitType
.public void setValue(double value)
unitType
.public String getUnitType()
If unspecified, it describes meters (unsquared).
See SpatialUnits
for acceptable string-values.
public void setUnitType(String unitType)
If unspecified, it describes meters (unsquared).
See SpatialUnits
for acceptable string-values.
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.