Class ChildParticle


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

    Class Documentation

    Blender Source Code

    Child particles are created around or between parent particles

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        Num is face index on the final derived mesh.

        Pointer Arithmetics

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

         ChildParticle childparticle = ...;
         CPointer<Object> p = childparticle.__dna__addressof(ChildParticle.__DNA__FIELD__num);
         CPointer<Integer> p_num = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'num'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__parent

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

        Pointer Arithmetics

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

         ChildParticle childparticle = ...;
         CPointer<Object> p = childparticle.__dna__addressof(ChildParticle.__DNA__FIELD__parent);
         CPointer<Integer> p_parent = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'parent'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__pa

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

        Field Documentation

        Blender Source Code

        Nearest particles to the child, used for the interpolation.

        Pointer Arithmetics

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

         ChildParticle childparticle = ...;
         CPointer<Object> p = childparticle.__dna__addressof(ChildParticle.__DNA__FIELD__pa);
         CPointer<CArrayFacade<Integer>> p_pa = p.cast(new Class[]{CArrayFacade.class, Integer.class});
         

        Metadata

        • Field: 'pa'
        • Signature: 'int[4]'
        • Actual Size (32bit/64bit): 16/16
      • __DNA__FIELD__w

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

        Field Documentation

        Blender Source Code

        Interpolation weights for the above particles.

        Pointer Arithmetics

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

         ChildParticle childparticle = ...;
         CPointer<Object> p = childparticle.__dna__addressof(ChildParticle.__DNA__FIELD__w);
         CPointer<CArrayFacade<Float>> p_w = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'w'
        • Signature: 'float[4]'
        • Actual Size (32bit/64bit): 16/16
      • __DNA__FIELD__fuv

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

        Field Documentation

        Blender Source Code

        Face vertex weights and offset.

        Pointer Arithmetics

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

         ChildParticle childparticle = ...;
         CPointer<Object> p = childparticle.__dna__addressof(ChildParticle.__DNA__FIELD__fuv);
         CPointer<CArrayFacade<Float>> p_fuv = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'fuv'
        • Signature: 'float[4]'
        • Actual Size (32bit/64bit): 16/16
      • __DNA__FIELD__foffset

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

        Pointer Arithmetics

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

         ChildParticle childparticle = ...;
         CPointer<Object> p = childparticle.__dna__addressof(ChildParticle.__DNA__FIELD__foffset);
         CPointer<Float> p_foffset = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'foffset'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__rt

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

        Pointer Arithmetics

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

         ChildParticle childparticle = ...;
         CPointer<Object> p = childparticle.__dna__addressof(ChildParticle.__DNA__FIELD__rt);
         CPointer<Float> p_rt = p.cast(new Class[]{Float.class});
         

        Metadata

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

      • ChildParticle

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

      • getNum

        public int getNum()
                   throws java.io.IOException
        Get method for struct member 'num'.

        Field Documentation

        Blender Source Code

        Num is face index on the final derived mesh.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__num
      • setNum

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

        Field Documentation

        Blender Source Code

        Num is face index on the final derived mesh.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__num
      • getParent

        public int getParent()
                      throws java.io.IOException
        Get method for struct member 'parent'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__parent
      • setParent

        public void setParent​(int parent)
                       throws java.io.IOException
        Set method for struct member 'parent'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__parent
      • getPa

        public CArrayFacade<java.lang.Integer> getPa()
                                              throws java.io.IOException
        Get method for struct member 'pa'.

        Field Documentation

        Blender Source Code

        Nearest particles to the child, used for the interpolation.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__pa
      • setPa

        public void setPa​(CArrayFacade<java.lang.Integer> pa)
                   throws java.io.IOException
        Set method for struct member 'pa'.

        Field Documentation

        Blender Source Code

        Nearest particles to the child, used for the interpolation.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__pa
      • getW

        public CArrayFacade<java.lang.Float> getW()
                                           throws java.io.IOException
        Get method for struct member 'w'.

        Field Documentation

        Blender Source Code

        Interpolation weights for the above particles.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__w
      • setW

        public void setW​(CArrayFacade<java.lang.Float> w)
                  throws java.io.IOException
        Set method for struct member 'w'.

        Field Documentation

        Blender Source Code

        Interpolation weights for the above particles.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__w
      • getFuv

        public CArrayFacade<java.lang.Float> getFuv()
                                             throws java.io.IOException
        Get method for struct member 'fuv'.

        Field Documentation

        Blender Source Code

        Face vertex weights and offset.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__fuv
      • setFuv

        public void setFuv​(CArrayFacade<java.lang.Float> fuv)
                    throws java.io.IOException
        Set method for struct member 'fuv'.

        Field Documentation

        Blender Source Code

        Face vertex weights and offset.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__fuv
      • getFoffset

        public float getFoffset()
                         throws java.io.IOException
        Get method for struct member 'foffset'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__foffset
      • setFoffset

        public void setFoffset​(float foffset)
                        throws java.io.IOException
        Set method for struct member 'foffset'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__foffset
      • getRt

        public float getRt()
                    throws java.io.IOException
        Get method for struct member 'rt'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rt
      • setRt

        public void setRt​(float rt)
                   throws java.io.IOException
        Set method for struct member 'rt'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rt
      • __io__addressof

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