Class TreeStoreElem


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         TreeStoreElem treestoreelem = ...;
         CPointer<Object> p = treestoreelem.__dna__addressof(TreeStoreElem.__DNA__FIELD__type);
         CPointer<Short> p_type = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'type'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__nr

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

        Pointer Arithmetics

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

         TreeStoreElem treestoreelem = ...;
         CPointer<Object> p = treestoreelem.__dna__addressof(TreeStoreElem.__DNA__FIELD__nr);
         CPointer<Short> p_nr = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'nr'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __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:

         TreeStoreElem treestoreelem = ...;
         CPointer<Object> p = treestoreelem.__dna__addressof(TreeStoreElem.__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__used

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

        Pointer Arithmetics

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

         TreeStoreElem treestoreelem = ...;
         CPointer<Object> p = treestoreelem.__dna__addressof(TreeStoreElem.__DNA__FIELD__used);
         CPointer<Short> p_used = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'used'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__id

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

        Field Documentation

        Blender Source Code

        XXX We actually also store non-ID data in this pointer for identifying the TreeStoreElem for a TreeElement when rebuilding the tree. Ugly!

        Pointer Arithmetics

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

         TreeStoreElem treestoreelem = ...;
         CPointer<Object> p = treestoreelem.__dna__addressof(TreeStoreElem.__DNA__FIELD__id);
         CPointer<CPointer<ID>> p_id = p.cast(new Class[]{CPointer.class, ID.class});
         

        Metadata

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

      • TreeStoreElem

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

      • getType

        public short getType()
                      throws java.io.IOException
        Get method for struct member 'type'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__type
      • setType

        public void setType​(short type)
                     throws java.io.IOException
        Set method for struct member 'type'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__type
      • getNr

        public short getNr()
                    throws java.io.IOException
        Get method for struct member 'nr'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__nr
      • setNr

        public void setNr​(short nr)
                   throws java.io.IOException
        Set method for struct member 'nr'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__nr
      • getFlag

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

        public short getUsed()
                      throws java.io.IOException
        Get method for struct member 'used'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__used
      • setUsed

        public void setUsed​(short used)
                     throws java.io.IOException
        Set method for struct member 'used'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__used
      • getId

        public CPointer<ID> getId()
                           throws java.io.IOException
        Get method for struct member 'id'.

        Field Documentation

        Blender Source Code

        XXX We actually also store non-ID data in this pointer for identifying the TreeStoreElem for a TreeElement when rebuilding the tree. Ugly!

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__id
      • setId

        public void setId​(CPointer<ID> id)
                   throws java.io.IOException
        Set method for struct member 'id'.

        Field Documentation

        Blender Source Code

        XXX We actually also store non-ID data in this pointer for identifying the TreeStoreElem for a TreeElement when rebuilding the tree. Ugly!

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

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