Class BrushClone


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        Image for clone tool.

        Pointer Arithmetics

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

         BrushClone brushclone = ...;
         CPointer<Object> p = brushclone.__dna__addressof(BrushClone.__DNA__FIELD__image);
         CPointer<CPointer<Image>> p_image = p.cast(new Class[]{CPointer.class, Image.class});
         

        Metadata

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

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

        Field Documentation

        Blender Source Code

        Offset of clone image from canvas.

        Pointer Arithmetics

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

         BrushClone brushclone = ...;
         CPointer<Object> p = brushclone.__dna__addressof(BrushClone.__DNA__FIELD__offset);
         CPointer<CArrayFacade<Float>> p_offset = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'offset'
        • Signature: 'float[2]'
        • Actual Size (32bit/64bit): 8/8
      • __DNA__FIELD__alpha

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

        Field Documentation

        Blender Source Code

        Transparency for drawing of clone image.

        Pointer Arithmetics

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

         BrushClone brushclone = ...;
         CPointer<Object> p = brushclone.__dna__addressof(BrushClone.__DNA__FIELD__alpha);
         CPointer<Float> p_alpha = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'alpha'
        • Signature: 'float'
        • 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:

         BrushClone brushclone = ...;
         CPointer<Object> p = brushclone.__dna__addressof(BrushClone.__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

      • BrushClone

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

        protected BrushClone​(BrushClone that)
    • Method Detail

      • getImage

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

        Field Documentation

        Blender Source Code

        Image for clone tool.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__image
      • setImage

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

        Field Documentation

        Blender Source Code

        Image for clone tool.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__image
      • getOffset

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

        Field Documentation

        Blender Source Code

        Offset of clone image from canvas.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__offset
      • setOffset

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

        Field Documentation

        Blender Source Code

        Offset of clone image from canvas.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__offset
      • getAlpha

        public float getAlpha()
                       throws java.io.IOException
        Get method for struct member 'alpha'.

        Field Documentation

        Blender Source Code

        Transparency for drawing of clone image.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__alpha
      • setAlpha

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

        Field Documentation

        Blender Source Code

        Transparency for drawing of clone image.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__alpha
      • 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<BrushClone> __io__addressof()
        Instantiates a pointer on this instance.