Class MDisps


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

    Class Documentation

    Blender Source Code

    Multi-Resolution loop data.

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Source Code

        Strange bug in SDNA : if disps pointer comes first, it fails to see totdisp

        Pointer Arithmetics

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

         MDisps mdisps = ...;
         CPointer<Object> p = mdisps.__dna__addressof(MDisps.__DNA__FIELD__totdisp);
         CPointer<Integer> p_totdisp = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'totdisp'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __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:

         MDisps mdisps = ...;
         CPointer<Object> p = mdisps.__dna__addressof(MDisps.__DNA__FIELD__level);
         CPointer<Integer> p_level = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'level'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__hidden

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

        Field Documentation

        Blender Source Code

        Used for hiding parts of a multires mesh. Essentially the multires equivalent of #MVert.flag's ME_HIDE bit.

        Note

        This is a bitmap, keep in sync with type used in BLI_bitmap.h

        This is a bitmap, keep in sync with type used in BLI_bitmap.h

        Pointer Arithmetics

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

         MDisps mdisps = ...;
         CPointer<Object> p = mdisps.__dna__addressof(MDisps.__DNA__FIELD__hidden);
         CPointer<CPointer<Integer>> p_hidden = p.cast(new Class[]{CPointer.class, Integer.class});
         

        Metadata

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

      • MDisps

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

        protected MDisps​(MDisps that)
    • Method Detail

      • getTotdisp

        public int getTotdisp()
                       throws java.io.IOException
        Get method for struct member 'totdisp'.

        Field Documentation

        Blender Source Code

        Strange bug in SDNA : if disps pointer comes first, it fails to see totdisp

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__totdisp
      • setTotdisp

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

        Field Documentation

        Blender Source Code

        Strange bug in SDNA : if disps pointer comes first, it fails to see totdisp

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

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

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

        public CPointer<java.lang.Integer> getHidden()
                                              throws java.io.IOException
        Get method for struct member 'hidden'.

        Field Documentation

        Blender Source Code

        Used for hiding parts of a multires mesh. Essentially the multires equivalent of #MVert.flag's ME_HIDE bit.

        Note

        This is a bitmap, keep in sync with type used in BLI_bitmap.h

        This is a bitmap, keep in sync with type used in BLI_bitmap.h

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__hidden
      • setHidden

        public void setHidden​(CPointer<java.lang.Integer> hidden)
                       throws java.io.IOException
        Set method for struct member 'hidden'.

        Field Documentation

        Blender Source Code

        Used for hiding parts of a multires mesh. Essentially the multires equivalent of #MVert.flag's ME_HIDE bit.

        Note

        This is a bitmap, keep in sync with type used in BLI_bitmap.h

        This is a bitmap, keep in sync with type used in BLI_bitmap.h

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

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