Class BoidParticle


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         BoidParticle boidparticle = ...;
         CPointer<Object> p = boidparticle.__dna__addressof(BoidParticle.__DNA__FIELD__ground);
         CPointer<CPointer<BlenderObject>> p_ground = p.cast(new Class[]{CPointer.class, BlenderObject.class});
         

        Metadata

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

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

        Pointer Arithmetics

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

         BoidParticle boidparticle = ...;
         CPointer<Object> p = boidparticle.__dna__addressof(BoidParticle.__DNA__FIELD__data);
         CPointer<BoidData> p_data = p.cast(new Class[]{BoidData.class});
         

        Metadata

        • Field: 'data'
        • Signature: 'BoidData'
        • Actual Size (32bit/64bit): 20/20
      • __DNA__FIELD__gravity

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

        Pointer Arithmetics

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

         BoidParticle boidparticle = ...;
         CPointer<Object> p = boidparticle.__dna__addressof(BoidParticle.__DNA__FIELD__gravity);
         CPointer<CArrayFacade<Float>> p_gravity = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'gravity'
        • Signature: 'float[3]'
        • Actual Size (32bit/64bit): 12/12
      • __DNA__FIELD__wander

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

        Pointer Arithmetics

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

         BoidParticle boidparticle = ...;
         CPointer<Object> p = boidparticle.__dna__addressof(BoidParticle.__DNA__FIELD__wander);
         CPointer<CArrayFacade<Float>> p_wander = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'wander'
        • Signature: 'float[3]'
        • Actual Size (32bit/64bit): 12/12
      • __DNA__FIELD___pad0

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

        Pointer Arithmetics

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

         BoidParticle boidparticle = ...;
         CPointer<Object> p = boidparticle.__dna__addressof(BoidParticle.__DNA__FIELD___pad0);
         CPointer<CArrayFacade<Byte>> p__pad0 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

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

      • BoidParticle

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

        protected BoidParticle​(BoidParticle that)
    • Method Detail

      • getData

        public BoidData getData()
                         throws java.io.IOException
        Get method for struct member 'data'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data
      • setData

        public void setData​(BoidData data)
                     throws java.io.IOException
        Set method for struct member 'data'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data
      • getGravity

        public CArrayFacade<java.lang.Float> getGravity()
                                                 throws java.io.IOException
        Get method for struct member 'gravity'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__gravity
      • setGravity

        public void setGravity​(CArrayFacade<java.lang.Float> gravity)
                        throws java.io.IOException
        Set method for struct member 'gravity'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__gravity
      • getWander

        public CArrayFacade<java.lang.Float> getWander()
                                                throws java.io.IOException
        Get method for struct member 'wander'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__wander
      • setWander

        public void setWander​(CArrayFacade<java.lang.Float> wander)
                       throws java.io.IOException
        Set method for struct member 'wander'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__wander
      • get_pad0

        public CArrayFacade<java.lang.Byte> get_pad0()
                                              throws java.io.IOException
        Get method for struct member '_pad0'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad0
      • set_pad0

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

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