Class FMod_Generator


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

    Class Documentation

    Blender Source Code


    Generator modifier data

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        general generator information Coefficients array.

        Pointer Arithmetics

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

         FMod_Generator fmod_generator = ...;
         CPointer<Object> p = fmod_generator.__dna__addressof(FMod_Generator.__DNA__FIELD__coefficients);
         CPointer<CPointer<Float>> p_coefficients = p.cast(new Class[]{CPointer.class, Float.class});
         

        Metadata

        • Field: 'coefficients'
        • Signature: 'float*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__arraysize

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

        Field Documentation

        Blender Source Code

        Size of the coefficients array.

        Pointer Arithmetics

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

         FMod_Generator fmod_generator = ...;
         CPointer<Object> p = fmod_generator.__dna__addressof(FMod_Generator.__DNA__FIELD__arraysize);
         CPointer<Integer> p_arraysize = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'arraysize'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__poly_order

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

        Field Documentation

        Blender Source Code

        Order of polynomial generated (i.e. 1 for linear, 2 for quadratic).

        Pointer Arithmetics

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

         FMod_Generator fmod_generator = ...;
         CPointer<Object> p = fmod_generator.__dna__addressof(FMod_Generator.__DNA__FIELD__poly_order);
         CPointer<Integer> p_poly_order = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'poly_order'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__mode

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

        Field Documentation

        Blender Source Code

        Which 'generator' to use eFMod_Generator_Modes.

        Pointer Arithmetics

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

         FMod_Generator fmod_generator = ...;
         CPointer<Object> p = fmod_generator.__dna__addressof(FMod_Generator.__DNA__FIELD__mode);
         CPointer<Integer> p_mode = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'mode'
        • Signature: 'int'
        • 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

        Settings.

        Pointer Arithmetics

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

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

        Metadata

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

      • FMod_Generator

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

      • getCoefficients

        public CPointer<java.lang.Float> getCoefficients()
                                                  throws java.io.IOException
        Get method for struct member 'coefficients'.

        Field Documentation

        Blender Source Code

        general generator information Coefficients array.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__coefficients
      • setCoefficients

        public void setCoefficients​(CPointer<java.lang.Float> coefficients)
                             throws java.io.IOException
        Set method for struct member 'coefficients'.

        Field Documentation

        Blender Source Code

        general generator information Coefficients array.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__coefficients
      • getArraysize

        public int getArraysize()
                         throws java.io.IOException
        Get method for struct member 'arraysize'.

        Field Documentation

        Blender Source Code

        Size of the coefficients array.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__arraysize
      • setArraysize

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

        Field Documentation

        Blender Source Code

        Size of the coefficients array.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__arraysize
      • getPoly_order

        public int getPoly_order()
                          throws java.io.IOException
        Get method for struct member 'poly_order'.

        Field Documentation

        Blender Source Code

        Order of polynomial generated (i.e. 1 for linear, 2 for quadratic).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__poly_order
      • setPoly_order

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

        Field Documentation

        Blender Source Code

        Order of polynomial generated (i.e. 1 for linear, 2 for quadratic).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__poly_order
      • getMode

        public int getMode()
                    throws java.io.IOException
        Get method for struct member 'mode'.

        Field Documentation

        Blender Source Code

        Which 'generator' to use eFMod_Generator_Modes.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mode
      • setMode

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

        Field Documentation

        Blender Source Code

        Which 'generator' to use eFMod_Generator_Modes.

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

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

        Field Documentation

        Blender Source Code

        Settings.

        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

        Settings.

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

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