public class DistanceVoxels extends UnitValueDistance
UnitValueDistance
that specifies a value in voxels, ignoring any
physical image resolution.Constructor and Description |
---|
DistanceVoxels() |
DistanceVoxels(double value)
Create with a particular value.
|
Modifier and Type | Method and Description |
---|---|
double |
getValue()
The distance in units of voxels.
|
double |
resolve(Optional<UnitConverter> unitConverter,
DirectionVector direction)
Resolves the distance using a
DirectionVector . |
void |
setValue(double value)
The distance in units of voxels.
|
resolve, resolve, resolveForAxis
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public DistanceVoxels(double value)
value
- the distance in units of voxels.public DistanceVoxels()
public double resolve(Optional<UnitConverter> unitConverter, DirectionVector direction)
UnitValueDistance
DirectionVector
.
The magnitude of the vector is ignored, using only the direction.
resolve
in class UnitValueDistance
unitConverter
- converts to/from voxels to physical units.direction
- the direction-vector.public double getValue()
public void setValue(double value)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.