Class UnitSettings


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

    Class Documentation

    Blender Source Code


    Assorted Scene Data
    Unit Settings

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Field Documentation

        Blender Python API

        Scale to use when converting between blender units and dimensions. When working at microscopic or astronomical scale, a small or large unit scale respectively can be used to avoid numerical precision problems

        Blender Source Code

        Display/Editing unit options for each scene Maybe have other unit conversions?.

        Pointer Arithmetics

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

         UnitSettings unitsettings = ...;
         CPointer<Object> p = unitsettings.__dna__addressof(UnitSettings.__DNA__FIELD__scale_length);
         CPointer<Float> p_scale_length = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'scale_length'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__system

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

        Field Documentation

        Blender Python API

        The unit system to use for user interface controls

        Blender Source Code

        Imperial, metric etc.

        Pointer Arithmetics

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

         UnitSettings unitsettings = ...;
         CPointer<Object> p = unitsettings.__dna__addressof(UnitSettings.__DNA__FIELD__system);
         CPointer<Byte> p_system = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'system'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__system_rotation

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

        Field Documentation

        Blender Python API

        Unit to use for displaying/editing rotation values

        Blender Source Code

        Not implemented as a proper unit system yet.

        Pointer Arithmetics

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

         UnitSettings unitsettings = ...;
         CPointer<Object> p = unitsettings.__dna__addressof(UnitSettings.__DNA__FIELD__system_rotation);
         CPointer<Byte> p_system_rotation = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'system_rotation'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __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:

         UnitSettings unitsettings = ...;
         CPointer<Object> p = unitsettings.__dna__addressof(UnitSettings.__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__length_unit

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

        Field Documentation

        Blender Python API

        Unit that will be used to display length values

        Pointer Arithmetics

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

         UnitSettings unitsettings = ...;
         CPointer<Object> p = unitsettings.__dna__addressof(UnitSettings.__DNA__FIELD__length_unit);
         CPointer<Byte> p_length_unit = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'length_unit'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__mass_unit

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

        Field Documentation

        Blender Python API

        Unit that will be used to display mass values

        Pointer Arithmetics

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

         UnitSettings unitsettings = ...;
         CPointer<Object> p = unitsettings.__dna__addressof(UnitSettings.__DNA__FIELD__mass_unit);
         CPointer<Byte> p_mass_unit = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'mass_unit'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __DNA__FIELD__time_unit

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

        Field Documentation

        Blender Python API

        Unit that will be used to display time values

        Pointer Arithmetics

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

         UnitSettings unitsettings = ...;
         CPointer<Object> p = unitsettings.__dna__addressof(UnitSettings.__DNA__FIELD__time_unit);
         CPointer<Byte> p_time_unit = p.cast(new Class[]{Byte.class});
         

        Metadata

        • Field: 'time_unit'
        • Signature: 'char'
        • Actual Size (32bit/64bit): 1/1
      • __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:

         UnitSettings unitsettings = ...;
         CPointer<Object> p = unitsettings.__dna__addressof(UnitSettings.__DNA__FIELD___pad);
         CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

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

      • UnitSettings

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

        protected UnitSettings​(UnitSettings that)
    • Method Detail

      • getScale_length

        public float getScale_length()
                              throws java.io.IOException
        Get method for struct member 'scale_length'.

        Field Documentation

        Blender Python API

        Scale to use when converting between blender units and dimensions. When working at microscopic or astronomical scale, a small or large unit scale respectively can be used to avoid numerical precision problems

        Blender Source Code

        Display/Editing unit options for each scene Maybe have other unit conversions?.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__scale_length
      • setScale_length

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

        Field Documentation

        Blender Python API

        Scale to use when converting between blender units and dimensions. When working at microscopic or astronomical scale, a small or large unit scale respectively can be used to avoid numerical precision problems

        Blender Source Code

        Display/Editing unit options for each scene Maybe have other unit conversions?.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__scale_length
      • getSystem

        public byte getSystem()
                       throws java.io.IOException
        Get method for struct member 'system'.

        Field Documentation

        Blender Python API

        The unit system to use for user interface controls

        Blender Source Code

        Imperial, metric etc.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__system
      • setSystem

        public void setSystem​(byte system)
                       throws java.io.IOException
        Set method for struct member 'system'.

        Field Documentation

        Blender Python API

        The unit system to use for user interface controls

        Blender Source Code

        Imperial, metric etc.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__system
      • getSystem_rotation

        public byte getSystem_rotation()
                                throws java.io.IOException
        Get method for struct member 'system_rotation'.

        Field Documentation

        Blender Python API

        Unit to use for displaying/editing rotation values

        Blender Source Code

        Not implemented as a proper unit system yet.

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__system_rotation
      • setSystem_rotation

        public void setSystem_rotation​(byte system_rotation)
                                throws java.io.IOException
        Set method for struct member 'system_rotation'.

        Field Documentation

        Blender Python API

        Unit to use for displaying/editing rotation values

        Blender Source Code

        Not implemented as a proper unit system yet.

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

        public byte getLength_unit()
                            throws java.io.IOException
        Get method for struct member 'length_unit'.

        Field Documentation

        Blender Python API

        Unit that will be used to display length values
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__length_unit
      • setLength_unit

        public void setLength_unit​(byte length_unit)
                            throws java.io.IOException
        Set method for struct member 'length_unit'.

        Field Documentation

        Blender Python API

        Unit that will be used to display length values
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__length_unit
      • getMass_unit

        public byte getMass_unit()
                          throws java.io.IOException
        Get method for struct member 'mass_unit'.

        Field Documentation

        Blender Python API

        Unit that will be used to display mass values
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mass_unit
      • setMass_unit

        public void setMass_unit​(byte mass_unit)
                          throws java.io.IOException
        Set method for struct member 'mass_unit'.

        Field Documentation

        Blender Python API

        Unit that will be used to display mass values
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mass_unit
      • getTime_unit

        public byte getTime_unit()
                          throws java.io.IOException
        Get method for struct member 'time_unit'.

        Field Documentation

        Blender Python API

        Unit that will be used to display time values
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__time_unit
      • setTime_unit

        public void setTime_unit​(byte time_unit)
                          throws java.io.IOException
        Set method for struct member 'time_unit'.

        Field Documentation

        Blender Python API

        Unit that will be used to display time values
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__time_unit
      • 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
      • __io__addressof

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