public abstract class VoxelDataType extends Object
Modifier and Type | Field and Description |
---|---|
static long |
VALUE_NOT_COMPATIBLE
A placeholder value for
maxValue or minValue if the true maximum or minimum
value cannot be expressed as a long. |
Constructor and Description |
---|
VoxelDataType(int bitDepth,
String typeIdentifier,
long maxValue,
long minValue) |
Modifier and Type | Method and Description |
---|---|
int |
bitDepth()
The number of bits required to represent a voxel.
|
boolean |
equals(Object obj) |
int |
hashCode() |
abstract boolean |
isInteger()
Whether the data-type represents an integer or floating-point?
|
abstract boolean |
isUnsigned()
Whether the data-type is unsigned?
|
long |
maxValue()
The maximum value this type can represent, or
VALUE_NOT_COMPATIBLE if it cannot be
represented in a long. |
long |
minValue()
The minimum value this type can represent, or
VALUE_NOT_COMPATIBLE if it cannot be
represented in a long. |
int |
numberBytes()
The number of bytes needed to represent this data-type.
|
String |
toString() |
public static final long VALUE_NOT_COMPATIBLE
maxValue
or minValue
if the true maximum or minimum
value cannot be expressed as a long.public VoxelDataType(int bitDepth, String typeIdentifier, long maxValue, long minValue)
public abstract boolean isInteger()
public abstract boolean isUnsigned()
public int numberBytes()
public int bitDepth()
public long maxValue()
VALUE_NOT_COMPATIBLE
if it cannot be
represented in a long.public long minValue()
VALUE_NOT_COMPATIBLE
if it cannot be
represented in a long.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.