Class SolidLight


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

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __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:

         SolidLight solidlight = ...;
         CPointer<Object> p = solidlight.__dna__addressof(SolidLight.__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__smooth

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

        Pointer Arithmetics

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

         SolidLight solidlight = ...;
         CPointer<Object> p = solidlight.__dna__addressof(SolidLight.__DNA__FIELD__smooth);
         CPointer<Float> p_smooth = p.cast(new Class[]{Float.class});
         

        Metadata

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

         SolidLight solidlight = ...;
         CPointer<Object> p = solidlight.__dna__addressof(SolidLight.__DNA__FIELD___pad0);
         CPointer<CArrayFacade<Byte>> p__pad0 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad0'
        • Signature: 'char[8]'
        • Actual Size (32bit/64bit): 8/8
      • __DNA__FIELD__col

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

        Pointer Arithmetics

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

         SolidLight solidlight = ...;
         CPointer<Object> p = solidlight.__dna__addressof(SolidLight.__DNA__FIELD__col);
         CPointer<CArrayFacade<Float>> p_col = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

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

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

        Pointer Arithmetics

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

         SolidLight solidlight = ...;
         CPointer<Object> p = solidlight.__dna__addressof(SolidLight.__DNA__FIELD__spec);
         CPointer<CArrayFacade<Float>> p_spec = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

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

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

        Pointer Arithmetics

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

         SolidLight solidlight = ...;
         CPointer<Object> p = solidlight.__dna__addressof(SolidLight.__DNA__FIELD__vec);
         CPointer<CArrayFacade<Float>> p_vec = p.cast(new Class[]{CArrayFacade.class, Float.class});
         

        Metadata

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

      • SolidLight

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

        protected SolidLight​(SolidLight that)
    • Method Detail

      • 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
      • getSmooth

        public float getSmooth()
                        throws java.io.IOException
        Get method for struct member 'smooth'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__smooth
      • setSmooth

        public void setSmooth​(float smooth)
                       throws java.io.IOException
        Set method for struct member 'smooth'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__smooth
      • get_pad0

        public CArrayFacade<java.lang.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​(CArrayFacade<java.lang.Byte> _pad0)
                      throws java.io.IOException
        Set method for struct member '_pad0'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad0
      • getCol

        public CArrayFacade<java.lang.Float> getCol()
                                             throws java.io.IOException
        Get method for struct member 'col'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__col
      • setCol

        public void setCol​(CArrayFacade<java.lang.Float> col)
                    throws java.io.IOException
        Set method for struct member 'col'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__col
      • getSpec

        public CArrayFacade<java.lang.Float> getSpec()
                                              throws java.io.IOException
        Get method for struct member 'spec'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__spec
      • setSpec

        public void setSpec​(CArrayFacade<java.lang.Float> spec)
                     throws java.io.IOException
        Set method for struct member 'spec'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__spec
      • getVec

        public CArrayFacade<java.lang.Float> getVec()
                                             throws java.io.IOException
        Get method for struct member 'vec'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__vec
      • setVec

        public void setVec​(CArrayFacade<java.lang.Float> vec)
                    throws java.io.IOException
        Set method for struct member 'vec'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__vec
      • __io__addressof

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