Class Histogram


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         Histogram histogram = ...;
         CPointer<Object> p = histogram.__dna__addressof(Histogram.__DNA__FIELD__channels);
         CPointer<Integer> p_channels = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'channels'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__x_resolution

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

        Pointer Arithmetics

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

         Histogram histogram = ...;
         CPointer<Object> p = histogram.__dna__addressof(Histogram.__DNA__FIELD__x_resolution);
         CPointer<Integer> p_x_resolution = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'x_resolution'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__data_luma

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

        Pointer Arithmetics

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

         Histogram histogram = ...;
         CPointer<Object> p = histogram.__dna__addressof(Histogram.__DNA__FIELD__data_luma);
         CPointer<CArrayFacade<Float>> p_data_luma = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'data_luma'
        • Signature: 'float[256]'
        • Actual Size (32bit/64bit): 1024/1024
      • __DNA__FIELD__data_r

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

        Pointer Arithmetics

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

         Histogram histogram = ...;
         CPointer<Object> p = histogram.__dna__addressof(Histogram.__DNA__FIELD__data_r);
         CPointer<CArrayFacade<Float>> p_data_r = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'data_r'
        • Signature: 'float[256]'
        • Actual Size (32bit/64bit): 1024/1024
      • __DNA__FIELD__data_g

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

        Pointer Arithmetics

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

         Histogram histogram = ...;
         CPointer<Object> p = histogram.__dna__addressof(Histogram.__DNA__FIELD__data_g);
         CPointer<CArrayFacade<Float>> p_data_g = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'data_g'
        • Signature: 'float[256]'
        • Actual Size (32bit/64bit): 1024/1024
      • __DNA__FIELD__data_b

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

        Pointer Arithmetics

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

         Histogram histogram = ...;
         CPointer<Object> p = histogram.__dna__addressof(Histogram.__DNA__FIELD__data_b);
         CPointer<CArrayFacade<Float>> p_data_b = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'data_b'
        • Signature: 'float[256]'
        • Actual Size (32bit/64bit): 1024/1024
      • __DNA__FIELD__data_a

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

        Pointer Arithmetics

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

         Histogram histogram = ...;
         CPointer<Object> p = histogram.__dna__addressof(Histogram.__DNA__FIELD__data_a);
         CPointer<CArrayFacade<Float>> p_data_a = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'data_a'
        • Signature: 'float[256]'
        • Actual Size (32bit/64bit): 1024/1024
      • __DNA__FIELD__xmax

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

        Pointer Arithmetics

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

         Histogram histogram = ...;
         CPointer<Object> p = histogram.__dna__addressof(Histogram.__DNA__FIELD__xmax);
         CPointer<Float> p_xmax = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'xmax'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__ymax

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

        Pointer Arithmetics

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

         Histogram histogram = ...;
         CPointer<Object> p = histogram.__dna__addressof(Histogram.__DNA__FIELD__ymax);
         CPointer<Float> p_ymax = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'ymax'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__mode

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

        Field Documentation

        Blender Python API

        Channels to display in the histogram

        Pointer Arithmetics

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

         Histogram histogram = ...;
         CPointer<Object> p = histogram.__dna__addressof(Histogram.__DNA__FIELD__mode);
         CPointer<Short> p_mode = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'mode'
        • 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:

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

         Histogram histogram = ...;
         CPointer<Object> p = histogram.__dna__addressof(Histogram.__DNA__FIELD__height);
         CPointer<Integer> p_height = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'height'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__co

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

        Field Documentation

        Blender Source Code

        Sample line only (image coords: source -> destination).

        Pointer Arithmetics

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

         Histogram histogram = ...;
         CPointer<Object> p = histogram.__dna__addressof(Histogram.__DNA__FIELD__co);
         CPointer<CArrayFacade<CArrayFacade<Float>>> p_co = p.cast(new Class[]{CArrayFacade.class, CArrayFacade.class, Float.class});
         

        Metadata

        • Field: 'co'
        • Signature: 'float[2][2]'
        • Actual Size (32bit/64bit): 16/16
    • Constructor Detail

      • Histogram

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

        protected Histogram​(Histogram that)
    • Method Detail

      • getChannels

        public int getChannels()
                        throws java.io.IOException
        Get method for struct member 'channels'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__channels
      • setChannels

        public void setChannels​(int channels)
                         throws java.io.IOException
        Set method for struct member 'channels'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__channels
      • getX_resolution

        public int getX_resolution()
                            throws java.io.IOException
        Get method for struct member 'x_resolution'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__x_resolution
      • setX_resolution

        public void setX_resolution​(int x_resolution)
                             throws java.io.IOException
        Set method for struct member 'x_resolution'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__x_resolution
      • getData_luma

        public CArrayFacade<java.lang.Float> getData_luma()
                                                   throws java.io.IOException
        Get method for struct member 'data_luma'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data_luma
      • setData_luma

        public void setData_luma​(CArrayFacade<java.lang.Float> data_luma)
                          throws java.io.IOException
        Set method for struct member 'data_luma'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data_luma
      • getData_r

        public CArrayFacade<java.lang.Float> getData_r()
                                                throws java.io.IOException
        Get method for struct member 'data_r'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data_r
      • setData_r

        public void setData_r​(CArrayFacade<java.lang.Float> data_r)
                       throws java.io.IOException
        Set method for struct member 'data_r'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data_r
      • getData_g

        public CArrayFacade<java.lang.Float> getData_g()
                                                throws java.io.IOException
        Get method for struct member 'data_g'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data_g
      • setData_g

        public void setData_g​(CArrayFacade<java.lang.Float> data_g)
                       throws java.io.IOException
        Set method for struct member 'data_g'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data_g
      • getData_b

        public CArrayFacade<java.lang.Float> getData_b()
                                                throws java.io.IOException
        Get method for struct member 'data_b'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data_b
      • setData_b

        public void setData_b​(CArrayFacade<java.lang.Float> data_b)
                       throws java.io.IOException
        Set method for struct member 'data_b'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data_b
      • getData_a

        public CArrayFacade<java.lang.Float> getData_a()
                                                throws java.io.IOException
        Get method for struct member 'data_a'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data_a
      • setData_a

        public void setData_a​(CArrayFacade<java.lang.Float> data_a)
                       throws java.io.IOException
        Set method for struct member 'data_a'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__data_a
      • getXmax

        public float getXmax()
                      throws java.io.IOException
        Get method for struct member 'xmax'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__xmax
      • setXmax

        public void setXmax​(float xmax)
                     throws java.io.IOException
        Set method for struct member 'xmax'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__xmax
      • getYmax

        public float getYmax()
                      throws java.io.IOException
        Get method for struct member 'ymax'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ymax
      • setYmax

        public void setYmax​(float ymax)
                     throws java.io.IOException
        Set method for struct member 'ymax'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__ymax
      • getMode

        public short getMode()
                      throws java.io.IOException
        Get method for struct member 'mode'.

        Field Documentation

        Blender Python API

        Channels to display in the histogram
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mode
      • setMode

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

        Field Documentation

        Blender Python API

        Channels to display in the histogram
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mode
      • 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
      • getHeight

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

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

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

        Field Documentation

        Blender Source Code

        Sample line only (image coords: source -> destination).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__co
      • setCo

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

        Field Documentation

        Blender Source Code

        Sample line only (image coords: source -> destination).

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

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