Class CurveProfile


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

    Class Documentation

    Blender Source Code

    Defines a profile.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        Number of user-added points that define the profile.

        Pointer Arithmetics

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

         CurveProfile curveprofile = ...;
         CPointer<Object> p = curveprofile.__dna__addressof(CurveProfile.__DNA__FIELD__path_len);
         CPointer<Short> p_path_len = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'path_len'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__segments_len

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

        Field Documentation

        Blender Source Code

        Number of sampled points.

        Pointer Arithmetics

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

         CurveProfile curveprofile = ...;
         CPointer<Object> p = curveprofile.__dna__addressof(CurveProfile.__DNA__FIELD__segments_len);
         CPointer<Short> p_segments_len = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'segments_len'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__preset

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

        Field Documentation

        Blender Source Code

        Preset to use when reset.

        Pointer Arithmetics

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

         CurveProfile curveprofile = ...;
         CPointer<Object> p = curveprofile.__dna__addressof(CurveProfile.__DNA__FIELD__preset);
         CPointer<Integer> p_preset = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'preset'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__path

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

        Field Documentation

        Blender Source Code

        Sequence of points defining the shape of the curve.

        Pointer Arithmetics

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

         CurveProfile curveprofile = ...;
         CPointer<Object> p = curveprofile.__dna__addressof(CurveProfile.__DNA__FIELD__path);
         CPointer<CPointer<CurveProfilePoint>> p_path = p.cast(new Class[]{CPointer.class, CurveProfilePoint.class});
         

        Metadata

        • Field: 'path'
        • Signature: 'CurveProfilePoint*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__table

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

        Field Documentation

        Blender Source Code

        Display and evaluation table at higher resolution for curves.

        Pointer Arithmetics

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

         CurveProfile curveprofile = ...;
         CPointer<Object> p = curveprofile.__dna__addressof(CurveProfile.__DNA__FIELD__table);
         CPointer<CPointer<CurveProfilePoint>> p_table = p.cast(new Class[]{CPointer.class, CurveProfilePoint.class});
         

        Metadata

        • Field: 'table'
        • Signature: 'CurveProfilePoint*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__segments

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

        Field Documentation

        Blender Python API

        (read-only) Segments sampled from control points

        Blender Source Code

        The positions of the sampled points. Used to display a preview of where they will be.

        Pointer Arithmetics

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

         CurveProfile curveprofile = ...;
         CPointer<Object> p = curveprofile.__dna__addressof(CurveProfile.__DNA__FIELD__segments);
         CPointer<CPointer<CurveProfilePoint>> p_segments = p.cast(new Class[]{CPointer.class, CurveProfilePoint.class});
         

        Metadata

        • Field: 'segments'
        • Signature: 'CurveProfilePoint*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__flag

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

        Field Documentation

        Blender Source Code

        Flag for mode states, sampling options, etc...

        Pointer Arithmetics

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

         CurveProfile curveprofile = ...;
         CPointer<Object> p = curveprofile.__dna__addressof(CurveProfile.__DNA__FIELD__flag);
         CPointer<Integer> p_flag = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'flag'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__changed_timestamp

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

        Field Documentation

        Blender Source Code

        Used for keeping track how many times the widget is changed.

        Pointer Arithmetics

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

         CurveProfile curveprofile = ...;
         CPointer<Object> p = curveprofile.__dna__addressof(CurveProfile.__DNA__FIELD__changed_timestamp);
         CPointer<Integer> p_changed_timestamp = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'changed_timestamp'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__view_rect

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

        Field Documentation

        Blender Source Code

        Widget's current view, and clipping rect (is default rect too).

        Pointer Arithmetics

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

         CurveProfile curveprofile = ...;
         CPointer<Object> p = curveprofile.__dna__addressof(CurveProfile.__DNA__FIELD__view_rect);
         CPointer<rctf> p_view_rect = p.cast(new Class[]{rctf.class});
         

        Metadata

        • Field: 'view_rect'
        • Signature: 'rctf'
        • Actual Size (32bit/64bit): 16/16
      • __DNA__FIELD__clip_rect

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

        Pointer Arithmetics

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

         CurveProfile curveprofile = ...;
         CPointer<Object> p = curveprofile.__dna__addressof(CurveProfile.__DNA__FIELD__clip_rect);
         CPointer<rctf> p_clip_rect = p.cast(new Class[]{rctf.class});
         

        Metadata

        • Field: 'clip_rect'
        • Signature: 'rctf'
        • Actual Size (32bit/64bit): 16/16
    • Constructor Detail

      • CurveProfile

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

        protected CurveProfile​(CurveProfile that)
    • Method Detail

      • getPath_len

        public short getPath_len()
                          throws java.io.IOException
        Get method for struct member 'path_len'.

        Field Documentation

        Blender Source Code

        Number of user-added points that define the profile.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__path_len
      • setPath_len

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

        Field Documentation

        Blender Source Code

        Number of user-added points that define the profile.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__path_len
      • getSegments_len

        public short getSegments_len()
                              throws java.io.IOException
        Get method for struct member 'segments_len'.

        Field Documentation

        Blender Source Code

        Number of sampled points.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__segments_len
      • setSegments_len

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

        Field Documentation

        Blender Source Code

        Number of sampled points.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__segments_len
      • getPreset

        public int getPreset()
                      throws java.io.IOException
        Get method for struct member 'preset'.

        Field Documentation

        Blender Source Code

        Preset to use when reset.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__preset
      • setPreset

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

        Field Documentation

        Blender Source Code

        Preset to use when reset.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__preset
      • getPath

        public CPointer<CurveProfilePoint> getPath()
                                            throws java.io.IOException
        Get method for struct member 'path'.

        Field Documentation

        Blender Source Code

        Sequence of points defining the shape of the curve.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__path
      • setPath

        public void setPath​(CPointer<CurveProfilePoint> path)
                     throws java.io.IOException
        Set method for struct member 'path'.

        Field Documentation

        Blender Source Code

        Sequence of points defining the shape of the curve.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__path
      • getTable

        public CPointer<CurveProfilePoint> getTable()
                                             throws java.io.IOException
        Get method for struct member 'table'.

        Field Documentation

        Blender Source Code

        Display and evaluation table at higher resolution for curves.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__table
      • setTable

        public void setTable​(CPointer<CurveProfilePoint> table)
                      throws java.io.IOException
        Set method for struct member 'table'.

        Field Documentation

        Blender Source Code

        Display and evaluation table at higher resolution for curves.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__table
      • getSegments

        public CPointer<CurveProfilePoint> getSegments()
                                                throws java.io.IOException
        Get method for struct member 'segments'.

        Field Documentation

        Blender Python API

        (read-only) Segments sampled from control points

        Blender Source Code

        The positions of the sampled points. Used to display a preview of where they will be.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__segments
      • setSegments

        public void setSegments​(CPointer<CurveProfilePoint> segments)
                         throws java.io.IOException
        Set method for struct member 'segments'.

        Field Documentation

        Blender Python API

        (read-only) Segments sampled from control points

        Blender Source Code

        The positions of the sampled points. Used to display a preview of where they will be.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__segments
      • getFlag

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

        Field Documentation

        Blender Source Code

        Flag for mode states, sampling options, etc...

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

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

        Field Documentation

        Blender Source Code

        Flag for mode states, sampling options, etc...

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

        public int getChanged_timestamp()
                                 throws java.io.IOException
        Get method for struct member 'changed_timestamp'.

        Field Documentation

        Blender Source Code

        Used for keeping track how many times the widget is changed.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__changed_timestamp
      • setChanged_timestamp

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

        Field Documentation

        Blender Source Code

        Used for keeping track how many times the widget is changed.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__changed_timestamp
      • getView_rect

        public rctf getView_rect()
                          throws java.io.IOException
        Get method for struct member 'view_rect'.

        Field Documentation

        Blender Source Code

        Widget's current view, and clipping rect (is default rect too).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__view_rect
      • setView_rect

        public void setView_rect​(rctf view_rect)
                          throws java.io.IOException
        Set method for struct member 'view_rect'.

        Field Documentation

        Blender Source Code

        Widget's current view, and clipping rect (is default rect too).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__view_rect
      • getClip_rect

        public rctf getClip_rect()
                          throws java.io.IOException
        Get method for struct member 'clip_rect'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__clip_rect
      • setClip_rect

        public void setClip_rect​(rctf clip_rect)
                          throws java.io.IOException
        Set method for struct member 'clip_rect'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__clip_rect
      • __io__addressof

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