Class bConstraint


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

    Class Documentation

    Blender Source Code

    A Constraint

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        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:

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

        Metadata

        • Field: 'next'
        • Signature: 'bConstraint*'
        • 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:

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

        Metadata

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

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

        Field Documentation

        Blender Source Code

        Constraint data (a valid constraint type).

        Pointer Arithmetics

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

         bConstraint bconstraint = ...;
         CPointer<Object> p = bconstraint.__dna__addressof(bConstraint.__DNA__FIELD__data);
         CPointer<CPointer<Object>> p_data = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

        • Field: 'data'
        • Signature: 'void*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__type

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

        Field Documentation

        Blender Source Code

        Constraint type.

        Pointer Arithmetics

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

         bConstraint bconstraint = ...;
         CPointer<Object> p = bconstraint.__dna__addressof(bConstraint.__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__flag

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

        Field Documentation

        Blender Source Code

        Flag - General Settings.

        Pointer Arithmetics

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

         bConstraint bconstraint = ...;
         CPointer<Object> p = bconstraint.__dna__addressof(bConstraint.__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__ownspace

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

        Field Documentation

        Blender Source Code

        Space that owner should be evaluated in.

        Pointer Arithmetics

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

         bConstraint bconstraint = ...;
         CPointer<Object> p = bconstraint.__dna__addressof(bConstraint.__DNA__FIELD__ownspace);
         CPointer<Byte> p_ownspace = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'ownspace'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__tarspace

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

        Field Documentation

        Blender Source Code

        Space that target should be evaluated in (only used if 1 target).

        Pointer Arithmetics

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

         bConstraint bconstraint = ...;
         CPointer<Object> p = bconstraint.__dna__addressof(bConstraint.__DNA__FIELD__tarspace);
         CPointer<Byte> p_tarspace = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'tarspace'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__name

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

        Field Documentation

        Blender Source Code

        Constraint name, MAX_NAME.

        Pointer Arithmetics

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

         bConstraint bconstraint = ...;
         CPointer<Object> p = bconstraint.__dna__addressof(bConstraint.__DNA__FIELD__name);
         CPointer<CArrayFacade<Byte>> p_name = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: 'name'
        • Signature: 'char[64]'
        • Actual Size (32bit/64bit): 64/64
      • __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:

         bConstraint bconstraint = ...;
         CPointer<Object> p = bconstraint.__dna__addressof(bConstraint.__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__enforce

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

        Field Documentation

        Blender Source Code

        Amount of influence exherted by constraint (0.0-1.0).

        Pointer Arithmetics

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

         bConstraint bconstraint = ...;
         CPointer<Object> p = bconstraint.__dna__addressof(bConstraint.__DNA__FIELD__enforce);
         CPointer<Float> p_enforce = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'enforce'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__headtail

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

        Field Documentation

        Blender Source Code

        Point along subtarget bone where the actual target is. 0=head (default for all), 1=tail.

        Pointer Arithmetics

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

         bConstraint bconstraint = ...;
         CPointer<Object> p = bconstraint.__dna__addressof(bConstraint.__DNA__FIELD__headtail);
         CPointer<Float> p_headtail = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'headtail'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__ipo

        public static final long[] __DNA__FIELD__ipo
        Deprecated.
        Deprecated

        Pointer Arithmetics

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

         bConstraint bconstraint = ...;
         CPointer<Object> p = bconstraint.__dna__addressof(bConstraint.__DNA__FIELD__ipo);
         CPointer<CPointer<Ipo>> p_ipo = p.cast(new Class[]{CPointer.class, Ipo.class});
         

        Metadata

        • Field: 'ipo'
        • Signature: 'Ipo*'
        • Actual Size (32bit/64bit): 4/8
        Field descriptor (offset) for struct member 'ipo'.

        Field Documentation

        Blender Source Code

        old animation system, deprecated for 2.5. Local influence ipo or driver

      • __DNA__FIELD__lin_error

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

        Field Documentation

        Blender Source Code

        below are readonly fields that are set at runtime by the solver for use in the GE (only IK atm) Residual error on constraint expressed in blender unit.

        Pointer Arithmetics

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

         bConstraint bconstraint = ...;
         CPointer<Object> p = bconstraint.__dna__addressof(bConstraint.__DNA__FIELD__lin_error);
         CPointer<Float> p_lin_error = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'lin_error'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__rot_error

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

        Field Documentation

        Blender Source Code

        Residual error on constraint expressed in radiant.

        Pointer Arithmetics

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

         bConstraint bconstraint = ...;
         CPointer<Object> p = bconstraint.__dna__addressof(bConstraint.__DNA__FIELD__rot_error);
         CPointer<Float> p_rot_error = p.cast(new Class[]{Float.class});
         

        Metadata

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

      • bConstraint

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

        protected bConstraint​(bConstraint that)
    • Method Detail

      • getData

        public CPointer<java.lang.Object> getData()
                                           throws java.io.IOException
        Get method for struct member 'data'.

        Field Documentation

        Blender Source Code

        Constraint data (a valid constraint type).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data
      • setData

        public void setData​(CPointer<java.lang.Object> data)
                     throws java.io.IOException
        Set method for struct member 'data'.

        Field Documentation

        Blender Source Code

        Constraint data (a valid constraint type).

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

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

        Field Documentation

        Blender Source Code

        Constraint type.

        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

        Constraint type.

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

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

        Field Documentation

        Blender Source Code

        Flag - General Settings.

        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

        Flag - General Settings.

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

        public byte getOwnspace()
                         throws java.io.IOException
        Get method for struct member 'ownspace'.

        Field Documentation

        Blender Source Code

        Space that owner should be evaluated in.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ownspace
      • setOwnspace

        public void setOwnspace​(byte ownspace)
                         throws java.io.IOException
        Set method for struct member 'ownspace'.

        Field Documentation

        Blender Source Code

        Space that owner should be evaluated in.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ownspace
      • getTarspace

        public byte getTarspace()
                         throws java.io.IOException
        Get method for struct member 'tarspace'.

        Field Documentation

        Blender Source Code

        Space that target should be evaluated in (only used if 1 target).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tarspace
      • setTarspace

        public void setTarspace​(byte tarspace)
                         throws java.io.IOException
        Set method for struct member 'tarspace'.

        Field Documentation

        Blender Source Code

        Space that target should be evaluated in (only used if 1 target).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tarspace
      • getName

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

        Field Documentation

        Blender Source Code

        Constraint name, MAX_NAME.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__name
      • setName

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

        Field Documentation

        Blender Source Code

        Constraint name, MAX_NAME.

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

        public float getEnforce()
                         throws java.io.IOException
        Get method for struct member 'enforce'.

        Field Documentation

        Blender Source Code

        Amount of influence exherted by constraint (0.0-1.0).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__enforce
      • setEnforce

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

        Field Documentation

        Blender Source Code

        Amount of influence exherted by constraint (0.0-1.0).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__enforce
      • getHeadtail

        public float getHeadtail()
                          throws java.io.IOException
        Get method for struct member 'headtail'.

        Field Documentation

        Blender Source Code

        Point along subtarget bone where the actual target is. 0=head (default for all), 1=tail.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__headtail
      • setHeadtail

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

        Field Documentation

        Blender Source Code

        Point along subtarget bone where the actual target is. 0=head (default for all), 1=tail.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__headtail
      • getIpo

        public CPointer<Ipo> getIpo()
                             throws java.io.IOException
        Deprecated.
        Deprecated

        Get method for struct member 'ipo'.

        Field Documentation

        Blender Source Code

        old animation system, deprecated for 2.5. Local influence ipo or driver

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ipo
      • setIpo

        public void setIpo​(CPointer<Ipo> ipo)
                    throws java.io.IOException
        Deprecated.
        Deprecated

        Set method for struct member 'ipo'.

        Field Documentation

        Blender Source Code

        old animation system, deprecated for 2.5. Local influence ipo or driver

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ipo
      • getLin_error

        public float getLin_error()
                           throws java.io.IOException
        Get method for struct member 'lin_error'.

        Field Documentation

        Blender Source Code

        below are readonly fields that are set at runtime by the solver for use in the GE (only IK atm) Residual error on constraint expressed in blender unit.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__lin_error
      • setLin_error

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

        Field Documentation

        Blender Source Code

        below are readonly fields that are set at runtime by the solver for use in the GE (only IK atm) Residual error on constraint expressed in blender unit.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__lin_error
      • getRot_error

        public float getRot_error()
                           throws java.io.IOException
        Get method for struct member 'rot_error'.

        Field Documentation

        Blender Source Code

        Residual error on constraint expressed in radiant.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rot_error
      • setRot_error

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

        Field Documentation

        Blender Source Code

        Residual error on constraint expressed in radiant.

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

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