Class UnitSettings
- java.lang.Object
-
- org.cakelab.blender.nio.CFacade
-
- org.blender.dna.UnitSettings
-
-
Field Summary
Fields Modifier and Type Field Description static long[]
__DNA__FIELD___pad
Field descriptor (offset) for struct member '_pad'.static long[]
__DNA__FIELD__flag
Field descriptor (offset) for struct member 'flag'.static long[]
__DNA__FIELD__length_unit
Field descriptor (offset) for struct member 'length_unit'.static long[]
__DNA__FIELD__mass_unit
Field descriptor (offset) for struct member 'mass_unit'.static long[]
__DNA__FIELD__scale_length
Field descriptor (offset) for struct member 'scale_length'.static long[]
__DNA__FIELD__system
Field descriptor (offset) for struct member 'system'.static long[]
__DNA__FIELD__system_rotation
Field descriptor (offset) for struct member 'system_rotation'.static long[]
__DNA__FIELD__temperature_unit
Field descriptor (offset) for struct member 'temperature_unit'.static long[]
__DNA__FIELD__time_unit
Field descriptor (offset) for struct member 'time_unit'.static int
__DNA__SDNA_INDEX
This is the sdna index of the struct UnitSettings.-
Fields inherited from class org.cakelab.blender.nio.CFacade
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
-
-
Constructor Summary
Constructors Modifier Constructor Description UnitSettings(long __address, Block __block, BlockTable __blockTable)
protected
UnitSettings(UnitSettings that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPointer<UnitSettings>
__io__addressof()
Instantiates a pointer on this instance.CArrayFacade<java.lang.Byte>
get_pad()
Get method for struct member '_pad'.short
getFlag()
Get method for struct member 'flag'.byte
getLength_unit()
Get method for struct member 'length_unit'.byte
getMass_unit()
Get method for struct member 'mass_unit'.float
getScale_length()
Get method for struct member 'scale_length'.byte
getSystem()
Get method for struct member 'system'.byte
getSystem_rotation()
Get method for struct member 'system_rotation'.byte
getTemperature_unit()
Get method for struct member 'temperature_unit'.byte
getTime_unit()
Get method for struct member 'time_unit'.void
set_pad(CArrayFacade<java.lang.Byte> _pad)
Set method for struct member '_pad'.void
setFlag(short flag)
Set method for struct member 'flag'.void
setLength_unit(byte length_unit)
Set method for struct member 'length_unit'.void
setMass_unit(byte mass_unit)
Set method for struct member 'mass_unit'.void
setScale_length(float scale_length)
Set method for struct member 'scale_length'.void
setSystem(byte system)
Set method for struct member 'system'.void
setSystem_rotation(byte system_rotation)
Set method for struct member 'system_rotation'.void
setTemperature_unit(byte temperature_unit)
Set method for struct member 'temperature_unit'.void
setTime_unit(byte time_unit)
Set method for struct member 'time_unit'.-
Methods inherited from class org.cakelab.blender.nio.CFacade
__io__addressof, __io__addressof, __io__equals, __io__generic__copy, __io__generic__copy, __io__instanceof, __io__native__copy, __io__newInstance, __io__same__encoding, __io__sizeof, __io__sizeof, __io__subclassof, equals, hashCode
-
-
-
-
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 problemsBlender 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 controlsBlender 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 valuesBlender 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 valuesPointer 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 valuesPointer 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 valuesPointer 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__temperature_unit
public static final long[] __DNA__FIELD__temperature_unit
Field descriptor (offset) for struct member 'temperature_unit'.Field Documentation
Blender Python API
Unit that will be used to display temperature valuesPointer 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__temperature_unit); CPointer<Byte> p_temperature_unit = p.cast(new Class[]{Byte.class});
Metadata
- Field: 'temperature_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[4]'
- Actual Size (32bit/64bit): 4/4
-
-
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 problemsBlender 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 problemsBlender 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 controlsBlender 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 controlsBlender 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 valuesBlender 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 valuesBlender 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
-
getTemperature_unit
public byte getTemperature_unit() throws java.io.IOException
Get method for struct member 'temperature_unit'.Field Documentation
Blender Python API
Unit that will be used to display temperature values- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__temperature_unit
-
setTemperature_unit
public void setTemperature_unit(byte temperature_unit) throws java.io.IOException
Set method for struct member 'temperature_unit'.Field Documentation
Blender Python API
Unit that will be used to display temperature values- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__temperature_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.
-
-