Class Simulation


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        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:

         Simulation simulation = ...;
         CPointer<Object> p = simulation.__dna__addressof(Simulation.__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__adt

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

        Field Documentation

        Blender Source Code

        animation data (must be immediately after id)

        Pointer Arithmetics

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

         Simulation simulation = ...;
         CPointer<Object> p = simulation.__dna__addressof(Simulation.__DNA__FIELD__adt);
         CPointer<CPointer<AnimData>> p_adt = p.cast(new Class[]{CPointer.class, AnimData.class});
         

        Metadata

        • Field: 'adt'
        • Signature: 'AnimData*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__nodetree

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

        Field Documentation

        Blender Source Code

        This nodetree is embedded into the data block.

        Pointer Arithmetics

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

         Simulation simulation = ...;
         CPointer<Object> p = simulation.__dna__addressof(Simulation.__DNA__FIELD__nodetree);
         CPointer<CPointer<bNodeTree>> p_nodetree = p.cast(new Class[]{CPointer.class, bNodeTree.class});
         

        Metadata

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

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

        Pointer Arithmetics

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

         Simulation simulation = ...;
         CPointer<Object> p = simulation.__dna__addressof(Simulation.__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___pad

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

        Pointer Arithmetics

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

         Simulation simulation = ...;
         CPointer<Object> p = simulation.__dna__addressof(Simulation.__DNA__FIELD___pad);
         CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad'
        • Signature: 'char[4]'
        • Actual Size (32bit/64bit): 4/4
    • Constructor Detail

      • Simulation

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

        protected Simulation​(Simulation 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
      • getAdt

        public CPointer<AnimData> getAdt()
                                  throws java.io.IOException
        Get method for struct member 'adt'.

        Field Documentation

        Blender Source Code

        animation data (must be immediately after id)

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__adt
      • setAdt

        public void setAdt​(CPointer<AnimData> adt)
                    throws java.io.IOException
        Set method for struct member 'adt'.

        Field Documentation

        Blender Source Code

        animation data (must be immediately after id)

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__adt
      • getNodetree

        public CPointer<bNodeTree> getNodetree()
                                        throws java.io.IOException
        Get method for struct member 'nodetree'.

        Field Documentation

        Blender Source Code

        This nodetree is embedded into the data block.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__nodetree
      • setNodetree

        public void setNodetree​(CPointer<bNodeTree> nodetree)
                         throws java.io.IOException
        Set method for struct member 'nodetree'.

        Field Documentation

        Blender Source Code

        This nodetree is embedded into the data block.

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

        public int getFlag()
                    throws java.io.IOException
        Get method for struct member 'flag'.
        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'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • get_pad

        public CArrayFacade<java.lang.Byte> get_pad()
                                             throws java.io.IOException
        Get method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • set_pad

        public void set_pad​(CArrayFacade<java.lang.Byte> _pad)
                     throws java.io.IOException
        Set method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • __io__addressof

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