Class DistanceVoxels
Object
org.anchoranalysis.bean.AnchorBean<UnitValueDistance>
org.anchoranalysis.image.bean.unitvalue.distance.UnitValueDistance
org.anchoranalysis.image.bean.unitvalue.distance.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:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DistanceVoxels()DistanceVoxels(double value)Create with a particular value. -
Method Summary
Modifier and Type Method Description doublegetValue()The distance in units of voxels.doubleresolve(Optional<UnitConverter> unitConverter, org.anchoranalysis.spatial.orientation.DirectionVector direction)Resolves the distance using aDirectionVector.voidsetValue(double value)The distance in units of voxels.Methods inherited from class org.anchoranalysis.image.bean.unitvalue.distance.UnitValueDistance
resolve, resolve, resolveForAxisMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
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, org.anchoranalysis.spatial.orientation.DirectionVector direction)Description copied from class:UnitValueDistanceResolves the distance using aDirectionVector.The magnitude of the vector is ignored, using only the direction.
- Specified by:
resolvein classUnitValueDistance- 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.
-