Class HairKey


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        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

        Location of hair vertex.

        Pointer Arithmetics

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

         HairKey hairkey = ...;
         CPointer<Object> p = hairkey.__dna__addressof(HairKey.__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__time

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

        Field Documentation

        Blender Source Code

        Time along hair, default 0-100.

        Pointer Arithmetics

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

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

        Metadata

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

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

        Field Documentation

        Blender Source Code

        Softbody weight.

        Pointer Arithmetics

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

         HairKey hairkey = ...;
         CPointer<Object> p = hairkey.__dna__addressof(HairKey.__DNA__FIELD__weight);
         CPointer<Float> p_weight = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'weight'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__editflag

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

        Field Documentation

        Blender Source Code

        Saved particled edit mode flags.

        Pointer Arithmetics

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

         HairKey hairkey = ...;
         CPointer<Object> p = hairkey.__dna__addressof(HairKey.__DNA__FIELD__editflag);
         CPointer<Short> p_editflag = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'editflag'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD___pad

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

        Pointer Arithmetics

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

         HairKey hairkey = ...;
         CPointer<Object> p = hairkey.__dna__addressof(HairKey.__DNA__FIELD___pad);
         CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad'
        • Signature: 'char[2]'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__world_co

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

        Pointer Arithmetics

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

         HairKey hairkey = ...;
         CPointer<Object> p = hairkey.__dna__addressof(HairKey.__DNA__FIELD__world_co);
         CPointer<CArrayFacade<Float>> p_world_co = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'world_co'
        • Signature: 'float[3]'
        • Actual Size (32bit/64bit): 12/12
    • Constructor Detail

      • HairKey

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

        protected HairKey​(HairKey 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

        Location of hair vertex.

        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

        Location of hair vertex.

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

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

        Field Documentation

        Blender Source Code

        Time along hair, default 0-100.

        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 Source Code

        Time along hair, default 0-100.

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

        public float getWeight()
                        throws java.io.IOException
        Get method for struct member 'weight'.

        Field Documentation

        Blender Source Code

        Softbody weight.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__weight
      • setWeight

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

        Field Documentation

        Blender Source Code

        Softbody weight.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__weight
      • getEditflag

        public short getEditflag()
                          throws java.io.IOException
        Get method for struct member 'editflag'.

        Field Documentation

        Blender Source Code

        Saved particled edit mode flags.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__editflag
      • setEditflag

        public void setEditflag​(short editflag)
                         throws java.io.IOException
        Set method for struct member 'editflag'.

        Field Documentation

        Blender Source Code

        Saved particled edit mode flags.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__editflag
      • get_pad

        public CArrayFacade<java.lang.Byte> get_pad()
                                             throws java.io.IOException
        Get method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • set_pad

        public void set_pad​(CArrayFacade<java.lang.Byte> _pad)
                     throws java.io.IOException
        Set method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • getWorld_co

        public CArrayFacade<java.lang.Float> getWorld_co()
                                                  throws java.io.IOException
        Get method for struct member 'world_co'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__world_co
      • setWorld_co

        public void setWorld_co​(CArrayFacade<java.lang.Float> world_co)
                         throws java.io.IOException
        Set method for struct member 'world_co'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__world_co
      • __io__addressof

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