Enum ModelStorageBase.DataType

java.lang.Object
java.lang.Enum<ModelStorageBase.DataType>
gov.nih.mipav.model.structures.ModelStorageBase.DataType
All Implemented Interfaces:
Serializable, Comparable<ModelStorageBase.DataType>, java.lang.constant.Constable
Enclosing class:
ModelStorageBase

public static enum ModelStorageBase.DataType extends Enum<ModelStorageBase.DataType>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    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)
    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
    Modifier and Type
    Field
    Description
    private String
     
    private int
    These variables preserve the legacy ordering of these enums.
    private Number
    Max value allowed of the type
    private Number
    Min value allowed of the type
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    DataType(int legacyNum, String legacyName, Number typeMin, Number typeMax)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getDataType(int legacyNum)
     
    int
     
    This method return the max value allowed of the type.
    This method returns the min value allowed of the type.
     
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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).
    • ARGB_UINTEGER

      public static final ModelStorageBase.DataType ARGB_UINTEGER
  • Field Details

    • legacyNum

      private int legacyNum
      These variables preserve the legacy ordering of these enums.
    • legacyName

      private String legacyName
    • typeMin

      private Number typeMin
      Min value allowed of the type
    • typeMax

      private Number typeMax
      Max value allowed of the type
  • Constructor Details

    • DataType

      private DataType(int legacyNum, String legacyName, Number typeMin, Number typeMax)
  • Method Details

    • values

      public static ModelStorageBase.DataType[] 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

      public static ModelStorageBase.DataType valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getLegacyNum

      public int getLegacyNum()
    • getTypeMin

      public Number getTypeMin()
      This method returns the min value allowed of the type.
      Returns:
      A java.lang.Number
    • getTypeMax

      public Number getTypeMax()
      This method return the max value allowed of the type.
      Returns:
      A java.lang.Number
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ModelStorageBase.DataType>
    • getDataType

      public static ModelStorageBase.DataType getDataType(int legacyNum)