Class ColorMapping


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         ColorMapping colormapping = ...;
         CPointer<Object> p = colormapping.__dna__addressof(ColorMapping.__DNA__FIELD__coba);
         CPointer<ColorBand> p_coba = p.cast(new Class[]{ColorBand.class});
         

        Metadata

        • Field: 'coba'
        • Signature: 'ColorBand'
        • Actual Size (32bit/64bit): 776/776
      • __DNA__FIELD__bright

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

        Pointer Arithmetics

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

         ColorMapping colormapping = ...;
         CPointer<Object> p = colormapping.__dna__addressof(ColorMapping.__DNA__FIELD__bright);
         CPointer<Float> p_bright = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'bright'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__contrast

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

        Field Documentation

        Blender Python API

        Adjust the contrast of the texture

        Pointer Arithmetics

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

         ColorMapping colormapping = ...;
         CPointer<Object> p = colormapping.__dna__addressof(ColorMapping.__DNA__FIELD__contrast);
         CPointer<Float> p_contrast = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'contrast'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__saturation

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

        Field Documentation

        Blender Python API

        Adjust the saturation of colors in the texture

        Pointer Arithmetics

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

         ColorMapping colormapping = ...;
         CPointer<Object> p = colormapping.__dna__addressof(ColorMapping.__DNA__FIELD__saturation);
         CPointer<Float> p_saturation = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'saturation'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__flag

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

        Pointer Arithmetics

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

         ColorMapping colormapping = ...;
         CPointer<Object> p = colormapping.__dna__addressof(ColorMapping.__DNA__FIELD__flag);
         CPointer<Integer> p_flag = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'flag'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__blend_color

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

        Field Documentation

        Blender Python API

        Blend color to mix with texture output color

        Pointer Arithmetics

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

         ColorMapping colormapping = ...;
         CPointer<Object> p = colormapping.__dna__addressof(ColorMapping.__DNA__FIELD__blend_color);
         CPointer<CArrayFacade<Float>> p_blend_color = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

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

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

        Pointer Arithmetics

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

         ColorMapping colormapping = ...;
         CPointer<Object> p = colormapping.__dna__addressof(ColorMapping.__DNA__FIELD__blend_factor);
         CPointer<Float> p_blend_factor = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'blend_factor'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__blend_type

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

        Field Documentation

        Blender Python API

        Mode used to mix with texture output color

        Pointer Arithmetics

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

         ColorMapping colormapping = ...;
         CPointer<Object> p = colormapping.__dna__addressof(ColorMapping.__DNA__FIELD__blend_type);
         CPointer<Integer> p_blend_type = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'blend_type'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __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:

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

        Metadata

        • Field: '_pad'
        • Signature: 'char[4]'
        • Actual Size (32bit/64bit): 4/4
    • Constructor Detail

      • ColorMapping

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

        protected ColorMapping​(ColorMapping that)
    • Method Detail

      • getCoba

        public ColorBand getCoba()
                          throws java.io.IOException
        Get method for struct member 'coba'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__coba
      • setCoba

        public void setCoba​(ColorBand coba)
                     throws java.io.IOException
        Set method for struct member 'coba'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__coba
      • getBright

        public float getBright()
                        throws java.io.IOException
        Get method for struct member 'bright'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__bright
      • setBright

        public void setBright​(float bright)
                       throws java.io.IOException
        Set method for struct member 'bright'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__bright
      • getContrast

        public float getContrast()
                          throws java.io.IOException
        Get method for struct member 'contrast'.

        Field Documentation

        Blender Python API

        Adjust the contrast of the texture
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__contrast
      • setContrast

        public void setContrast​(float contrast)
                         throws java.io.IOException
        Set method for struct member 'contrast'.

        Field Documentation

        Blender Python API

        Adjust the contrast of the texture
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__contrast
      • getSaturation

        public float getSaturation()
                            throws java.io.IOException
        Get method for struct member 'saturation'.

        Field Documentation

        Blender Python API

        Adjust the saturation of colors in the texture
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__saturation
      • setSaturation

        public void setSaturation​(float saturation)
                           throws java.io.IOException
        Set method for struct member 'saturation'.

        Field Documentation

        Blender Python API

        Adjust the saturation of colors in the texture
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__saturation
      • getFlag

        public int getFlag()
                    throws java.io.IOException
        Get method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • setFlag

        public void setFlag​(int flag)
                     throws java.io.IOException
        Set method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • getBlend_color

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

        Field Documentation

        Blender Python API

        Blend color to mix with texture output color
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__blend_color
      • setBlend_color

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

        Field Documentation

        Blender Python API

        Blend color to mix with texture output color
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__blend_color
      • getBlend_factor

        public float getBlend_factor()
                              throws java.io.IOException
        Get method for struct member 'blend_factor'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__blend_factor
      • setBlend_factor

        public void setBlend_factor​(float blend_factor)
                             throws java.io.IOException
        Set method for struct member 'blend_factor'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__blend_factor
      • getBlend_type

        public int getBlend_type()
                          throws java.io.IOException
        Get method for struct member 'blend_type'.

        Field Documentation

        Blender Python API

        Mode used to mix with texture output color
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__blend_type
      • setBlend_type

        public void setBlend_type​(int blend_type)
                           throws java.io.IOException
        Set method for struct member 'blend_type'.

        Field Documentation

        Blender Python API

        Mode used to mix with texture output color
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__blend_type
      • 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
      • __io__addressof

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