Class TreeStore


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

    Class Documentation

    Blender Source Code

    Used only to store data in blend files.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

        public static final long[] __DNA__FIELD__totelem
        Deprecated.
        Deprecated

        Pointer Arithmetics

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

         TreeStore treestore = ...;
         CPointer<Object> p = treestore.__dna__addressof(TreeStore.__DNA__FIELD__totelem);
         CPointer<Integer> p_totelem = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'totelem'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
        Field descriptor (offset) for struct member 'totelem'.

        Field Documentation

        Blender Source Code

        Was previously used for memory pre-allocation.

      • __DNA__FIELD__usedelem

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

        Field Documentation

        Blender Source Code

        Number of elements in data array.

        Pointer Arithmetics

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

         TreeStore treestore = ...;
         CPointer<Object> p = treestore.__dna__addressof(TreeStore.__DNA__FIELD__usedelem);
         CPointer<Integer> p_usedelem = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'usedelem'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__data

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

        Field Documentation

        Blender Source Code

        .

        Pointer Arithmetics

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

         TreeStore treestore = ...;
         CPointer<Object> p = treestore.__dna__addressof(TreeStore.__DNA__FIELD__data);
         CPointer<CPointer<TreeStoreElem>> p_data = p.cast(new Class[]{CPointer.class, TreeStoreElem.class});
         

        Metadata

        • Field: 'data'
        • Signature: 'TreeStoreElem*'
        • Actual Size (32bit/64bit): 4/8
    • Constructor Detail

      • TreeStore

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

        protected TreeStore​(TreeStore that)
    • Method Detail

      • getTotelem

        public int getTotelem()
                       throws java.io.IOException
        Deprecated.
        Deprecated

        Get method for struct member 'totelem'.

        Field Documentation

        Blender Source Code

        Was previously used for memory pre-allocation.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__totelem
      • setTotelem

        public void setTotelem​(int totelem)
                        throws java.io.IOException
        Deprecated.
        Deprecated

        Set method for struct member 'totelem'.

        Field Documentation

        Blender Source Code

        Was previously used for memory pre-allocation.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__totelem
      • getUsedelem

        public int getUsedelem()
                        throws java.io.IOException
        Get method for struct member 'usedelem'.

        Field Documentation

        Blender Source Code

        Number of elements in data array.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__usedelem
      • setUsedelem

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

        Field Documentation

        Blender Source Code

        Number of elements in data array.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__usedelem
      • getData

        public CPointer<TreeStoreElem> getData()
                                        throws java.io.IOException
        Get method for struct member 'data'.

        Field Documentation

        Blender Source Code

        .

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data
      • setData

        public void setData​(CPointer<TreeStoreElem> data)
                     throws java.io.IOException
        Set method for struct member 'data'.

        Field Documentation

        Blender Source Code

        .

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

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