Class MetaElem


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        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:

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

        Metadata

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

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

        Metadata

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

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

        Field Documentation

        Blender Source Code

        Bound Box of MetaElem .

        Pointer Arithmetics

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

         MetaElem metaelem = ...;
         CPointer<Object> p = metaelem.__dna__addressof(MetaElem.__DNA__FIELD__bb);
         CPointer<CPointer<BoundBox>> p_bb = p.cast(new Class[]{CPointer.class, BoundBox.class});
         

        Metadata

        • Field: 'bb'
        • Signature: 'BoundBox*'
        • Actual Size (32bit/64bit): 4/8
      • __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:

         MetaElem metaelem = ...;
         CPointer<Object> p = metaelem.__dna__addressof(MetaElem.__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'.

        Pointer Arithmetics

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

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

        Metadata

        • Field: 'flag'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD___pad

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

        Pointer Arithmetics

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

         MetaElem metaelem = ...;
         CPointer<Object> p = metaelem.__dna__addressof(MetaElem.__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
      • __DNA__FIELD__x

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

        Field Documentation

        Blender Source Code

        Position of center of MetaElem .

        Pointer Arithmetics

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

         MetaElem metaelem = ...;
         CPointer<Object> p = metaelem.__dna__addressof(MetaElem.__DNA__FIELD__x);
         CPointer<Float> p_x = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'x'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__y

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

        Pointer Arithmetics

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

         MetaElem metaelem = ...;
         CPointer<Object> p = metaelem.__dna__addressof(MetaElem.__DNA__FIELD__y);
         CPointer<Float> p_y = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'y'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__z

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

        Pointer Arithmetics

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

         MetaElem metaelem = ...;
         CPointer<Object> p = metaelem.__dna__addressof(MetaElem.__DNA__FIELD__z);
         CPointer<Float> p_z = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'z'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__quat

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

        Field Documentation

        Blender Source Code

        Rotation of MetaElem (MUST be kept normalized).

        Pointer Arithmetics

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

         MetaElem metaelem = ...;
         CPointer<Object> p = metaelem.__dna__addressof(MetaElem.__DNA__FIELD__quat);
         CPointer<CArrayFacade<Float>> p_quat = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'quat'
        • Signature: 'float[4]'
        • Actual Size (32bit/64bit): 16/16
      • __DNA__FIELD__expx

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

        Field Documentation

        Blender Source Code

        Dimension parameters, used for some types like cubes.

        Pointer Arithmetics

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

         MetaElem metaelem = ...;
         CPointer<Object> p = metaelem.__dna__addressof(MetaElem.__DNA__FIELD__expx);
         CPointer<Float> p_expx = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'expx'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__expy

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

        Pointer Arithmetics

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

         MetaElem metaelem = ...;
         CPointer<Object> p = metaelem.__dna__addressof(MetaElem.__DNA__FIELD__expy);
         CPointer<Float> p_expy = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'expy'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__expz

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

        Pointer Arithmetics

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

         MetaElem metaelem = ...;
         CPointer<Object> p = metaelem.__dna__addressof(MetaElem.__DNA__FIELD__expz);
         CPointer<Float> p_expz = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'expz'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__rad

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

        Field Documentation

        Blender Source Code

        Radius of the meta element.

        Pointer Arithmetics

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

         MetaElem metaelem = ...;
         CPointer<Object> p = metaelem.__dna__addressof(MetaElem.__DNA__FIELD__rad);
         CPointer<Float> p_rad = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'rad'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__rad2

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

        Field Documentation

        Blender Source Code

        Temp field, used only while processing.

        Pointer Arithmetics

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

         MetaElem metaelem = ...;
         CPointer<Object> p = metaelem.__dna__addressof(MetaElem.__DNA__FIELD__rad2);
         CPointer<Float> p_rad2 = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'rad2'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__s

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

        Field Documentation

        Blender Source Code

        Stiffness, how much of the element to fill.

        Pointer Arithmetics

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

         MetaElem metaelem = ...;
         CPointer<Object> p = metaelem.__dna__addressof(MetaElem.__DNA__FIELD__s);
         CPointer<Float> p_s = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 's'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__len

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

        Field Documentation

        Blender Source Code

        Old, only used for backwards compat. use dimensions now.

        Pointer Arithmetics

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

         MetaElem metaelem = ...;
         CPointer<Object> p = metaelem.__dna__addressof(MetaElem.__DNA__FIELD__len);
         CPointer<Float> p_len = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'len'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__mat

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

        Field Documentation

        Blender Source Code

        Matrix and inverted matrix.

        Pointer Arithmetics

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

         MetaElem metaelem = ...;
         CPointer<Object> p = metaelem.__dna__addressof(MetaElem.__DNA__FIELD__mat);
         CPointer<CPointer<Float>> p_mat = p.cast(new Class[]{CPointer.class, Float.class});
         

        Metadata

        • Field: 'mat'
        • Signature: 'float*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__imat

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

        Pointer Arithmetics

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

         MetaElem metaelem = ...;
         CPointer<Object> p = metaelem.__dna__addressof(MetaElem.__DNA__FIELD__imat);
         CPointer<CPointer<Float>> p_imat = p.cast(new Class[]{CPointer.class, Float.class});
         

        Metadata

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

      • MetaElem

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

        protected MetaElem​(MetaElem that)
    • Method Detail

      • setNext

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

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

        public CPointer<BoundBox> getBb()
                                 throws java.io.IOException
        Get method for struct member 'bb'.

        Field Documentation

        Blender Source Code

        Bound Box of MetaElem .

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__bb
      • setBb

        public void setBb​(CPointer<BoundBox> bb)
                   throws java.io.IOException
        Set method for struct member 'bb'.

        Field Documentation

        Blender Source Code

        Bound Box of MetaElem .

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

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

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

        public CArrayFacade<java.lang.Byte> get_pad()
                                             throws java.io.IOException
        Get method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • set_pad

        public void set_pad​(CArrayFacade<java.lang.Byte> _pad)
                     throws java.io.IOException
        Set method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • getX

        public float getX()
                   throws java.io.IOException
        Get method for struct member 'x'.

        Field Documentation

        Blender Source Code

        Position of center of MetaElem .

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__x
      • setX

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

        Field Documentation

        Blender Source Code

        Position of center of MetaElem .

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__x
      • getY

        public float getY()
                   throws java.io.IOException
        Get method for struct member 'y'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__y
      • setY

        public void setY​(float y)
                  throws java.io.IOException
        Set method for struct member 'y'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__y
      • getZ

        public float getZ()
                   throws java.io.IOException
        Get method for struct member 'z'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__z
      • setZ

        public void setZ​(float z)
                  throws java.io.IOException
        Set method for struct member 'z'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__z
      • getQuat

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

        Field Documentation

        Blender Source Code

        Rotation of MetaElem (MUST be kept normalized).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__quat
      • setQuat

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

        Field Documentation

        Blender Source Code

        Rotation of MetaElem (MUST be kept normalized).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__quat
      • getExpx

        public float getExpx()
                      throws java.io.IOException
        Get method for struct member 'expx'.

        Field Documentation

        Blender Source Code

        Dimension parameters, used for some types like cubes.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__expx
      • setExpx

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

        Field Documentation

        Blender Source Code

        Dimension parameters, used for some types like cubes.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__expx
      • getExpy

        public float getExpy()
                      throws java.io.IOException
        Get method for struct member 'expy'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__expy
      • setExpy

        public void setExpy​(float expy)
                     throws java.io.IOException
        Set method for struct member 'expy'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__expy
      • getExpz

        public float getExpz()
                      throws java.io.IOException
        Get method for struct member 'expz'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__expz
      • setExpz

        public void setExpz​(float expz)
                     throws java.io.IOException
        Set method for struct member 'expz'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__expz
      • getRad

        public float getRad()
                     throws java.io.IOException
        Get method for struct member 'rad'.

        Field Documentation

        Blender Source Code

        Radius of the meta element.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rad
      • setRad

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

        Field Documentation

        Blender Source Code

        Radius of the meta element.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rad
      • getRad2

        public float getRad2()
                      throws java.io.IOException
        Get method for struct member 'rad2'.

        Field Documentation

        Blender Source Code

        Temp field, used only while processing.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rad2
      • setRad2

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

        Field Documentation

        Blender Source Code

        Temp field, used only while processing.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__rad2
      • getS

        public float getS()
                   throws java.io.IOException
        Get method for struct member 's'.

        Field Documentation

        Blender Source Code

        Stiffness, how much of the element to fill.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__s
      • setS

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

        Field Documentation

        Blender Source Code

        Stiffness, how much of the element to fill.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__s
      • getLen

        public float getLen()
                     throws java.io.IOException
        Get method for struct member 'len'.

        Field Documentation

        Blender Source Code

        Old, only used for backwards compat. use dimensions now.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__len
      • setLen

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

        Field Documentation

        Blender Source Code

        Old, only used for backwards compat. use dimensions now.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__len
      • getMat

        public CPointer<java.lang.Float> getMat()
                                         throws java.io.IOException
        Get method for struct member 'mat'.

        Field Documentation

        Blender Source Code

        Matrix and inverted matrix.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mat
      • setMat

        public void setMat​(CPointer<java.lang.Float> mat)
                    throws java.io.IOException
        Set method for struct member 'mat'.

        Field Documentation

        Blender Source Code

        Matrix and inverted matrix.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mat
      • getImat

        public CPointer<java.lang.Float> getImat()
                                          throws java.io.IOException
        Get method for struct member 'imat'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__imat
      • setImat

        public void setImat​(CPointer<java.lang.Float> imat)
                     throws java.io.IOException
        Set method for struct member 'imat'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__imat
      • __io__addressof

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