public abstract class SignedVoxelType extends VoxelDataType
VALUE_NOT_COMPATIBLE
Modifier | Constructor and Description |
---|---|
protected |
SignedVoxelType(int numberBits,
String typeIdentifier,
long maxValue,
long minValue)
Construct for a particular number of bits, with a unique identifier, and with bounds on the
values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isInteger()
Whether the data-type represents an integer or floating-point?
|
boolean |
isUnsigned()
Whether the data-type is unsigned?
|
bitDepth, equals, hashCode, maxValue, minValue, numberBytes, toString
protected SignedVoxelType(int numberBits, String typeIdentifier, long maxValue, long minValue)
numberBits
- the number of bits required to represent a voxel.typeIdentifier
- a string to uniquely and compactly describe this type.maxValue
- the maximum value this type can represent.minValue
- the minimum value this type can represent.public final boolean isInteger()
VoxelDataType
isInteger
in class VoxelDataType
public final boolean isUnsigned()
VoxelDataType
isUnsigned
in class VoxelDataType
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.