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 type
      private 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)  
    • Enum Constant Detail

      • 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).
    • Field Detail

      • legacyNum

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

        private java.lang.String legacyName
      • typeMin

        private java.lang.Number typeMin
        Min value allowed of the type
      • typeMax

        private java.lang.Number typeMax
        Max value allowed of the type
    • Constructor Detail

      • DataType

        private DataType​(int legacyNum,
                         java.lang.String legacyName,
                         java.lang.Number typeMin,
                         java.lang.Number typeMax)
    • 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 name
        java.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