Class ImagePackedFile


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        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:

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

        Metadata

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

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

        Metadata

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

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

        Pointer Arithmetics

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

         ImagePackedFile imagepackedfile = ...;
         CPointer<Object> p = imagepackedfile.__dna__addressof(ImagePackedFile.__DNA__FIELD__packedfile);
         CPointer<CPointer<PackedFile>> p_packedfile = p.cast(new Class[]{CPointer.class, PackedFile.class});
         

        Metadata

        • Field: 'packedfile'
        • Signature: 'PackedFile*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__view

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

        Field Documentation

        Blender Python API

        (read-only)

        Blender Source Code

        Which view and tile this ImagePackedFile represents. Normal images will use 0 and 1001 respectively when creating their ImagePackedFile . Must be provided for each packed image.

        Pointer Arithmetics

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

         ImagePackedFile imagepackedfile = ...;
         CPointer<Object> p = imagepackedfile.__dna__addressof(ImagePackedFile.__DNA__FIELD__view);
         CPointer<Integer> p_view = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'view'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__tile_number

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

        Field Documentation

        Blender Python API

        (read-only)

        Pointer Arithmetics

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

         ImagePackedFile imagepackedfile = ...;
         CPointer<Object> p = imagepackedfile.__dna__addressof(ImagePackedFile.__DNA__FIELD__tile_number);
         CPointer<Integer> p_tile_number = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'tile_number'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__filepath

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

        Field Documentation

        Blender Source Code

        1024 = FILE_MAX.

        Pointer Arithmetics

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

         ImagePackedFile imagepackedfile = ...;
         CPointer<Object> p = imagepackedfile.__dna__addressof(ImagePackedFile.__DNA__FIELD__filepath);
         CPointer<CArrayFacade<Byte>> p_filepath = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: 'filepath'
        • Signature: 'char[1024]'
        • Actual Size (32bit/64bit): 1024/1024
    • Constructor Detail

      • ImagePackedFile

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

      • setPackedfile

        public void setPackedfile​(CPointer<PackedFile> packedfile)
                           throws java.io.IOException
        Set method for struct member 'packedfile'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__packedfile
      • getView

        public int getView()
                    throws java.io.IOException
        Get method for struct member 'view'.

        Field Documentation

        Blender Python API

        (read-only)

        Blender Source Code

        Which view and tile this ImagePackedFile represents. Normal images will use 0 and 1001 respectively when creating their ImagePackedFile . Must be provided for each packed image.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__view
      • setView

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

        Field Documentation

        Blender Python API

        (read-only)

        Blender Source Code

        Which view and tile this ImagePackedFile represents. Normal images will use 0 and 1001 respectively when creating their ImagePackedFile . Must be provided for each packed image.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__view
      • getTile_number

        public int getTile_number()
                           throws java.io.IOException
        Get method for struct member 'tile_number'.

        Field Documentation

        Blender Python API

        (read-only)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tile_number
      • setTile_number

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

        Field Documentation

        Blender Python API

        (read-only)
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__tile_number
      • getFilepath

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

        Field Documentation

        Blender Source Code

        1024 = FILE_MAX.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__filepath
      • setFilepath

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

        Field Documentation

        Blender Source Code

        1024 = FILE_MAX.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__filepath