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__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

        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__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__sx

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

        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__sx);
         CPointer<Short> p_sx = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'sx'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__sy

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

        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__sy);
         CPointer<Short> p_sy = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'sy'
        • 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[6]'
        • Actual Size (32bit/64bit): 6/6
      • __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__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_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<Integer> p_flag_legacy = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'flag_legacy'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __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___pad2

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

        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___pad2);
         CPointer<CArrayFacade<Short>> p__pad2 = p.cast(new Class[]{CArrayFacade.class, Short.class});
         

        Metadata

        • Field: '_pad2'
        • Signature: 'short[3]'
        • Actual Size (32bit/64bit): 6/6
      • __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___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:

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

        Metadata

        • Field: '_pad'
        • Signature: 'void*'
        • Actual Size (32bit/64bit): 4/8
    • 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
      • 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

        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
      • 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
      • getSx

        public short getSx()
                    throws java.io.IOException
        Get method for struct member 'sx'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__sx
      • setSx

        public void setSx​(short sx)
                   throws java.io.IOException
        Set method for struct member 'sx'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__sx
      • getSy

        public short getSy()
                    throws java.io.IOException
        Get method for struct member 'sy'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__sy
      • setSy

        public void setSy​(short sy)
                   throws java.io.IOException
        Set method for struct member 'sy'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__sy
      • 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
      • 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
      • 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_legacy

        public int 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​(int flag_legacy)
                            throws java.io.IOException
        Set method for struct member 'flag_legacy'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag_legacy
      • 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_pad2

        public CArrayFacade<java.lang.Short> get_pad2()
                                               throws java.io.IOException
        Get method for struct member '_pad2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad2
      • set_pad2

        public void set_pad2​(CArrayFacade<java.lang.Short> _pad2)
                      throws java.io.IOException
        Set method for struct member '_pad2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad2
      • 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
      • get_pad

        public CPointer<java.lang.Object> 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​(CPointer<java.lang.Object> _pad)
                     throws java.io.IOException
        Set method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • __io__addressof

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