Class PaletteColor


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         PaletteColor palettecolor = ...;
         CPointer<Object> p = palettecolor.__dna__addressof(PaletteColor.__DNA__FIELD__next);
         CPointer<CPointer<PaletteColor>> p_next = p.cast(new Class[]{CPointer.class, PaletteColor.class});
         

        Metadata

        • Field: 'next'
        • Signature: 'PaletteColor*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__prev

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

        Pointer Arithmetics

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

         PaletteColor palettecolor = ...;
         CPointer<Object> p = palettecolor.__dna__addressof(PaletteColor.__DNA__FIELD__prev);
         CPointer<CPointer<PaletteColor>> p_prev = p.cast(new Class[]{CPointer.class, PaletteColor.class});
         

        Metadata

        • Field: 'prev'
        • Signature: 'PaletteColor*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__rgb

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

        Field Documentation

        Blender Source Code

        two values, one to store rgb, other to store values for sculpt/weight

        Pointer Arithmetics

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

         PaletteColor palettecolor = ...;
         CPointer<Object> p = palettecolor.__dna__addressof(PaletteColor.__DNA__FIELD__rgb);
         CPointer<CArrayFacade<Float>> p_rgb = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'rgb'
        • Signature: 'float[3]'
        • Actual Size (32bit/64bit): 12/12
      • __DNA__FIELD__value

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

        Pointer Arithmetics

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

         PaletteColor palettecolor = ...;
         CPointer<Object> p = palettecolor.__dna__addressof(PaletteColor.__DNA__FIELD__value);
         CPointer<Float> p_value = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'value'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
    • Constructor Detail

      • PaletteColor

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

        protected PaletteColor​(PaletteColor that)
    • Method Detail

      • getRgb

        public CArrayFacade<java.lang.Float> getRgb()
                                             throws java.io.IOException
        Get method for struct member 'rgb'.

        Field Documentation

        Blender Source Code

        two values, one to store rgb, other to store values for sculpt/weight

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rgb
      • setRgb

        public void setRgb​(CArrayFacade<java.lang.Float> rgb)
                    throws java.io.IOException
        Set method for struct member 'rgb'.

        Field Documentation

        Blender Source Code

        two values, one to store rgb, other to store values for sculpt/weight

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rgb
      • getValue

        public float getValue()
                       throws java.io.IOException
        Get method for struct member 'value'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__value
      • setValue

        public void setValue​(float value)
                      throws java.io.IOException
        Set method for struct member 'value'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__value
      • __io__addressof

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