Class BoidRule


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

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

        Metadata

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

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

        Pointer Arithmetics

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

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

        Metadata

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

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

        Field Documentation

        Blender Python API

        (read-only)

        Pointer Arithmetics

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

         BoidRule boidrule = ...;
         CPointer<Object> p = boidrule.__dna__addressof(BoidRule.__DNA__FIELD__type);
         CPointer<Integer> p_type = p.cast(new Class[]{Integer.class});
         

        Metadata

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

         BoidRule boidrule = ...;
         CPointer<Object> p = boidrule.__dna__addressof(BoidRule.__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__name

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

        Field Documentation

        Blender Python API

        Boid rule name

        Pointer Arithmetics

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

         BoidRule boidrule = ...;
         CPointer<Object> p = boidrule.__dna__addressof(BoidRule.__DNA__FIELD__name);
         CPointer<CArrayFacade<Byte>> p_name = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

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

      • BoidRule

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

        protected BoidRule​(BoidRule that)
    • Method Detail

      • setNext

        public void setNext​(CPointer<BoidRule> next)
                     throws java.io.IOException
        Set method for struct member 'next'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__next
      • setPrev

        public void setPrev​(CPointer<BoidRule> prev)
                     throws java.io.IOException
        Set method for struct member 'prev'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prev
      • getType

        public int getType()
                    throws java.io.IOException
        Get method for struct member 'type'.

        Field Documentation

        Blender Python API

        (read-only)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__type
      • setType

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

        Field Documentation

        Blender Python API

        (read-only)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__type
      • 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
      • getName

        public CArrayFacade<java.lang.Byte> getName()
                                             throws java.io.IOException
        Get method for struct member 'name'.

        Field Documentation

        Blender Python API

        Boid rule name
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__name
      • setName

        public void setName​(CArrayFacade<java.lang.Byte> name)
                     throws java.io.IOException
        Set method for struct member 'name'.

        Field Documentation

        Blender Python API

        Boid rule name
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__name
      • __io__addressof

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