Class PaintModeSettings


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

    Class Documentation

    Blender Source Code


    Paint mode settings

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Python API

        Source to select canvas from

        Blender Source Code

        Source to select canvas from to paint on (ePaintCanvasSource)

        Pointer Arithmetics

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

         PaintModeSettings paintmodesettings = ...;
         CPointer<Object> p = paintmodesettings.__dna__addressof(PaintModeSettings.__DNA__FIELD__canvas_source);
         CPointer<Byte> p_canvas_source = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'canvas_source'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __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:

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

        Metadata

        • Field: '_pad'
        • Signature: 'char[7]'
        • Actual Size (32bit/64bit): 7/7
      • __DNA__FIELD__canvas_image

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

        Field Documentation

        Blender Python API

        Image used as painting target

        Blender Source Code

        Selected image when canvas_source=PAINT_CANVAS_SOURCE_IMAGE.

        Pointer Arithmetics

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

         PaintModeSettings paintmodesettings = ...;
         CPointer<Object> p = paintmodesettings.__dna__addressof(PaintModeSettings.__DNA__FIELD__canvas_image);
         CPointer<CPointer<Image>> p_canvas_image = p.cast(new Class[]{CPointer.class, Image.class});
         

        Metadata

        • Field: 'canvas_image'
        • 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:

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

        Metadata

        • Field: 'image_user'
        • Signature: 'ImageUser'
        • Actual Size (32bit/64bit): 36/40
    • Constructor Detail

      • PaintModeSettings

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

      • getCanvas_source

        public byte getCanvas_source()
                              throws java.io.IOException
        Get method for struct member 'canvas_source'.

        Field Documentation

        Blender Python API

        Source to select canvas from

        Blender Source Code

        Source to select canvas from to paint on (ePaintCanvasSource)

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__canvas_source
      • setCanvas_source

        public void setCanvas_source​(byte canvas_source)
                              throws java.io.IOException
        Set method for struct member 'canvas_source'.

        Field Documentation

        Blender Python API

        Source to select canvas from

        Blender Source Code

        Source to select canvas from to paint on (ePaintCanvasSource)

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__canvas_source
      • 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
      • getCanvas_image

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

        Field Documentation

        Blender Python API

        Image used as painting target

        Blender Source Code

        Selected image when canvas_source=PAINT_CANVAS_SOURCE_IMAGE.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__canvas_image
      • setCanvas_image

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

        Field Documentation

        Blender Python API

        Image used as painting target

        Blender Source Code

        Selected image when canvas_source=PAINT_CANVAS_SOURCE_IMAGE.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__canvas_image
      • getImage_user

        public ImageUser getImage_user()
                                throws java.io.IOException
        Get method for struct member 'image_user'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__image_user
      • setImage_user

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