Class bConstraintTarget


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

    Class Documentation

    Blender Source Code

    Multiple-target constraints ------------------ This struct defines a constraint target. It is used during constraint solving regardless of how many targets the constraint has.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         bConstraintTarget bconstrainttarget = ...;
         CPointer<Object> p = bconstrainttarget.__dna__addressof(bConstraintTarget.__DNA__FIELD__next);
         CPointer<CPointer<bConstraintTarget>> p_next = p.cast(new Class[]{CPointer.class, bConstraintTarget.class});
         

        Metadata

        • Field: 'next'
        • Signature: 'bConstraintTarget*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__prev

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

        Pointer Arithmetics

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

         bConstraintTarget bconstrainttarget = ...;
         CPointer<Object> p = bconstrainttarget.__dna__addressof(bConstraintTarget.__DNA__FIELD__prev);
         CPointer<CPointer<bConstraintTarget>> p_prev = p.cast(new Class[]{CPointer.class, bConstraintTarget.class});
         

        Metadata

        • Field: 'prev'
        • Signature: 'bConstraintTarget*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__tar

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

        Field Documentation

        Blender Source Code

        Object to use as target.

        Pointer Arithmetics

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

         bConstraintTarget bconstrainttarget = ...;
         CPointer<Object> p = bconstrainttarget.__dna__addressof(bConstraintTarget.__DNA__FIELD__tar);
         CPointer<CPointer<BlenderObject>> p_tar = p.cast(new Class[]{CPointer.class, BlenderObject.class});
         

        Metadata

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

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

        Field Documentation

        Blender Source Code

        Subtarget - pchan or vgroup name, MAX_ID_NAME-2.

        Pointer Arithmetics

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

         bConstraintTarget bconstrainttarget = ...;
         CPointer<Object> p = bconstrainttarget.__dna__addressof(bConstraintTarget.__DNA__FIELD__subtarget);
         CPointer<CArrayFacade<Byte>> p_subtarget = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: 'subtarget'
        • Signature: 'char[64]'
        • Actual Size (32bit/64bit): 64/64
      • __DNA__FIELD__matrix

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

        Field Documentation

        Blender Source Code

        Matrix used during constraint solving - should be cleared before each use.

        Pointer Arithmetics

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

         bConstraintTarget bconstrainttarget = ...;
         CPointer<Object> p = bconstrainttarget.__dna__addressof(bConstraintTarget.__DNA__FIELD__matrix);
         CPointer<CArrayFacade<CArrayFacade<Float>>> p_matrix = p.cast(new Class[]{CArrayFacade.class, CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'matrix'
        • Signature: 'float[4][4]'
        • Actual Size (32bit/64bit): 64/64
      • __DNA__FIELD__space

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

        Field Documentation

        Blender Source Code

        Space that target should be evaluated in (overrides bConstraint->tarspace).

        Pointer Arithmetics

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

         bConstraintTarget bconstrainttarget = ...;
         CPointer<Object> p = bconstrainttarget.__dna__addressof(bConstraintTarget.__DNA__FIELD__space);
         CPointer<Short> p_space = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'space'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__flag

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

        Field Documentation

        Blender Source Code

        Runtime settings (for editor, etc.).

        Pointer Arithmetics

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

         bConstraintTarget bconstrainttarget = ...;
         CPointer<Object> p = bconstrainttarget.__dna__addressof(bConstraintTarget.__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__type

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

        Field Documentation

        Blender Source Code

        Type of target (eConstraintObType).

        Pointer Arithmetics

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

         bConstraintTarget bconstrainttarget = ...;
         CPointer<Object> p = bconstrainttarget.__dna__addressof(bConstraintTarget.__DNA__FIELD__type);
         CPointer<Short> p_type = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'type'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__rotOrder

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

        Field Documentation

        Blender Source Code

        Rotation order for target (as defined in BLI_math.h).

        Pointer Arithmetics

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

         bConstraintTarget bconstrainttarget = ...;
         CPointer<Object> p = bconstrainttarget.__dna__addressof(bConstraintTarget.__DNA__FIELD__rotOrder);
         CPointer<Short> p_rotOrder = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'rotOrder'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__weight

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

        Field Documentation

        Blender Source Code

        Weight for armature deform.

        Pointer Arithmetics

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

         bConstraintTarget bconstrainttarget = ...;
         CPointer<Object> p = bconstrainttarget.__dna__addressof(bConstraintTarget.__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___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:

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

        Metadata

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

      • bConstraintTarget

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

      • getTar

        public CPointer<BlenderObject> getTar()
                                       throws java.io.IOException
        Get method for struct member 'tar'.

        Field Documentation

        Blender Source Code

        Object to use as target.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tar
      • setTar

        public void setTar​(CPointer<BlenderObject> tar)
                    throws java.io.IOException
        Set method for struct member 'tar'.

        Field Documentation

        Blender Source Code

        Object to use as target.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tar
      • getSubtarget

        public CArrayFacade<java.lang.Byte> getSubtarget()
                                                  throws java.io.IOException
        Get method for struct member 'subtarget'.

        Field Documentation

        Blender Source Code

        Subtarget - pchan or vgroup name, MAX_ID_NAME-2.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__subtarget
      • setSubtarget

        public void setSubtarget​(CArrayFacade<java.lang.Byte> subtarget)
                          throws java.io.IOException
        Set method for struct member 'subtarget'.

        Field Documentation

        Blender Source Code

        Subtarget - pchan or vgroup name, MAX_ID_NAME-2.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__subtarget
      • getMatrix

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

        Field Documentation

        Blender Source Code

        Matrix used during constraint solving - should be cleared before each use.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__matrix
      • setMatrix

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

        Field Documentation

        Blender Source Code

        Matrix used during constraint solving - should be cleared before each use.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__matrix
      • getSpace

        public short getSpace()
                       throws java.io.IOException
        Get method for struct member 'space'.

        Field Documentation

        Blender Source Code

        Space that target should be evaluated in (overrides bConstraint->tarspace).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__space
      • setSpace

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

        Field Documentation

        Blender Source Code

        Space that target should be evaluated in (overrides bConstraint->tarspace).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__space
      • getFlag

        public short getFlag()
                      throws java.io.IOException
        Get method for struct member 'flag'.

        Field Documentation

        Blender Source Code

        Runtime settings (for editor, etc.).

        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'.

        Field Documentation

        Blender Source Code

        Runtime settings (for editor, etc.).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • getType

        public short getType()
                      throws java.io.IOException
        Get method for struct member 'type'.

        Field Documentation

        Blender Source Code

        Type of target (eConstraintObType).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__type
      • setType

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

        Field Documentation

        Blender Source Code

        Type of target (eConstraintObType).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__type
      • getRotOrder

        public short getRotOrder()
                          throws java.io.IOException
        Get method for struct member 'rotOrder'.

        Field Documentation

        Blender Source Code

        Rotation order for target (as defined in BLI_math.h).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rotOrder
      • setRotOrder

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

        Field Documentation

        Blender Source Code

        Rotation order for target (as defined in BLI_math.h).

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

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

        Field Documentation

        Blender Source Code

        Weight for armature deform.

        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

        Weight for armature deform.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__weight
      • 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