Package gov.nih.mipav.model.structures
Enum ModelStorageBase.DataType
- java.lang.Object
-
- java.lang.Enum<ModelStorageBase.DataType>
-
- gov.nih.mipav.model.structures.ModelStorageBase.DataType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ModelStorageBase.DataType>
- Enclosing class:
- ModelStorageBase
public static enum ModelStorageBase.DataType extends java.lang.Enum<ModelStorageBase.DataType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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_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)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)BOOLEAN
Data buffer is of type Boolean (1 bit per voxel).BYTE
Data buffer is of type signed byte (8 bits per voxel).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).DOUBLE
Data buffer is of type double (64 bits per voxel).FLOAT
Data buffer is of type float (32 bits per voxel).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).SHORT
Data buffer is of type signed short (16 bits per voxel).UBYTE
Data buffer is of type unsigned byte (8 bits per voxel).UINTEGER
Data buffer is of type unsigned integer (32 bits per voxel).USHORT
Data buffer is of type unsigned short (16 bits per voxal).
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
legacyName
private int
legacyNum
These variables preserve the legacy ordering of these enums.private java.lang.Number
typeMax
Max value allowed of the typeprivate java.lang.Number
typeMin
Min value allowed of the type
-
Constructor Summary
Constructors Modifier Constructor Description private
DataType(int legacyNum, java.lang.String legacyName, java.lang.Number typeMin, java.lang.Number typeMax)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModelStorageBase.DataType
getDataType(int legacyNum)
int
getLegacyNum()
java.lang.Number
getTypeMax()
This method return the max value allowed of the type.java.lang.Number
getTypeMin()
This method returns the min value allowed of the type.java.lang.String
toString()
static ModelStorageBase.DataType
valueOf(java.lang.String name)
Returns 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 Detail
-
BOOLEAN
public static final ModelStorageBase.DataType BOOLEAN
Data buffer is of type Boolean (1 bit per voxel).
-
BYTE
public static final ModelStorageBase.DataType BYTE
Data buffer is of type signed byte (8 bits per voxel).
-
UBYTE
public static final ModelStorageBase.DataType UBYTE
Data buffer is of type unsigned byte (8 bits per voxel).
-
SHORT
public static final ModelStorageBase.DataType SHORT
Data buffer is of type signed short (16 bits per voxel).
-
USHORT
public static final ModelStorageBase.DataType USHORT
Data buffer is of type unsigned short (16 bits per voxal).
-
INTEGER
public static final ModelStorageBase.DataType INTEGER
Data buffer is of type signed integer (32 bits per voxel).
-
LONG
public static final ModelStorageBase.DataType LONG
Data buffer is of type signed long integer (64 bits per voxel).
-
FLOAT
public static final ModelStorageBase.DataType FLOAT
Data buffer is of type float (32 bits per voxel).
-
DOUBLE
public static final ModelStorageBase.DataType DOUBLE
Data buffer is of type double (64 bits per voxel).
-
ARGB
public static final ModelStorageBase.DataType 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
public static final ModelStorageBase.DataType 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
public static final ModelStorageBase.DataType 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
public static final ModelStorageBase.DataType COMPLEX
Data buffer is of type complex type floats (2 x 64 bits per voxel).
-
DCOMPLEX
public static final ModelStorageBase.DataType DCOMPLEX
Data buffer is of type complex type of doubles (2 x 128 bits per voxel).
-
UINTEGER
public static final ModelStorageBase.DataType UINTEGER
Data buffer is of type unsigned integer (32 bits per voxel).
-
-
Method Detail
-
values
public static ModelStorageBase.DataType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ModelStorageBase.DataType c : ModelStorageBase.DataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ModelStorageBase.DataType valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getLegacyNum
public int getLegacyNum()
-
getTypeMin
public java.lang.Number getTypeMin()
This method returns the min value allowed of the type.- Returns:
- A java.lang.Number
-
getTypeMax
public java.lang.Number getTypeMax()
This method return the max value allowed of the type.- Returns:
- A java.lang.Number
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<ModelStorageBase.DataType>
-
getDataType
public static ModelStorageBase.DataType getDataType(int legacyNum)
-
-