Class Base


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

    Class Documentation

    Java .Blend

    Wrapper for referencing Objects in a Scene
    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Java .Blend

        next object

        Pointer Arithmetics

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

         Base base = ...;
         CPointer<Object> p = base.__dna__addressof(Base.__DNA__FIELD__next);
         CPointer<CPointer<Base>> p_next = p.cast(new Class[]{CPointer.class, Base.class});
         

        Metadata

        • Field: 'next'
        • Signature: 'Base*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__prev

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

        Field Documentation

        Java .Blend

        previous object

        Pointer Arithmetics

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

         Base base = ...;
         CPointer<Object> p = base.__dna__addressof(Base.__DNA__FIELD__prev);
         CPointer<CPointer<Base>> p_prev = p.cast(new Class[]{CPointer.class, Base.class});
         

        Metadata

        • Field: 'prev'
        • Signature: 'Base*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__object

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

        Field Documentation

        Java .Blend

        this object

        Pointer Arithmetics

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

         Base base = ...;
         CPointer<Object> p = base.__dna__addressof(Base.__DNA__FIELD__object);
         CPointer<CPointer<BlenderObject>> p_object = p.cast(new Class[]{CPointer.class, BlenderObject.class});
         

        Metadata

        • Field: 'object'
        • Signature: 'Object*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__base_orig

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

        Field Documentation

        Blender Source Code

        Pointer to an original base. Is initialized for evaluated view layer. NOTE: Only allowed to be accessed from within active dependency graph.

        Pointer Arithmetics

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

         Base base = ...;
         CPointer<Object> p = base.__dna__addressof(Base.__DNA__FIELD__base_orig);
         CPointer<CPointer<Base>> p_base_orig = p.cast(new Class[]{CPointer.class, Base.class});
         

        Metadata

        • Field: 'base_orig'
        • Signature: 'Base*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__lay

        public static final long[] __DNA__FIELD__lay
        Deprecated.
        Deprecated

        Pointer Arithmetics

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

         Base base = ...;
         CPointer<Object> p = base.__dna__addressof(Base.__DNA__FIELD__lay);
         CPointer<Integer> p_lay = p.cast(new Class[]{Integer.class});
         

        Metadata

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

        Field Documentation

        Java .Blend

        Layer

        Blender Source Code

      • __DNA__FIELD__flag

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

        Field Documentation

        Java .Blend

        Values:

                BA_WAS_SEL          (1 << 1)
                BA_HAS_RECALC_OB    (1 << 2)
                BA_HAS_RECALC_DATA  (1 << 3)
                // NOTE: this was used as a proper setting in past, so nullify before using 
                BA_TEMP_TAG         (1 << 5)
         
             // BA_FROMSET          (1 << 7)  //UNUSED
         
                BA_TRANSFORM_CHILD  (1 << 8)  // child of a transformed object 
                BA_TRANSFORM_PARENT (1 << 13)  // parent of a transformed object
         
         
                // an initial attempt as making selection more specific!
                BA_DESELECT     0
                BA_SELECT       1
         
         
                OB_FROMDUPLI        (1 << 9)
                OB_DONE             (1 << 10)  // unknown state, clear before use
                // OB_RADIO            (1 << 11) // deprecated
                OB_FROMGROUP        (1 << 12)
                                        

        Blender Source Code

        Final flags, including both accumulated collection flags and object's restriction flags.

        Pointer Arithmetics

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

         Base base = ...;
         CPointer<Object> p = base.__dna__addressof(Base.__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__flag_from_collection

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

        Field Documentation

        Blender Source Code

        Flags which are based on the collections flags evaluation, does not include flags from object's restrictions.

        Pointer Arithmetics

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

         Base base = ...;
         CPointer<Object> p = base.__dna__addressof(Base.__DNA__FIELD__flag_from_collection);
         CPointer<Short> p_flag_from_collection = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'flag_from_collection'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__flag_legacy

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

        Pointer Arithmetics

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

         Base base = ...;
         CPointer<Object> p = base.__dna__addressof(Base.__DNA__FIELD__flag_legacy);
         CPointer<Short> p_flag_legacy = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'flag_legacy'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__local_view_bits

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

        Pointer Arithmetics

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

         Base base = ...;
         CPointer<Object> p = base.__dna__addressof(Base.__DNA__FIELD__local_view_bits);
         CPointer<Short> p_local_view_bits = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'local_view_bits'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__local_collections_bits

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

        Pointer Arithmetics

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

         Base base = ...;
         CPointer<Object> p = base.__dna__addressof(Base.__DNA__FIELD__local_collections_bits);
         CPointer<Short> p_local_collections_bits = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'local_collections_bits'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD___pad1

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

        Pointer Arithmetics

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

         Base base = ...;
         CPointer<Object> p = base.__dna__addressof(Base.__DNA__FIELD___pad1);
         CPointer<CArrayFacade<Byte>> p__pad1 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

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

      • Base

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

        protected Base​(Base that)
    • Method Detail

      • getNext

        public CPointer<Base> getNext()
                               throws java.io.IOException
        Get method for struct member 'next'.

        Field Documentation

        Java .Blend

        next object
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__next
      • setNext

        public void setNext​(CPointer<Base> next)
                     throws java.io.IOException
        Set method for struct member 'next'.

        Field Documentation

        Java .Blend

        next object
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__next
      • getPrev

        public CPointer<Base> getPrev()
                               throws java.io.IOException
        Get method for struct member 'prev'.

        Field Documentation

        Java .Blend

        previous object
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prev
      • setPrev

        public void setPrev​(CPointer<Base> prev)
                     throws java.io.IOException
        Set method for struct member 'prev'.

        Field Documentation

        Java .Blend

        previous object
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prev
      • getObject

        public CPointer<BlenderObject> getObject()
                                          throws java.io.IOException
        Get method for struct member 'object'.

        Field Documentation

        Java .Blend

        this object
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__object
      • setObject

        public void setObject​(CPointer<BlenderObject> object)
                       throws java.io.IOException
        Set method for struct member 'object'.

        Field Documentation

        Java .Blend

        this object
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__object
      • getBase_orig

        public CPointer<Base> getBase_orig()
                                    throws java.io.IOException
        Get method for struct member 'base_orig'.

        Field Documentation

        Blender Source Code

        Pointer to an original base. Is initialized for evaluated view layer. NOTE: Only allowed to be accessed from within active dependency graph.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__base_orig
      • setBase_orig

        public void setBase_orig​(CPointer<Base> base_orig)
                          throws java.io.IOException
        Set method for struct member 'base_orig'.

        Field Documentation

        Blender Source Code

        Pointer to an original base. Is initialized for evaluated view layer. NOTE: Only allowed to be accessed from within active dependency graph.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__base_orig
      • getLay

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

        Get method for struct member 'lay'.

        Field Documentation

        Java .Blend

        Layer

        Blender Source Code

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__lay
      • setLay

        public void setLay​(int lay)
                    throws java.io.IOException
        Deprecated.
        Deprecated

        Set method for struct member 'lay'.

        Field Documentation

        Java .Blend

        Layer

        Blender Source Code

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

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

        Field Documentation

        Java .Blend

        Values:

                BA_WAS_SEL          (1 << 1)
                BA_HAS_RECALC_OB    (1 << 2)
                BA_HAS_RECALC_DATA  (1 << 3)
                // NOTE: this was used as a proper setting in past, so nullify before using 
                BA_TEMP_TAG         (1 << 5)
         
             // BA_FROMSET          (1 << 7)  //UNUSED
         
                BA_TRANSFORM_CHILD  (1 << 8)  // child of a transformed object 
                BA_TRANSFORM_PARENT (1 << 13)  // parent of a transformed object
         
         
                // an initial attempt as making selection more specific!
                BA_DESELECT     0
                BA_SELECT       1
         
         
                OB_FROMDUPLI        (1 << 9)
                OB_DONE             (1 << 10)  // unknown state, clear before use
                // OB_RADIO            (1 << 11) // deprecated
                OB_FROMGROUP        (1 << 12)
                                        

        Blender Source Code

        Final flags, including both accumulated collection flags and object's restriction flags.

        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'.

        Field Documentation

        Java .Blend

        Values:

                BA_WAS_SEL          (1 << 1)
                BA_HAS_RECALC_OB    (1 << 2)
                BA_HAS_RECALC_DATA  (1 << 3)
                // NOTE: this was used as a proper setting in past, so nullify before using 
                BA_TEMP_TAG         (1 << 5)
         
             // BA_FROMSET          (1 << 7)  //UNUSED
         
                BA_TRANSFORM_CHILD  (1 << 8)  // child of a transformed object 
                BA_TRANSFORM_PARENT (1 << 13)  // parent of a transformed object
         
         
                // an initial attempt as making selection more specific!
                BA_DESELECT     0
                BA_SELECT       1
         
         
                OB_FROMDUPLI        (1 << 9)
                OB_DONE             (1 << 10)  // unknown state, clear before use
                // OB_RADIO            (1 << 11) // deprecated
                OB_FROMGROUP        (1 << 12)
                                        

        Blender Source Code

        Final flags, including both accumulated collection flags and object's restriction flags.

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

        public short getFlag_from_collection()
                                      throws java.io.IOException
        Get method for struct member 'flag_from_collection'.

        Field Documentation

        Blender Source Code

        Flags which are based on the collections flags evaluation, does not include flags from object's restrictions.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag_from_collection
      • setFlag_from_collection

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

        Field Documentation

        Blender Source Code

        Flags which are based on the collections flags evaluation, does not include flags from object's restrictions.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag_from_collection
      • getFlag_legacy

        public short getFlag_legacy()
                             throws java.io.IOException
        Get method for struct member 'flag_legacy'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag_legacy
      • setFlag_legacy

        public void setFlag_legacy​(short flag_legacy)
                            throws java.io.IOException
        Set method for struct member 'flag_legacy'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag_legacy
      • getLocal_view_bits

        public short getLocal_view_bits()
                                 throws java.io.IOException
        Get method for struct member 'local_view_bits'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__local_view_bits
      • setLocal_view_bits

        public void setLocal_view_bits​(short local_view_bits)
                                throws java.io.IOException
        Set method for struct member 'local_view_bits'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__local_view_bits
      • getLocal_collections_bits

        public short getLocal_collections_bits()
                                        throws java.io.IOException
        Get method for struct member 'local_collections_bits'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__local_collections_bits
      • setLocal_collections_bits

        public void setLocal_collections_bits​(short local_collections_bits)
                                       throws java.io.IOException
        Set method for struct member 'local_collections_bits'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__local_collections_bits
      • get_pad1

        public CArrayFacade<java.lang.Byte> get_pad1()
                                              throws java.io.IOException
        Get method for struct member '_pad1'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad1
      • set_pad1

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

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