Class ParticleKey


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        when changed update size of struct to copy_particleKey()!! Location.

        Pointer Arithmetics

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

         ParticleKey particlekey = ...;
         CPointer<Object> p = particlekey.__dna__addressof(ParticleKey.__DNA__FIELD__co);
         CPointer<CArrayFacade<Float>> p_co = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

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

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

        Field Documentation

        Blender Source Code

        Velocity.

        Pointer Arithmetics

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

         ParticleKey particlekey = ...;
         CPointer<Object> p = particlekey.__dna__addressof(ParticleKey.__DNA__FIELD__vel);
         CPointer<CArrayFacade<Float>> p_vel = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

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

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

        Field Documentation

        Blender Source Code

        Rotation quaternion.

        Pointer Arithmetics

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

         ParticleKey particlekey = ...;
         CPointer<Object> p = particlekey.__dna__addressof(ParticleKey.__DNA__FIELD__rot);
         CPointer<CArrayFacade<Float>> p_rot = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

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

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

        Field Documentation

        Blender Source Code

        Angular velocity.

        Pointer Arithmetics

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

         ParticleKey particlekey = ...;
         CPointer<Object> p = particlekey.__dna__addressof(ParticleKey.__DNA__FIELD__ave);
         CPointer<CArrayFacade<Float>> p_ave = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

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

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

        Field Documentation

        Blender Python API

        Time of key over the simulation

        Blender Source Code

        When this key happens.

        Pointer Arithmetics

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

         ParticleKey particlekey = ...;
         CPointer<Object> p = particlekey.__dna__addressof(ParticleKey.__DNA__FIELD__time);
         CPointer<Float> p_time = p.cast(new Class[]{Float.class});
         

        Metadata

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

      • ParticleKey

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

        protected ParticleKey​(ParticleKey that)
    • Method Detail

      • getCo

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

        Field Documentation

        Blender Source Code

        when changed update size of struct to copy_particleKey()!! Location.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__co
      • setCo

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

        Field Documentation

        Blender Source Code

        when changed update size of struct to copy_particleKey()!! Location.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__co
      • getVel

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

        Field Documentation

        Blender Source Code

        Velocity.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__vel
      • setVel

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

        Field Documentation

        Blender Source Code

        Velocity.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__vel
      • getRot

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

        Field Documentation

        Blender Source Code

        Rotation quaternion.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rot
      • setRot

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

        Field Documentation

        Blender Source Code

        Rotation quaternion.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rot
      • getAve

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

        Field Documentation

        Blender Source Code

        Angular velocity.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ave
      • setAve

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

        Field Documentation

        Blender Source Code

        Angular velocity.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ave
      • getTime

        public float getTime()
                      throws java.io.IOException
        Get method for struct member 'time'.

        Field Documentation

        Blender Python API

        Time of key over the simulation

        Blender Source Code

        When this key happens.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__time
      • setTime

        public void setTime​(float time)
                     throws java.io.IOException
        Set method for struct member 'time'.

        Field Documentation

        Blender Python API

        Time of key over the simulation

        Blender Source Code

        When this key happens.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__time
      • __io__addressof

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