Class ColorBand


  • public class ColorBand
    extends CFacade
    Generated facet for DNA struct type 'ColorBand'.

    Class Documentation

    Blender Source Code

    32 = MAXCOLORBAND note that this has to remain a single struct, for UserDef

    • Field Detail

      • __DNA__SDNA_INDEX

        public static final int __DNA__SDNA_INDEX
        This is the sdna index of the struct ColorBand.

        It is required when allocating a new block to store data for ColorBand.

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __DNA__FIELD__tot

        public static final long[] __DNA__FIELD__tot
        Field descriptor (offset) for struct member 'tot'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         ColorBand colorband = ...;
         CPointer<Object> p = colorband.__dna__addressof(ColorBand.__DNA__FIELD__tot);
         CPointer<Short> p_tot = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'tot'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__cur

        public static final long[] __DNA__FIELD__cur
        Field descriptor (offset) for struct member 'cur'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         ColorBand colorband = ...;
         CPointer<Object> p = colorband.__dna__addressof(ColorBand.__DNA__FIELD__cur);
         CPointer<Short> p_cur = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'cur'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__ipotype

        public static final long[] __DNA__FIELD__ipotype
        Field descriptor (offset) for struct member 'ipotype'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         ColorBand colorband = ...;
         CPointer<Object> p = colorband.__dna__addressof(ColorBand.__DNA__FIELD__ipotype);
         CPointer<Byte> p_ipotype = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'ipotype'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__ipotype_hue

        public static final long[] __DNA__FIELD__ipotype_hue
        Field descriptor (offset) for struct member 'ipotype_hue'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         ColorBand colorband = ...;
         CPointer<Object> p = colorband.__dna__addressof(ColorBand.__DNA__FIELD__ipotype_hue);
         CPointer<Byte> p_ipotype_hue = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'ipotype_hue'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__color_mode

        public static final long[] __DNA__FIELD__color_mode
        Field descriptor (offset) for struct member 'color_mode'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         ColorBand colorband = ...;
         CPointer<Object> p = colorband.__dna__addressof(ColorBand.__DNA__FIELD__color_mode);
         CPointer<Byte> p_color_mode = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'color_mode'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD___pad

        public static final long[] __DNA__FIELD___pad
        Field descriptor (offset) for struct member '_pad'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         ColorBand colorband = ...;
         CPointer<Object> p = colorband.__dna__addressof(ColorBand.__DNA__FIELD___pad);
         CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad'
        • Signature: 'char[1]'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__data

        public static final long[] __DNA__FIELD__data
        Field descriptor (offset) for struct member 'data'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         ColorBand colorband = ...;
         CPointer<Object> p = colorband.__dna__addressof(ColorBand.__DNA__FIELD__data);
         CPointer<CArrayFacade<CBData>> p_data = p.cast(new Class[]{CArrayFacade.class, CBData.class});
         

        Metadata

        • Field: 'data'
        • Signature: 'CBData[32]'
        • Actual Size (32bit/64bit): 768/768
    • Constructor Detail

      • ColorBand

        public ColorBand​(long __address,
                         Block __block,
                         BlockTable __blockTable)
      • ColorBand

        protected ColorBand​(ColorBand that)
    • Method Detail

      • getTot

        public short getTot()
                     throws java.io.IOException
        Get method for struct member 'tot'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tot
      • setTot

        public void setTot​(short tot)
                    throws java.io.IOException
        Set method for struct member 'tot'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tot
      • getCur

        public short getCur()
                     throws java.io.IOException
        Get method for struct member 'cur'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cur
      • setCur

        public void setCur​(short cur)
                    throws java.io.IOException
        Set method for struct member 'cur'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cur
      • getIpotype

        public byte getIpotype()
                        throws java.io.IOException
        Get method for struct member 'ipotype'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ipotype
      • setIpotype

        public void setIpotype​(byte ipotype)
                        throws java.io.IOException
        Set method for struct member 'ipotype'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ipotype
      • getIpotype_hue

        public byte getIpotype_hue()
                            throws java.io.IOException
        Get method for struct member 'ipotype_hue'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ipotype_hue
      • setIpotype_hue

        public void setIpotype_hue​(byte ipotype_hue)
                            throws java.io.IOException
        Set method for struct member 'ipotype_hue'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ipotype_hue
      • getColor_mode

        public byte getColor_mode()
                           throws java.io.IOException
        Get method for struct member 'color_mode'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__color_mode
      • setColor_mode

        public void setColor_mode​(byte color_mode)
                           throws java.io.IOException
        Set method for struct member 'color_mode'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__color_mode
      • get_pad

        public CArrayFacade<java.lang.Byte> get_pad()
                                             throws java.io.IOException
        Get method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • set_pad

        public void set_pad​(CArrayFacade<java.lang.Byte> _pad)
                     throws java.io.IOException
        Set method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • setData

        public void setData​(CArrayFacade<CBData> data)
                     throws java.io.IOException
        Set method for struct member 'data'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data
      • __io__addressof

        public CPointer<ColorBand> __io__addressof()
        Instantiates a pointer on this instance.