Class TexPaintSlot


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

    Class Documentation

    Blender Source Code

    WATCH IT: change type? also make changes in ipo.h

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        Image to be painted on. Mutual exclusive with attribute_name.

        Pointer Arithmetics

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

         TexPaintSlot texpaintslot = ...;
         CPointer<Object> p = texpaintslot.__dna__addressof(TexPaintSlot.__DNA__FIELD__ima);
         CPointer<CPointer<Image>> p_ima = p.cast(new Class[]{CPointer.class, Image.class});
         

        Metadata

        • Field: 'ima'
        • Signature: 'Image*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__image_user

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

        Pointer Arithmetics

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

         TexPaintSlot texpaintslot = ...;
         CPointer<Object> p = texpaintslot.__dna__addressof(TexPaintSlot.__DNA__FIELD__image_user);
         CPointer<CPointer<ImageUser>> p_image_user = p.cast(new Class[]{CPointer.class, ImageUser.class});
         

        Metadata

        • Field: 'image_user'
        • Signature: 'ImageUser*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__uvname

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

        Field Documentation

        Blender Source Code

        Custom-data index for uv layer, MAX_NAME .

        Pointer Arithmetics

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

         TexPaintSlot texpaintslot = ...;
         CPointer<Object> p = texpaintslot.__dna__addressof(TexPaintSlot.__DNA__FIELD__uvname);
         CPointer<CPointer<Byte>> p_uvname = p.cast(new Class[]{CPointer.class, Byte.class});
         

        Metadata

        • Field: 'uvname'
        • Signature: 'char*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__attribute_name

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

        Field Documentation

        Blender Source Code

        Color attribute name when painting using color attributes. Mutual exclusive with ima. Points to the name of a CustomDataLayer .

        Pointer Arithmetics

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

         TexPaintSlot texpaintslot = ...;
         CPointer<Object> p = texpaintslot.__dna__addressof(TexPaintSlot.__DNA__FIELD__attribute_name);
         CPointer<CPointer<Byte>> p_attribute_name = p.cast(new Class[]{CPointer.class, Byte.class});
         

        Metadata

        • Field: 'attribute_name'
        • Signature: 'char*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__valid

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

        Field Documentation

        Blender Source Code

        Do we have a valid image and UV map or attribute.

        Pointer Arithmetics

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

         TexPaintSlot texpaintslot = ...;
         CPointer<Object> p = texpaintslot.__dna__addressof(TexPaintSlot.__DNA__FIELD__valid);
         CPointer<Integer> p_valid = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'valid'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__interp

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

        Field Documentation

        Blender Source Code

        Copy of node interpolation setting.

        Pointer Arithmetics

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

         TexPaintSlot texpaintslot = ...;
         CPointer<Object> p = texpaintslot.__dna__addressof(TexPaintSlot.__DNA__FIELD__interp);
         CPointer<Integer> p_interp = p.cast(new Class[]{Integer.class});
         

        Metadata

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

      • TexPaintSlot

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

        protected TexPaintSlot​(TexPaintSlot that)
    • Method Detail

      • getIma

        public CPointer<Image> getIma()
                               throws java.io.IOException
        Get method for struct member 'ima'.

        Field Documentation

        Blender Source Code

        Image to be painted on. Mutual exclusive with attribute_name.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ima
      • setIma

        public void setIma​(CPointer<Image> ima)
                    throws java.io.IOException
        Set method for struct member 'ima'.

        Field Documentation

        Blender Source Code

        Image to be painted on. Mutual exclusive with attribute_name.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ima
      • setImage_user

        public void setImage_user​(CPointer<ImageUser> image_user)
                           throws java.io.IOException
        Set method for struct member 'image_user'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__image_user
      • getUvname

        public CPointer<java.lang.Byte> getUvname()
                                           throws java.io.IOException
        Get method for struct member 'uvname'.

        Field Documentation

        Blender Source Code

        Custom-data index for uv layer, MAX_NAME .

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__uvname
      • setUvname

        public void setUvname​(CPointer<java.lang.Byte> uvname)
                       throws java.io.IOException
        Set method for struct member 'uvname'.

        Field Documentation

        Blender Source Code

        Custom-data index for uv layer, MAX_NAME .

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__uvname
      • getAttribute_name

        public CPointer<java.lang.Byte> getAttribute_name()
                                                   throws java.io.IOException
        Get method for struct member 'attribute_name'.

        Field Documentation

        Blender Source Code

        Color attribute name when painting using color attributes. Mutual exclusive with ima. Points to the name of a CustomDataLayer .

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__attribute_name
      • setAttribute_name

        public void setAttribute_name​(CPointer<java.lang.Byte> attribute_name)
                               throws java.io.IOException
        Set method for struct member 'attribute_name'.

        Field Documentation

        Blender Source Code

        Color attribute name when painting using color attributes. Mutual exclusive with ima. Points to the name of a CustomDataLayer .

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__attribute_name
      • getValid

        public int getValid()
                     throws java.io.IOException
        Get method for struct member 'valid'.

        Field Documentation

        Blender Source Code

        Do we have a valid image and UV map or attribute.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__valid
      • setValid

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

        Field Documentation

        Blender Source Code

        Do we have a valid image and UV map or attribute.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__valid
      • getInterp

        public int getInterp()
                      throws java.io.IOException
        Get method for struct member 'interp'.

        Field Documentation

        Blender Source Code

        Copy of node interpolation setting.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__interp
      • setInterp

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

        Field Documentation

        Blender Source Code

        Copy of node interpolation setting.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__interp
      • __io__addressof

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