Class tPaletteColorHSV


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

    Class Documentation

    Blender Source Code

    Struct to hold palette colors for sorting.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         tPaletteColorHSV tpalettecolorhsv = ...;
         CPointer<Object> p = tpalettecolorhsv.__dna__addressof(tPaletteColorHSV.__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:

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

        Metadata

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

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

        Pointer Arithmetics

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

         tPaletteColorHSV tpalettecolorhsv = ...;
         CPointer<Object> p = tpalettecolorhsv.__dna__addressof(tPaletteColorHSV.__DNA__FIELD__h);
         CPointer<Float> p_h = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'h'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__s

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

        Pointer Arithmetics

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

         tPaletteColorHSV tpalettecolorhsv = ...;
         CPointer<Object> p = tpalettecolorhsv.__dna__addressof(tPaletteColorHSV.__DNA__FIELD__s);
         CPointer<Float> p_s = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 's'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__v

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

        Pointer Arithmetics

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

         tPaletteColorHSV tpalettecolorhsv = ...;
         CPointer<Object> p = tpalettecolorhsv.__dna__addressof(tPaletteColorHSV.__DNA__FIELD__v);
         CPointer<Float> p_v = p.cast(new Class[]{Float.class});
         

        Metadata

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

      • tPaletteColorHSV

        public tPaletteColorHSV​(long __address,
                                Block __block,
                                BlockTable __blockTable)
    • Method Detail

      • getRgb

        public CArrayFacade<java.lang.Float> getRgb()
                                             throws java.io.IOException
        Get method for struct member 'rgb'.
        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'.
        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
      • getH

        public float getH()
                   throws java.io.IOException
        Get method for struct member 'h'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__h
      • setH

        public void setH​(float h)
                  throws java.io.IOException
        Set method for struct member 'h'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__h
      • getS

        public float getS()
                   throws java.io.IOException
        Get method for struct member 's'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__s
      • setS

        public void setS​(float s)
                  throws java.io.IOException
        Set method for struct member 's'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__s
      • getV

        public float getV()
                   throws java.io.IOException
        Get method for struct member 'v'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__v
      • setV

        public void setV​(float v)
                  throws java.io.IOException
        Set method for struct member 'v'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__v