Class Paint


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

    Class Documentation

    Blender Source Code

    Paint Tool Base .

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Python API

        Active Brush

        Pointer Arithmetics

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

         Paint paint = ...;
         CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__brush);
         CPointer<CPointer<Brush>> p_brush = p.cast(new Class[]{CPointer.class, Brush.class});
         

        Metadata

        • Field: 'brush'
        • Signature: 'Brush*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__tool_slots

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

        Field Documentation

        Blender Python API

        (read-only)

        Blender Source Code

        Each tool has its own active brush, The currently active tool is defined by the current 'brush'.

        Pointer Arithmetics

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

         Paint paint = ...;
         CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__tool_slots);
         CPointer<CPointer<PaintToolSlot>> p_tool_slots = p.cast(new Class[]{CPointer.class, PaintToolSlot.class});
         

        Metadata

        • Field: 'tool_slots'
        • Signature: 'PaintToolSlot*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__tool_slots_len

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

        Pointer Arithmetics

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

         Paint paint = ...;
         CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__tool_slots_len);
         CPointer<Integer> p_tool_slots_len = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'tool_slots_len'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD___pad1

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

        Pointer Arithmetics

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

         Paint paint = ...;
         CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD___pad1);
         CPointer<CArrayFacade<Byte>> p__pad1 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad1'
        • Signature: 'char[4]'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__palette

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

        Field Documentation

        Blender Python API

        Active Palette

        Pointer Arithmetics

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

         Paint paint = ...;
         CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__palette);
         CPointer<CPointer<Palette>> p_palette = p.cast(new Class[]{CPointer.class, Palette.class});
         

        Metadata

        • Field: 'palette'
        • Signature: 'Palette*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__cavity_curve

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

        Field Documentation

        Blender Python API

        (read-only) Editable cavity curve

        Blender Source Code

        Cavity curve.

        Pointer Arithmetics

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

         Paint paint = ...;
         CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__cavity_curve);
         CPointer<CPointer<CurveMapping>> p_cavity_curve = p.cast(new Class[]{CPointer.class, CurveMapping.class});
         

        Metadata

        • Field: 'cavity_curve'
        • Signature: 'CurveMapping*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__paint_cursor

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

        Field Documentation

        Blender Source Code

        WM Paint cursor

        Pointer Arithmetics

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

         Paint paint = ...;
         CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__paint_cursor);
         CPointer<CPointer<Object>> p_paint_cursor = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

        • Field: 'paint_cursor'
        • Signature: 'void*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__paint_cursor_col

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

        Pointer Arithmetics

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

         Paint paint = ...;
         CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__paint_cursor_col);
         CPointer<CArrayFacade<Byte>> p_paint_cursor_col = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: 'paint_cursor_col'
        • Signature: 'char[4]'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__flags

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

        Field Documentation

        Blender Source Code

        enum ePaintFlags

        Pointer Arithmetics

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

         Paint paint = ...;
         CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__flags);
         CPointer<Integer> p_flags = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'flags'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__num_input_samples

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

        Field Documentation

        Blender Source Code

        Paint stroke can use up to PAINT_MAX_INPUT_SAMPLES inputs to smooth the stroke

        Pointer Arithmetics

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

         Paint paint = ...;
         CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__num_input_samples);
         CPointer<Integer> p_num_input_samples = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'num_input_samples'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__symmetry_flags

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

        Field Documentation

        Blender Source Code

        flags used for symmetry

        Pointer Arithmetics

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

         Paint paint = ...;
         CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__symmetry_flags);
         CPointer<Integer> p_symmetry_flags = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'symmetry_flags'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__tile_offset

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

        Field Documentation

        Blender Python API

        Stride at which tiled strokes are copied

        Pointer Arithmetics

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

         Paint paint = ...;
         CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__tile_offset);
         CPointer<CArrayFacade<Float>> p_tile_offset = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

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

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

        Pointer Arithmetics

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

         Paint paint = ...;
         CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD___pad2);
         CPointer<CArrayFacade<Byte>> p__pad2 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad2'
        • Signature: 'char[4]'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__runtime

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

        Pointer Arithmetics

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

         Paint paint = ...;
         CPointer<Object> p = paint.__dna__addressof(Paint.__DNA__FIELD__runtime);
         CPointer<Paint_Runtime> p_runtime = p.cast(new Class[]{Paint_Runtime.class});
         

        Metadata

        • Field: 'runtime'
        • Signature: 'Paint_Runtime'
        • Actual Size (32bit/64bit): 8/8
    • Constructor Detail

      • Paint

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

        protected Paint​(Paint that)
    • Method Detail

      • getBrush

        public CPointer<Brush> getBrush()
                                 throws java.io.IOException
        Get method for struct member 'brush'.

        Field Documentation

        Blender Python API

        Active Brush
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__brush
      • setBrush

        public void setBrush​(CPointer<Brush> brush)
                      throws java.io.IOException
        Set method for struct member 'brush'.

        Field Documentation

        Blender Python API

        Active Brush
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__brush
      • getTool_slots

        public CPointer<PaintToolSlot> getTool_slots()
                                              throws java.io.IOException
        Get method for struct member 'tool_slots'.

        Field Documentation

        Blender Python API

        (read-only)

        Blender Source Code

        Each tool has its own active brush, The currently active tool is defined by the current 'brush'.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tool_slots
      • setTool_slots

        public void setTool_slots​(CPointer<PaintToolSlot> tool_slots)
                           throws java.io.IOException
        Set method for struct member 'tool_slots'.

        Field Documentation

        Blender Python API

        (read-only)

        Blender Source Code

        Each tool has its own active brush, The currently active tool is defined by the current 'brush'.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tool_slots
      • getTool_slots_len

        public int getTool_slots_len()
                              throws java.io.IOException
        Get method for struct member 'tool_slots_len'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tool_slots_len
      • setTool_slots_len

        public void setTool_slots_len​(int tool_slots_len)
                               throws java.io.IOException
        Set method for struct member 'tool_slots_len'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tool_slots_len
      • get_pad1

        public CArrayFacade<java.lang.Byte> get_pad1()
                                              throws java.io.IOException
        Get method for struct member '_pad1'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad1
      • set_pad1

        public void set_pad1​(CArrayFacade<java.lang.Byte> _pad1)
                      throws java.io.IOException
        Set method for struct member '_pad1'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad1
      • getPalette

        public CPointer<Palette> getPalette()
                                     throws java.io.IOException
        Get method for struct member 'palette'.

        Field Documentation

        Blender Python API

        Active Palette
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__palette
      • setPalette

        public void setPalette​(CPointer<Palette> palette)
                        throws java.io.IOException
        Set method for struct member 'palette'.

        Field Documentation

        Blender Python API

        Active Palette
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__palette
      • getCavity_curve

        public CPointer<CurveMapping> getCavity_curve()
                                               throws java.io.IOException
        Get method for struct member 'cavity_curve'.

        Field Documentation

        Blender Python API

        (read-only) Editable cavity curve

        Blender Source Code

        Cavity curve.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cavity_curve
      • setCavity_curve

        public void setCavity_curve​(CPointer<CurveMapping> cavity_curve)
                             throws java.io.IOException
        Set method for struct member 'cavity_curve'.

        Field Documentation

        Blender Python API

        (read-only) Editable cavity curve

        Blender Source Code

        Cavity curve.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cavity_curve
      • getPaint_cursor

        public CPointer<java.lang.Object> getPaint_cursor()
                                                   throws java.io.IOException
        Get method for struct member 'paint_cursor'.

        Field Documentation

        Blender Source Code

        WM Paint cursor

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__paint_cursor
      • setPaint_cursor

        public void setPaint_cursor​(CPointer<java.lang.Object> paint_cursor)
                             throws java.io.IOException
        Set method for struct member 'paint_cursor'.

        Field Documentation

        Blender Source Code

        WM Paint cursor

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__paint_cursor
      • getPaint_cursor_col

        public CArrayFacade<java.lang.Byte> getPaint_cursor_col()
                                                         throws java.io.IOException
        Get method for struct member 'paint_cursor_col'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__paint_cursor_col
      • setPaint_cursor_col

        public void setPaint_cursor_col​(CArrayFacade<java.lang.Byte> paint_cursor_col)
                                 throws java.io.IOException
        Set method for struct member 'paint_cursor_col'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__paint_cursor_col
      • getFlags

        public int getFlags()
                     throws java.io.IOException
        Get method for struct member 'flags'.

        Field Documentation

        Blender Source Code

        enum ePaintFlags

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flags
      • setFlags

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

        Field Documentation

        Blender Source Code

        enum ePaintFlags

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flags
      • getNum_input_samples

        public int getNum_input_samples()
                                 throws java.io.IOException
        Get method for struct member 'num_input_samples'.

        Field Documentation

        Blender Source Code

        Paint stroke can use up to PAINT_MAX_INPUT_SAMPLES inputs to smooth the stroke

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__num_input_samples
      • setNum_input_samples

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

        Field Documentation

        Blender Source Code

        Paint stroke can use up to PAINT_MAX_INPUT_SAMPLES inputs to smooth the stroke

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__num_input_samples
      • getSymmetry_flags

        public int getSymmetry_flags()
                              throws java.io.IOException
        Get method for struct member 'symmetry_flags'.

        Field Documentation

        Blender Source Code

        flags used for symmetry

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__symmetry_flags
      • setSymmetry_flags

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

        Field Documentation

        Blender Source Code

        flags used for symmetry

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__symmetry_flags
      • getTile_offset

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

        Field Documentation

        Blender Python API

        Stride at which tiled strokes are copied
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tile_offset
      • setTile_offset

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

        Field Documentation

        Blender Python API

        Stride at which tiled strokes are copied
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tile_offset
      • get_pad2

        public CArrayFacade<java.lang.Byte> get_pad2()
                                              throws java.io.IOException
        Get method for struct member '_pad2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad2
      • set_pad2

        public void set_pad2​(CArrayFacade<java.lang.Byte> _pad2)
                      throws java.io.IOException
        Set method for struct member '_pad2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad2
      • getRuntime

        public Paint_Runtime getRuntime()
                                 throws java.io.IOException
        Get method for struct member 'runtime'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__runtime
      • setRuntime

        public void setRuntime​(Paint_Runtime runtime)
                        throws java.io.IOException
        Set method for struct member 'runtime'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__runtime
      • __io__addressof

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