Class BoidRuleGoalAvoid


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         BoidRuleGoalAvoid boidrulegoalavoid = ...;
         CPointer<Object> p = boidrulegoalavoid.__dna__addressof(BoidRuleGoalAvoid.__DNA__FIELD__rule);
         CPointer<BoidRule> p_rule = p.cast(new Class[]{BoidRule.class});
         

        Metadata

        • Field: 'rule'
        • Signature: 'BoidRule'
        • Actual Size (32bit/64bit): 48/56
      • __DNA__FIELD__ob

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

        Pointer Arithmetics

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

         BoidRuleGoalAvoid boidrulegoalavoid = ...;
         CPointer<Object> p = boidrulegoalavoid.__dna__addressof(BoidRuleGoalAvoid.__DNA__FIELD__ob);
         CPointer<CPointer<BlenderObject>> p_ob = p.cast(new Class[]{CPointer.class, BlenderObject.class});
         

        Metadata

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

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

        Pointer Arithmetics

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

         BoidRuleGoalAvoid boidrulegoalavoid = ...;
         CPointer<Object> p = boidrulegoalavoid.__dna__addressof(BoidRuleGoalAvoid.__DNA__FIELD__options);
         CPointer<Integer> p_options = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'options'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__fear_factor

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

        Pointer Arithmetics

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

         BoidRuleGoalAvoid boidrulegoalavoid = ...;
         CPointer<Object> p = boidrulegoalavoid.__dna__addressof(BoidRuleGoalAvoid.__DNA__FIELD__fear_factor);
         CPointer<Float> p_fear_factor = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'fear_factor'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__signal_id

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

        Field Documentation

        Blender Source Code

        signals

        Pointer Arithmetics

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

         BoidRuleGoalAvoid boidrulegoalavoid = ...;
         CPointer<Object> p = boidrulegoalavoid.__dna__addressof(BoidRuleGoalAvoid.__DNA__FIELD__signal_id);
         CPointer<Integer> p_signal_id = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'signal_id'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__channels

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

        Pointer Arithmetics

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

         BoidRuleGoalAvoid boidrulegoalavoid = ...;
         CPointer<Object> p = boidrulegoalavoid.__dna__addressof(BoidRuleGoalAvoid.__DNA__FIELD__channels);
         CPointer<Integer> p_channels = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'channels'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
    • Constructor Detail

      • BoidRuleGoalAvoid

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

      • getRule

        public BoidRule getRule()
                         throws java.io.IOException
        Get method for struct member 'rule'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rule
      • setRule

        public void setRule​(BoidRule rule)
                     throws java.io.IOException
        Set method for struct member 'rule'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rule
      • getOptions

        public int getOptions()
                       throws java.io.IOException
        Get method for struct member 'options'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__options
      • setOptions

        public void setOptions​(int options)
                        throws java.io.IOException
        Set method for struct member 'options'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__options
      • getFear_factor

        public float getFear_factor()
                             throws java.io.IOException
        Get method for struct member 'fear_factor'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__fear_factor
      • setFear_factor

        public void setFear_factor​(float fear_factor)
                            throws java.io.IOException
        Set method for struct member 'fear_factor'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__fear_factor
      • getSignal_id

        public int getSignal_id()
                         throws java.io.IOException
        Get method for struct member 'signal_id'.

        Field Documentation

        Blender Source Code

        signals

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__signal_id
      • setSignal_id

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

        Field Documentation

        Blender Source Code

        signals

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__signal_id
      • getChannels

        public int getChannels()
                        throws java.io.IOException
        Get method for struct member 'channels'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__channels
      • setChannels

        public void setChannels​(int channels)
                         throws java.io.IOException
        Set method for struct member 'channels'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__channels