Class bNode


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

    Class Documentation

    Blender Source Code

    TODO: Limit data in bNode to what we want to see saved.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        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:

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

        Metadata

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

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

        Metadata

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

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

        Field Documentation

        Blender Source Code

        User-defined properties.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__prop);
         CPointer<CPointer<IDProperty>> p_prop = p.cast(new Class[]{CPointer.class, IDProperty.class});
         

        Metadata

        • Field: 'prop'
        • Signature: 'IDProperty*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__typeinfo

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

        Field Documentation

        Blender Source Code

        Runtime type information.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__typeinfo);
         CPointer<CPointer<Object>> p_typeinfo = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

        • Field: 'typeinfo'
        • Signature: 'bNodeType*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__idname

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

        Field Documentation

        Blender Source Code

        Runtime type identifier.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__idname);
         CPointer<CArrayFacade<Byte>> p_idname = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

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

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

        Field Documentation

        Blender Source Code

        MAX_NAME.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__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__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:

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__flag);
         CPointer<Integer> p_flag = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'flag'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__type

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

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__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__done

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

        Field Documentation

        Blender Source Code

        Both for dependency and sorting.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__done);
         CPointer<Short> p_done = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'done'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__level

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

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__level);
         CPointer<Short> p_level = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'level'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__need_exec

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

        Field Documentation

        Blender Source Code

        Used as a boolean for execution.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__need_exec);
         CPointer<Byte> p_need_exec = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'need_exec'
        • Signature: 'uchar'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD___pad2

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

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD___pad2);
         CPointer<CArrayFacade<Byte>> p__pad2 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad2'
        • Signature: 'char[5]'
        • Actual Size (32bit/64bit): 5/5
      • __DNA__FIELD__changed_flag

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

        Field Documentation

        Blender Source Code

        #eNodeTreeChangedFlag.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__changed_flag);
         CPointer<Integer> p_changed_flag = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'changed_flag'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__color

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

        Field Documentation

        Blender Source Code

        Custom user-defined color.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__color);
         CPointer<CArrayFacade<Float>> p_color = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'color'
        • Signature: 'float[3]'
        • Actual Size (32bit/64bit): 12/12
      • __DNA__FIELD__inputs

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

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__inputs);
         CPointer<ListBase> p_inputs = p.cast(new Class[]{ListBase.class});
         

        Metadata

        • Field: 'inputs'
        • Signature: 'ListBase'
        • Actual Size (32bit/64bit): 8/16
      • __DNA__FIELD__outputs

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

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__outputs);
         CPointer<ListBase> p_outputs = p.cast(new Class[]{ListBase.class});
         

        Metadata

        • Field: 'outputs'
        • Signature: 'ListBase'
        • Actual Size (32bit/64bit): 8/16
      • __DNA__FIELD__parent

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

        Field Documentation

        Blender Source Code

        Parent node.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__parent);
         CPointer<CPointer<bNode>> p_parent = p.cast(new Class[]{CPointer.class, bNode.class});
         

        Metadata

        • Field: 'parent'
        • Signature: 'bNode*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__id

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

        Field Documentation

        Blender Source Code

        Optional link to libdata.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__id);
         CPointer<CPointer<ID>> p_id = p.cast(new Class[]{CPointer.class, ID.class});
         

        Metadata

        • Field: 'id'
        • Signature: 'ID*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__storage

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

        Field Documentation

        Blender Source Code

        Custom data, must be struct, for storage in file.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__storage);
         CPointer<CPointer<Object>> p_storage = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

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

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

        Field Documentation

        Blender Source Code

        The original node in the tree (for localized tree).

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__original);
         CPointer<CPointer<bNode>> p_original = p.cast(new Class[]{CPointer.class, bNode.class});
         

        Metadata

        • Field: 'original'
        • Signature: 'bNode*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__internal_links

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

        Field Documentation

        Blender Source Code

        List of cached internal links (input to output), for muted nodes and operators.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__internal_links);
         CPointer<ListBase> p_internal_links = p.cast(new Class[]{ListBase.class});
         

        Metadata

        • Field: 'internal_links'
        • Signature: 'ListBase'
        • Actual Size (32bit/64bit): 8/16
      • __DNA__FIELD__locx

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

        Field Documentation

        Blender Source Code

        Root offset for drawing (parent space).

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__locx);
         CPointer<Float> p_locx = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'locx'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__locy

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

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__locy);
         CPointer<Float> p_locy = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'locy'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__width

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

        Field Documentation

        Blender Source Code

        Node custom width and height.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__width);
         CPointer<Float> p_width = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'width'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__height

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

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__height);
         CPointer<Float> p_height = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'height'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__miniwidth

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

        Field Documentation

        Blender Source Code

        Node width if hidden.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__miniwidth);
         CPointer<Float> p_miniwidth = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'miniwidth'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__offsetx

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

        Field Documentation

        Blender Source Code

        Additional offset from loc.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__offsetx);
         CPointer<Float> p_offsetx = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'offsetx'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__offsety

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

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__offsety);
         CPointer<Float> p_offsety = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'offsety'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__anim_init_locx

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

        Field Documentation

        Blender Source Code

        Initial locx for insert offset animation.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__anim_init_locx);
         CPointer<Float> p_anim_init_locx = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'anim_init_locx'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__anim_ofsx

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

        Field Documentation

        Blender Source Code

        Offset that will be added to locx for insert offset animation.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__anim_ofsx);
         CPointer<Float> p_anim_ofsx = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'anim_ofsx'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__update

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

        Field Documentation

        Blender Source Code

        Update flags.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__update);
         CPointer<Integer> p_update = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'update'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__label

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

        Field Documentation

        Blender Source Code

        Custom user-defined label, MAX_NAME.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__label);
         CPointer<CArrayFacade<Byte>> p_label = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

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

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

        Field Documentation

        Blender Source Code

        To be abused for buttons.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__custom1);
         CPointer<Short> p_custom1 = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'custom1'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__custom2

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

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__custom2);
         CPointer<Short> p_custom2 = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'custom2'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__custom3

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

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__custom3);
         CPointer<Float> p_custom3 = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'custom3'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__custom4

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

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__custom4);
         CPointer<Float> p_custom4 = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'custom4'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD___pad1

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

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD___pad1);
         CPointer<CArrayFacade<Byte>> p__pad1 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad1'
        • Signature: 'char[4]'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__totr

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

        Field Documentation

        Blender Source Code

        Entire bound-box (world-space).

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__totr);
         CPointer<rctf> p_totr = p.cast(new Class[]{rctf.class});
         

        Metadata

        • Field: 'totr'
        • Signature: 'rctf'
        • Actual Size (32bit/64bit): 16/16
      • __DNA__FIELD__prvr

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

        Field Documentation

        Blender Source Code

        Optional preview area.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__prvr);
         CPointer<rctf> p_prvr = p.cast(new Class[]{rctf.class});
         

        Metadata

        • Field: 'prvr'
        • Signature: 'rctf'
        • Actual Size (32bit/64bit): 16/16
      • __DNA__FIELD__preview_xsize

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

        Field Documentation

        Blender Source Code

        XXX TODO Node totr size depends on the prvr size, which in turn is determined from preview size. In earlier versions bNodePreview was stored directly in nodes, but since now there can be multiple instances using different preview images it is possible that required node size varies between instances. preview_xsize, preview_ysize defines a common reserved size for preview rect for now, could be replaced by more accurate node instance drawing, but that requires removing totr from DNA and replacing all uses with per-instance data. Reserved size of the preview rect.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__preview_xsize);
         CPointer<Short> p_preview_xsize = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'preview_xsize'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__preview_ysize

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

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__preview_ysize);
         CPointer<Short> p_preview_ysize = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'preview_ysize'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__tmp_flag

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

        Field Documentation

        Blender Source Code

        Used at runtime when going through the tree. Initialize before use.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__tmp_flag);
         CPointer<Short> p_tmp_flag = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'tmp_flag'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD___pad0

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

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD___pad0);
         CPointer<Byte> p__pad0 = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: '_pad0'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__iter_flag

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

        Field Documentation

        Blender Source Code

        Used at runtime when iterating over node branches.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__iter_flag);
         CPointer<Byte> p_iter_flag = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'iter_flag'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__declaration

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

        Field Documentation

        Blender Source Code

        Describes the desired interface of the node. This is run-time data only. The actual interface of the node may deviate from the declaration temporarily. It's possible to sync the actual state of the node to the desired state. Currently, this is only done when a node is created or loaded.

        In the future, we may want to keep more data only in the declaration, so that it does not have to be synced to other places that are stored in files. That especially applies to data that can't be edited by users directly (e.g. min/max values of sockets, tooltips, ...).

        The declaration of a node can be recreated at any time when it is used. Caching it here is just a bit more efficient when it is used a lot. To make sure that the cache is up-to-date, call #nodeDeclarationEnsure before using it.

        Currently, the declaration is the same for every node of the same type. Going forward, that is intended to change though. Especially when nodes become more dynamic with respect to how many sockets they have.

        Pointer Arithmetics

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

         bNode bnode = ...;
         CPointer<Object> p = bnode.__dna__addressof(bNode.__DNA__FIELD__declaration);
         CPointer<CPointer<Object>> p_declaration = p.cast(new Class[]{CPointer.class, Object.class});
         

        Metadata

        • Field: 'declaration'
        • Signature: 'NodeDeclarationHandle*'
        • Actual Size (32bit/64bit): 4/8
    • Constructor Detail

      • bNode

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

        protected bNode​(bNode that)
    • Method Detail

      • getNext

        public CPointer<bNode> getNext()
                                throws java.io.IOException
        Get method for struct member 'next'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__next
      • setNext

        public void setNext​(CPointer<bNode> next)
                     throws java.io.IOException
        Set method for struct member 'next'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__next
      • getPrev

        public CPointer<bNode> getPrev()
                                throws java.io.IOException
        Get method for struct member 'prev'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prev
      • setPrev

        public void setPrev​(CPointer<bNode> prev)
                     throws java.io.IOException
        Set method for struct member 'prev'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prev
      • getProp

        public CPointer<IDProperty> getProp()
                                     throws java.io.IOException
        Get method for struct member 'prop'.

        Field Documentation

        Blender Source Code

        User-defined properties.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prop
      • setProp

        public void setProp​(CPointer<IDProperty> prop)
                     throws java.io.IOException
        Set method for struct member 'prop'.

        Field Documentation

        Blender Source Code

        User-defined properties.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prop
      • getTypeinfo

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

        Field Documentation

        Blender Source Code

        Runtime type information.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__typeinfo
      • setTypeinfo

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

        Field Documentation

        Blender Source Code

        Runtime type information.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__typeinfo
      • getIdname

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

        Field Documentation

        Blender Source Code

        Runtime type identifier.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__idname
      • setIdname

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

        Field Documentation

        Blender Source Code

        Runtime type identifier.

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

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

        Field Documentation

        Blender Source Code

        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

        MAX_NAME.

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

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

        public void setFlag​(int flag)
                     throws java.io.IOException
        Set method for struct member 'flag'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • getType

        public short getType()
                      throws java.io.IOException
        Get method for struct member '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'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__type
      • getDone

        public short getDone()
                      throws java.io.IOException
        Get method for struct member 'done'.

        Field Documentation

        Blender Source Code

        Both for dependency and sorting.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__done
      • setDone

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

        Field Documentation

        Blender Source Code

        Both for dependency and sorting.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__done
      • getLevel

        public short getLevel()
                       throws java.io.IOException
        Get method for struct member 'level'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__level
      • setLevel

        public void setLevel​(short level)
                      throws java.io.IOException
        Set method for struct member 'level'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__level
      • getNeed_exec

        public byte getNeed_exec()
                          throws java.io.IOException
        Get method for struct member 'need_exec'.

        Field Documentation

        Blender Source Code

        Used as a boolean for execution.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__need_exec
      • setNeed_exec

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

        Field Documentation

        Blender Source Code

        Used as a boolean for execution.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__need_exec
      • get_pad2

        public CArrayFacade<java.lang.Byte> get_pad2()
                                              throws java.io.IOException
        Get method for struct member '_pad2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad2
      • set_pad2

        public void set_pad2​(CArrayFacade<java.lang.Byte> _pad2)
                      throws java.io.IOException
        Set method for struct member '_pad2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad2
      • getChanged_flag

        public int getChanged_flag()
                            throws java.io.IOException
        Get method for struct member 'changed_flag'.

        Field Documentation

        Blender Source Code

        #eNodeTreeChangedFlag.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__changed_flag
      • setChanged_flag

        public void setChanged_flag​(int changed_flag)
                             throws java.io.IOException
        Set method for struct member 'changed_flag'.

        Field Documentation

        Blender Source Code

        #eNodeTreeChangedFlag.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__changed_flag
      • getColor

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

        Field Documentation

        Blender Source Code

        Custom user-defined color.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__color
      • setColor

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

        Field Documentation

        Blender Source Code

        Custom user-defined color.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__color
      • getInputs

        public ListBase getInputs()
                           throws java.io.IOException
        Get method for struct member 'inputs'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__inputs
      • setInputs

        public void setInputs​(ListBase inputs)
                       throws java.io.IOException
        Set method for struct member 'inputs'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__inputs
      • getOutputs

        public ListBase getOutputs()
                            throws java.io.IOException
        Get method for struct member 'outputs'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__outputs
      • setOutputs

        public void setOutputs​(ListBase outputs)
                        throws java.io.IOException
        Set method for struct member 'outputs'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__outputs
      • getParent

        public CPointer<bNode> getParent()
                                  throws java.io.IOException
        Get method for struct member 'parent'.

        Field Documentation

        Blender Source Code

        Parent node.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__parent
      • setParent

        public void setParent​(CPointer<bNode> parent)
                       throws java.io.IOException
        Set method for struct member 'parent'.

        Field Documentation

        Blender Source Code

        Parent node.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__parent
      • getId

        public CPointer<ID> getId()
                           throws java.io.IOException
        Get method for struct member 'id'.

        Field Documentation

        Blender Source Code

        Optional link to libdata.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__id
      • setId

        public void setId​(CPointer<ID> id)
                   throws java.io.IOException
        Set method for struct member 'id'.

        Field Documentation

        Blender Source Code

        Optional link to libdata.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__id
      • getStorage

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

        Field Documentation

        Blender Source Code

        Custom data, must be struct, for storage in file.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__storage
      • setStorage

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

        Field Documentation

        Blender Source Code

        Custom data, must be struct, for storage in file.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__storage
      • getOriginal

        public CPointer<bNode> getOriginal()
                                    throws java.io.IOException
        Get method for struct member 'original'.

        Field Documentation

        Blender Source Code

        The original node in the tree (for localized tree).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__original
      • setOriginal

        public void setOriginal​(CPointer<bNode> original)
                         throws java.io.IOException
        Set method for struct member 'original'.

        Field Documentation

        Blender Source Code

        The original node in the tree (for localized tree).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__original
      • getInternal_links

        public ListBase getInternal_links()
                                   throws java.io.IOException
        Get method for struct member 'internal_links'.

        Field Documentation

        Blender Source Code

        List of cached internal links (input to output), for muted nodes and operators.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__internal_links
      • setInternal_links

        public void setInternal_links​(ListBase internal_links)
                               throws java.io.IOException
        Set method for struct member 'internal_links'.

        Field Documentation

        Blender Source Code

        List of cached internal links (input to output), for muted nodes and operators.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__internal_links
      • getLocx

        public float getLocx()
                      throws java.io.IOException
        Get method for struct member 'locx'.

        Field Documentation

        Blender Source Code

        Root offset for drawing (parent space).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__locx
      • setLocx

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

        Field Documentation

        Blender Source Code

        Root offset for drawing (parent space).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__locx
      • getLocy

        public float getLocy()
                      throws java.io.IOException
        Get method for struct member 'locy'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__locy
      • setLocy

        public void setLocy​(float locy)
                     throws java.io.IOException
        Set method for struct member 'locy'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__locy
      • getWidth

        public float getWidth()
                       throws java.io.IOException
        Get method for struct member 'width'.

        Field Documentation

        Blender Source Code

        Node custom width and height.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__width
      • setWidth

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

        Field Documentation

        Blender Source Code

        Node custom width and height.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__width
      • getHeight

        public float getHeight()
                        throws java.io.IOException
        Get method for struct member 'height'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__height
      • setHeight

        public void setHeight​(float height)
                       throws java.io.IOException
        Set method for struct member 'height'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__height
      • getMiniwidth

        public float getMiniwidth()
                           throws java.io.IOException
        Get method for struct member 'miniwidth'.

        Field Documentation

        Blender Source Code

        Node width if hidden.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__miniwidth
      • setMiniwidth

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

        Field Documentation

        Blender Source Code

        Node width if hidden.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__miniwidth
      • getOffsetx

        public float getOffsetx()
                         throws java.io.IOException
        Get method for struct member 'offsetx'.

        Field Documentation

        Blender Source Code

        Additional offset from loc.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__offsetx
      • setOffsetx

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

        Field Documentation

        Blender Source Code

        Additional offset from loc.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__offsetx
      • getOffsety

        public float getOffsety()
                         throws java.io.IOException
        Get method for struct member 'offsety'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__offsety
      • setOffsety

        public void setOffsety​(float offsety)
                        throws java.io.IOException
        Set method for struct member 'offsety'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__offsety
      • getAnim_init_locx

        public float getAnim_init_locx()
                                throws java.io.IOException
        Get method for struct member 'anim_init_locx'.

        Field Documentation

        Blender Source Code

        Initial locx for insert offset animation.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__anim_init_locx
      • setAnim_init_locx

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

        Field Documentation

        Blender Source Code

        Initial locx for insert offset animation.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__anim_init_locx
      • getAnim_ofsx

        public float getAnim_ofsx()
                           throws java.io.IOException
        Get method for struct member 'anim_ofsx'.

        Field Documentation

        Blender Source Code

        Offset that will be added to locx for insert offset animation.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__anim_ofsx
      • setAnim_ofsx

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

        Field Documentation

        Blender Source Code

        Offset that will be added to locx for insert offset animation.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__anim_ofsx
      • getUpdate

        public int getUpdate()
                      throws java.io.IOException
        Get method for struct member 'update'.

        Field Documentation

        Blender Source Code

        Update flags.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__update
      • setUpdate

        public void setUpdate​(int update)
                       throws java.io.IOException
        Set method for struct member 'update'.

        Field Documentation

        Blender Source Code

        Update flags.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__update
      • getLabel

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

        Field Documentation

        Blender Source Code

        Custom user-defined label, MAX_NAME.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__label
      • setLabel

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

        Field Documentation

        Blender Source Code

        Custom user-defined label, MAX_NAME.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__label
      • getCustom1

        public short getCustom1()
                         throws java.io.IOException
        Get method for struct member 'custom1'.

        Field Documentation

        Blender Source Code

        To be abused for buttons.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__custom1
      • setCustom1

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

        Field Documentation

        Blender Source Code

        To be abused for buttons.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__custom1
      • getCustom2

        public short getCustom2()
                         throws java.io.IOException
        Get method for struct member 'custom2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__custom2
      • setCustom2

        public void setCustom2​(short custom2)
                        throws java.io.IOException
        Set method for struct member 'custom2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__custom2
      • getCustom3

        public float getCustom3()
                         throws java.io.IOException
        Get method for struct member 'custom3'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__custom3
      • setCustom3

        public void setCustom3​(float custom3)
                        throws java.io.IOException
        Set method for struct member 'custom3'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__custom3
      • getCustom4

        public float getCustom4()
                         throws java.io.IOException
        Get method for struct member 'custom4'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__custom4
      • setCustom4

        public void setCustom4​(float custom4)
                        throws java.io.IOException
        Set method for struct member 'custom4'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__custom4
      • get_pad1

        public CArrayFacade<java.lang.Byte> get_pad1()
                                              throws java.io.IOException
        Get method for struct member '_pad1'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad1
      • set_pad1

        public void set_pad1​(CArrayFacade<java.lang.Byte> _pad1)
                      throws java.io.IOException
        Set method for struct member '_pad1'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad1
      • getTotr

        public rctf getTotr()
                     throws java.io.IOException
        Get method for struct member 'totr'.

        Field Documentation

        Blender Source Code

        Entire bound-box (world-space).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__totr
      • setTotr

        public void setTotr​(rctf totr)
                     throws java.io.IOException
        Set method for struct member 'totr'.

        Field Documentation

        Blender Source Code

        Entire bound-box (world-space).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__totr
      • getPrvr

        public rctf getPrvr()
                     throws java.io.IOException
        Get method for struct member 'prvr'.

        Field Documentation

        Blender Source Code

        Optional preview area.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prvr
      • setPrvr

        public void setPrvr​(rctf prvr)
                     throws java.io.IOException
        Set method for struct member 'prvr'.

        Field Documentation

        Blender Source Code

        Optional preview area.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__prvr
      • getPreview_xsize

        public short getPreview_xsize()
                               throws java.io.IOException
        Get method for struct member 'preview_xsize'.

        Field Documentation

        Blender Source Code

        XXX TODO Node totr size depends on the prvr size, which in turn is determined from preview size. In earlier versions bNodePreview was stored directly in nodes, but since now there can be multiple instances using different preview images it is possible that required node size varies between instances. preview_xsize, preview_ysize defines a common reserved size for preview rect for now, could be replaced by more accurate node instance drawing, but that requires removing totr from DNA and replacing all uses with per-instance data. Reserved size of the preview rect.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__preview_xsize
      • setPreview_xsize

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

        Field Documentation

        Blender Source Code

        XXX TODO Node totr size depends on the prvr size, which in turn is determined from preview size. In earlier versions bNodePreview was stored directly in nodes, but since now there can be multiple instances using different preview images it is possible that required node size varies between instances. preview_xsize, preview_ysize defines a common reserved size for preview rect for now, could be replaced by more accurate node instance drawing, but that requires removing totr from DNA and replacing all uses with per-instance data. Reserved size of the preview rect.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__preview_xsize
      • getPreview_ysize

        public short getPreview_ysize()
                               throws java.io.IOException
        Get method for struct member 'preview_ysize'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__preview_ysize
      • setPreview_ysize

        public void setPreview_ysize​(short preview_ysize)
                              throws java.io.IOException
        Set method for struct member 'preview_ysize'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__preview_ysize
      • getTmp_flag

        public short getTmp_flag()
                          throws java.io.IOException
        Get method for struct member 'tmp_flag'.

        Field Documentation

        Blender Source Code

        Used at runtime when going through the tree. Initialize before use.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tmp_flag
      • setTmp_flag

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

        Field Documentation

        Blender Source Code

        Used at runtime when going through the tree. Initialize before use.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tmp_flag
      • get_pad0

        public byte get_pad0()
                      throws java.io.IOException
        Get method for struct member '_pad0'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad0
      • set_pad0

        public void set_pad0​(byte _pad0)
                      throws java.io.IOException
        Set method for struct member '_pad0'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad0
      • getIter_flag

        public byte getIter_flag()
                          throws java.io.IOException
        Get method for struct member 'iter_flag'.

        Field Documentation

        Blender Source Code

        Used at runtime when iterating over node branches.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__iter_flag
      • setIter_flag

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

        Field Documentation

        Blender Source Code

        Used at runtime when iterating over node branches.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__iter_flag
      • getDeclaration

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

        Field Documentation

        Blender Source Code

        Describes the desired interface of the node. This is run-time data only. The actual interface of the node may deviate from the declaration temporarily. It's possible to sync the actual state of the node to the desired state. Currently, this is only done when a node is created or loaded.

        In the future, we may want to keep more data only in the declaration, so that it does not have to be synced to other places that are stored in files. That especially applies to data that can't be edited by users directly (e.g. min/max values of sockets, tooltips, ...).

        The declaration of a node can be recreated at any time when it is used. Caching it here is just a bit more efficient when it is used a lot. To make sure that the cache is up-to-date, call #nodeDeclarationEnsure before using it.

        Currently, the declaration is the same for every node of the same type. Going forward, that is intended to change though. Especially when nodes become more dynamic with respect to how many sockets they have.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__declaration
      • setDeclaration

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

        Field Documentation

        Blender Source Code

        Describes the desired interface of the node. This is run-time data only. The actual interface of the node may deviate from the declaration temporarily. It's possible to sync the actual state of the node to the desired state. Currently, this is only done when a node is created or loaded.

        In the future, we may want to keep more data only in the declaration, so that it does not have to be synced to other places that are stored in files. That especially applies to data that can't be edited by users directly (e.g. min/max values of sockets, tooltips, ...).

        The declaration of a node can be recreated at any time when it is used. Caching it here is just a bit more efficient when it is used a lot. To make sure that the cache is up-to-date, call #nodeDeclarationEnsure before using it.

        Currently, the declaration is the same for every node of the same type. Going forward, that is intended to change though. Especially when nodes become more dynamic with respect to how many sockets they have.

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

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