Class CurveProfilePoint


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

    Class Documentation

    Blender Source Code

    Each control point that makes up the profile.

    Note

    The flags use the same enum as Bezier curves, but they aren't guaranteed to have identical functionality, and all types aren't implemented.

    The flags use the same enum as Bezier curves, but they aren't guaranteed to have identical functionality, and all types aren't implemented.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        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

        Location of the point, keep together.

        Pointer Arithmetics

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

         CurveProfilePoint curveprofilepoint = ...;
         CPointer<Object> p = curveprofilepoint.__dna__addressof(CurveProfilePoint.__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:

         CurveProfilePoint curveprofilepoint = ...;
         CPointer<Object> p = curveprofilepoint.__dna__addressof(CurveProfilePoint.__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__flag

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

        Field Documentation

        Blender Source Code

        Flag selection state and others.

        Pointer Arithmetics

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

         CurveProfilePoint curveprofilepoint = ...;
         CPointer<Object> p = curveprofilepoint.__dna__addressof(CurveProfilePoint.__DNA__FIELD__flag);
         CPointer<Short> p_flag = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'flag'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__h1

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

        Field Documentation

        Blender Source Code

        Flags for both handle's type (eBezTriple_Handle).

        Pointer Arithmetics

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

         CurveProfilePoint curveprofilepoint = ...;
         CPointer<Object> p = curveprofilepoint.__dna__addressof(CurveProfilePoint.__DNA__FIELD__h1);
         CPointer<Byte> p_h1 = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'h1'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__h2

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

        Pointer Arithmetics

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

         CurveProfilePoint curveprofilepoint = ...;
         CPointer<Object> p = curveprofilepoint.__dna__addressof(CurveProfilePoint.__DNA__FIELD__h2);
         CPointer<Byte> p_h2 = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'h2'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
    • Constructor Detail

      • CurveProfilePoint

        public CurveProfilePoint​(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

        Location of the point, keep together.

        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

        Location of the point, keep together.

        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
      • getFlag

        public short getFlag()
                      throws java.io.IOException
        Get method for struct member 'flag'.

        Field Documentation

        Blender Source Code

        Flag selection state and others.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • setFlag

        public void setFlag​(short flag)
                     throws java.io.IOException
        Set method for struct member 'flag'.

        Field Documentation

        Blender Source Code

        Flag selection state and others.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • getH1

        public byte getH1()
                   throws java.io.IOException
        Get method for struct member 'h1'.

        Field Documentation

        Blender Source Code

        Flags for both handle's type (eBezTriple_Handle).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__h1
      • setH1

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

        Field Documentation

        Blender Source Code

        Flags for both handle's type (eBezTriple_Handle).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__h1
      • getH2

        public byte getH2()
                   throws java.io.IOException
        Get method for struct member 'h2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__h2
      • setH2

        public void setH2​(byte h2)
                   throws java.io.IOException
        Set method for struct member 'h2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__h2