Class ObjectLineArt


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Python API

        How to use this object in line art calculation

        Pointer Arithmetics

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

         ObjectLineArt objectlineart = ...;
         CPointer<Object> p = objectlineart.__dna__addressof(ObjectLineArt.__DNA__FIELD__usage);
         CPointer<Short> p_usage = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'usage'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__flags

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

        Pointer Arithmetics

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

         ObjectLineArt objectlineart = ...;
         CPointer<Object> p = objectlineart.__dna__addressof(ObjectLineArt.__DNA__FIELD__flags);
         CPointer<Short> p_flags = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'flags'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__crease_threshold

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

        Field Documentation

        Blender Python API

        Angles smaller than this will be treated as creases

        Blender Source Code

        if OBJECT_LRT_OWN_CREASE is set

        Pointer Arithmetics

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

         ObjectLineArt objectlineart = ...;
         CPointer<Object> p = objectlineart.__dna__addressof(ObjectLineArt.__DNA__FIELD__crease_threshold);
         CPointer<Float> p_crease_threshold = p.cast(new Class[]{Float.class});
         

        Metadata

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

      • ObjectLineArt

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

      • getUsage

        public short getUsage()
                       throws java.io.IOException
        Get method for struct member 'usage'.

        Field Documentation

        Blender Python API

        How to use this object in line art calculation
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__usage
      • setUsage

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

        Field Documentation

        Blender Python API

        How to use this object in line art calculation
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__usage
      • getFlags

        public short getFlags()
                       throws java.io.IOException
        Get method for struct member 'flags'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flags
      • setFlags

        public void setFlags​(short flags)
                      throws java.io.IOException
        Set method for struct member 'flags'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flags
      • getCrease_threshold

        public float getCrease_threshold()
                                  throws java.io.IOException
        Get method for struct member 'crease_threshold'.

        Field Documentation

        Blender Python API

        Angles smaller than this will be treated as creases

        Blender Source Code

        if OBJECT_LRT_OWN_CREASE is set

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__crease_threshold
      • setCrease_threshold

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

        Field Documentation

        Blender Python API

        Angles smaller than this will be treated as creases

        Blender Source Code

        if OBJECT_LRT_OWN_CREASE is set

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

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