Class bGPDcontrolpoint


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

    Class Documentation

    Blender Source Code


    GP Stroke Points 'Control Point' data for primitives and curves

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        X and y coordinates of control point.

        Pointer Arithmetics

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

         bGPDcontrolpoint bgpdcontrolpoint = ...;
         CPointer<Object> p = bgpdcontrolpoint.__dna__addressof(bGPDcontrolpoint.__DNA__FIELD__x);
         CPointer<Float> p_x = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'x'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__y

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

        Pointer Arithmetics

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

         bGPDcontrolpoint bgpdcontrolpoint = ...;
         CPointer<Object> p = bgpdcontrolpoint.__dna__addressof(bGPDcontrolpoint.__DNA__FIELD__y);
         CPointer<Float> p_y = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'y'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__z

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

        Pointer Arithmetics

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

         bGPDcontrolpoint bgpdcontrolpoint = ...;
         CPointer<Object> p = bgpdcontrolpoint.__dna__addressof(bGPDcontrolpoint.__DNA__FIELD__z);
         CPointer<Float> p_z = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'z'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__color

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

        Field Documentation

        Blender Source Code

        Point color.

        Pointer Arithmetics

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

         bGPDcontrolpoint bgpdcontrolpoint = ...;
         CPointer<Object> p = bgpdcontrolpoint.__dna__addressof(bGPDcontrolpoint.__DNA__FIELD__color);
         CPointer<CArrayFacade<Float>> p_color = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'color'
        • Signature: 'float[4]'
        • Actual Size (32bit/64bit): 16/16
      • __DNA__FIELD__size

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

        Field Documentation

        Blender Source Code

        Radius.

        Pointer Arithmetics

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

         bGPDcontrolpoint bgpdcontrolpoint = ...;
         CPointer<Object> p = bgpdcontrolpoint.__dna__addressof(bGPDcontrolpoint.__DNA__FIELD__size);
         CPointer<Integer> p_size = p.cast(new Class[]{Integer.class});
         

        Metadata

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

      • bGPDcontrolpoint

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

      • getX

        public float getX()
                   throws java.io.IOException
        Get method for struct member 'x'.

        Field Documentation

        Blender Source Code

        X and y coordinates of control point.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__x
      • setX

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

        Field Documentation

        Blender Source Code

        X and y coordinates of control point.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__x
      • getY

        public float getY()
                   throws java.io.IOException
        Get method for struct member 'y'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__y
      • setY

        public void setY​(float y)
                  throws java.io.IOException
        Set method for struct member 'y'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__y
      • getZ

        public float getZ()
                   throws java.io.IOException
        Get method for struct member 'z'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__z
      • setZ

        public void setZ​(float z)
                  throws java.io.IOException
        Set method for struct member 'z'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__z
      • getColor

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

        Field Documentation

        Blender Source Code

        Point color.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__color
      • setColor

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

        Field Documentation

        Blender Source Code

        Point color.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__color
      • getSize

        public int getSize()
                    throws java.io.IOException
        Get method for struct member 'size'.

        Field Documentation

        Blender Source Code

        Radius.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__size
      • setSize

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

        Field Documentation

        Blender Source Code

        Radius.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__size