Class EffectorWeights


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        Only use effectors from this group of objects.

        Pointer Arithmetics

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

         EffectorWeights effectorweights = ...;
         CPointer<Object> p = effectorweights.__dna__addressof(EffectorWeights.__DNA__FIELD__group);
         CPointer<CPointer<Collection>> p_group = p.cast(new Class[]{CPointer.class, Collection.class});
         

        Metadata

        • Field: 'group'
        • Signature: 'Collection*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__weight

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

        Field Documentation

        Blender Source Code

        Effector type specific weights.

        Pointer Arithmetics

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

         EffectorWeights effectorweights = ...;
         CPointer<Object> p = effectorweights.__dna__addressof(EffectorWeights.__DNA__FIELD__weight);
         CPointer<CArrayFacade<Float>> p_weight = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'weight'
        • Signature: 'float[14]'
        • Actual Size (32bit/64bit): 56/56
      • __DNA__FIELD__global_gravity

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

        Pointer Arithmetics

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

         EffectorWeights effectorweights = ...;
         CPointer<Object> p = effectorweights.__dna__addressof(EffectorWeights.__DNA__FIELD__global_gravity);
         CPointer<Float> p_global_gravity = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'global_gravity'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__flag

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

        Pointer Arithmetics

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

         EffectorWeights effectorweights = ...;
         CPointer<Object> p = effectorweights.__dna__addressof(EffectorWeights.__DNA__FIELD__flag);
         CPointer<Short> p_flag = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'flag'
        • 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:

         EffectorWeights effectorweights = ...;
         CPointer<Object> p = effectorweights.__dna__addressof(EffectorWeights.__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
    • Constructor Detail

      • EffectorWeights

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

      • getGroup

        public CPointer<Collection> getGroup()
                                      throws java.io.IOException
        Get method for struct member 'group'.

        Field Documentation

        Blender Source Code

        Only use effectors from this group of objects.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__group
      • setGroup

        public void setGroup​(CPointer<Collection> group)
                      throws java.io.IOException
        Set method for struct member 'group'.

        Field Documentation

        Blender Source Code

        Only use effectors from this group of objects.

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

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

        Field Documentation

        Blender Source Code

        Effector type specific weights.

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

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

        Field Documentation

        Blender Source Code

        Effector type specific weights.

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

        public float getGlobal_gravity()
                                throws java.io.IOException
        Get method for struct member 'global_gravity'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__global_gravity
      • setGlobal_gravity

        public void setGlobal_gravity​(float global_gravity)
                               throws java.io.IOException
        Set method for struct member 'global_gravity'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__global_gravity
      • getFlag

        public short getFlag()
                      throws java.io.IOException
        Get method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • setFlag

        public void setFlag​(short flag)
                     throws java.io.IOException
        Set method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • 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