Package gov.nih.mipav.model.structures
Enum ModelStorageBase.DataType
- All Implemented Interfaces:
Serializable,Comparable<ModelStorageBase.DataType>,java.lang.constant.Constable
- Enclosing class:
ModelStorageBase
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionData buffer is of type ARGB where each channel (A = alpha, R = red, G = green, B = blue) is represented by a unsigned byte value. (4 * UBYTE(8 bits) = 4 bytes)Data buffer is of type ARGB where each channel (A = alpha, R = red, G = green, B = blue) is represented by a float value. (4 * FLOAT(32 bits) = 16 bytes)Data buffer is of type ARGB where each channel (A = alpha, R = red, G = green, B = blue) is represented by a unsigned short value. (4 * USHORT(16 bits) = 8 bytes)Data buffer is of type Boolean (1 bit per voxel).Data buffer is of type signed byte (8 bits per voxel).Data buffer is of type complex type floats (2 x 64 bits per voxel).Data buffer is of type complex type of doubles (2 x 128 bits per voxel).Data buffer is of type double (64 bits per voxel).Data buffer is of type float (32 bits per voxel).Data buffer is of type signed integer (32 bits per voxel).Data buffer is of type signed long integer (64 bits per voxel).Data buffer is of type signed short (16 bits per voxel).Data buffer is of type unsigned byte (8 bits per voxel).Data buffer is of type unsigned integer (32 bits per voxel).Data buffer is of type unsigned short (16 bits per voxal). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelStorageBase.DataTypegetDataType(int legacyNum) intThis method return the max value allowed of the type.This method returns the min value allowed of the type.toString()static ModelStorageBase.DataTypeReturns the enum constant of this type with the specified name.static ModelStorageBase.DataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
Data buffer is of type Boolean (1 bit per voxel). -
BYTE
Data buffer is of type signed byte (8 bits per voxel). -
UBYTE
Data buffer is of type unsigned byte (8 bits per voxel). -
SHORT
Data buffer is of type signed short (16 bits per voxel). -
USHORT
Data buffer is of type unsigned short (16 bits per voxal). -
INTEGER
Data buffer is of type signed integer (32 bits per voxel). -
LONG
Data buffer is of type signed long integer (64 bits per voxel). -
FLOAT
Data buffer is of type float (32 bits per voxel). -
DOUBLE
Data buffer is of type double (64 bits per voxel). -
ARGB
Data buffer is of type ARGB where each channel (A = alpha, R = red, G = green, B = blue) is represented by a unsigned byte value. (4 * UBYTE(8 bits) = 4 bytes) -
ARGB_USHORT
Data buffer is of type ARGB where each channel (A = alpha, R = red, G = green, B = blue) is represented by a unsigned short value. (4 * USHORT(16 bits) = 8 bytes) -
ARGB_FLOAT
Data buffer is of type ARGB where each channel (A = alpha, R = red, G = green, B = blue) is represented by a float value. (4 * FLOAT(32 bits) = 16 bytes) -
COMPLEX
Data buffer is of type complex type floats (2 x 64 bits per voxel). -
DCOMPLEX
Data buffer is of type complex type of doubles (2 x 128 bits per voxel). -
UINTEGER
Data buffer is of type unsigned integer (32 bits per voxel). -
ARGB_UINTEGER
-
-
Field Details
-
legacyNum
private int legacyNumThese variables preserve the legacy ordering of these enums. -
legacyName
-
typeMin
Min value allowed of the type -
typeMax
Max value allowed of the type
-
-
Constructor Details
-
DataType
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getLegacyNum
public int getLegacyNum() -
getTypeMin
This method returns the min value allowed of the type.- Returns:
- A java.lang.Number
-
getTypeMax
This method return the max value allowed of the type.- Returns:
- A java.lang.Number
-
toString
- Overrides:
toStringin classEnum<ModelStorageBase.DataType>
-
getDataType
-