Class PaintCurve


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         PaintCurve paintcurve = ...;
         CPointer<Object> p = paintcurve.__dna__addressof(PaintCurve.__DNA__FIELD__id);
         CPointer<ID> p_id = p.cast(new Class[]{ID.class});
         

        Metadata

        • Field: 'id'
        • Signature: 'ID'
        • Actual Size (32bit/64bit): 152/192
      • __DNA__FIELD__points

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

        Field Documentation

        Blender Source Code

        Points of curve.

        Pointer Arithmetics

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

         PaintCurve paintcurve = ...;
         CPointer<Object> p = paintcurve.__dna__addressof(PaintCurve.__DNA__FIELD__points);
         CPointer<CPointer<PaintCurvePoint>> p_points = p.cast(new Class[]{CPointer.class, PaintCurvePoint.class});
         

        Metadata

        • Field: 'points'
        • Signature: 'PaintCurvePoint*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__tot_points

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

        Pointer Arithmetics

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

         PaintCurve paintcurve = ...;
         CPointer<Object> p = paintcurve.__dna__addressof(PaintCurve.__DNA__FIELD__tot_points);
         CPointer<Integer> p_tot_points = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'tot_points'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__add_index

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

        Field Documentation

        Blender Source Code

        Index where next point will be added.

        Pointer Arithmetics

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

         PaintCurve paintcurve = ...;
         CPointer<Object> p = paintcurve.__dna__addressof(PaintCurve.__DNA__FIELD__add_index);
         CPointer<Integer> p_add_index = p.cast(new Class[]{Integer.class});
         

        Metadata

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

      • PaintCurve

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

        protected PaintCurve​(PaintCurve that)
    • Method Detail

      • getId

        public ID getId()
                 throws java.io.IOException
        Get method for struct member 'id'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__id
      • setId

        public void setId​(ID id)
                   throws java.io.IOException
        Set method for struct member 'id'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__id
      • getPoints

        public CPointer<PaintCurvePoint> getPoints()
                                            throws java.io.IOException
        Get method for struct member 'points'.

        Field Documentation

        Blender Source Code

        Points of curve.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__points
      • setPoints

        public void setPoints​(CPointer<PaintCurvePoint> points)
                       throws java.io.IOException
        Set method for struct member 'points'.

        Field Documentation

        Blender Source Code

        Points of curve.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__points
      • getTot_points

        public int getTot_points()
                          throws java.io.IOException
        Get method for struct member 'tot_points'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tot_points
      • setTot_points

        public void setTot_points​(int tot_points)
                           throws java.io.IOException
        Set method for struct member 'tot_points'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tot_points
      • getAdd_index

        public int getAdd_index()
                         throws java.io.IOException
        Get method for struct member 'add_index'.

        Field Documentation

        Blender Source Code

        Index where next point will be added.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__add_index
      • setAdd_index

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

        Field Documentation

        Blender Source Code

        Index where next point will be added.

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

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