public class UnitSettings extends CFacade
Modifier and Type | Field and Description |
---|---|
static long[] |
__DNA__FIELD__flag
Field descriptor (offset) for struct member 'flag'.
|
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 int |
__DNA__SDNA_INDEX
This is the sdna index of the struct UnitSettings.
|
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
Modifier | Constructor and Description |
---|---|
|
UnitSettings(long __address,
Block __block,
BlockTable __blockTable) |
protected |
UnitSettings(UnitSettings that) |
Modifier and Type | Method and Description |
---|---|
CPointer<UnitSettings> |
__io__addressof()
Instantiates a pointer on this instance.
|
short |
getFlag()
Get method for struct member 'flag'.
|
float |
getScale_length()
Get method for struct member 'scale_length'.
|
byte |
getSystem_rotation()
Get method for struct member 'system_rotation'.
|
byte |
getSystem()
Get method for struct member 'system'.
|
void |
setFlag(short flag)
Set method for struct member 'flag'.
|
void |
setScale_length(float scale_length)
Set method for struct member 'scale_length'.
|
void |
setSystem_rotation(byte system_rotation)
Set method for struct member 'system_rotation'.
|
void |
setSystem(byte system)
Set method for struct member 'system'.
|
__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
public static final int __DNA__SDNA_INDEX
It is required when allocating a new block to store data for UnitSettings.
org.cakelab.blender.io.dna.internal.StructDNA}
,
org.cakelab.blender.io.block.BlockTable#allocate}
,
Constant Field Valuespublic static final long[] __DNA__FIELD__scale_length
Display/Editing unit options for each scene maybe have other unit conversions?
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});
public static final long[] __DNA__FIELD__system
imperial, metric etc
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});
public static final long[] __DNA__FIELD__system_rotation
not implemented as a proper unit system yet
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});
public static final long[] __DNA__FIELD__flag
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});
public UnitSettings(long __address, Block __block, BlockTable __blockTable)
protected UnitSettings(UnitSettings that)
public float getScale_length() throws java.io.IOException
Display/Editing unit options for each scene maybe have other unit conversions?
java.io.IOException
__DNA__FIELD__scale_length
public void setScale_length(float scale_length) throws java.io.IOException
Display/Editing unit options for each scene maybe have other unit conversions?
java.io.IOException
__DNA__FIELD__scale_length
public byte getSystem() throws java.io.IOException
imperial, metric etc
java.io.IOException
__DNA__FIELD__system
public void setSystem(byte system) throws java.io.IOException
imperial, metric etc
java.io.IOException
__DNA__FIELD__system
public byte getSystem_rotation() throws java.io.IOException
not implemented as a proper unit system yet
java.io.IOException
__DNA__FIELD__system_rotation
public void setSystem_rotation(byte system_rotation) throws java.io.IOException
not implemented as a proper unit system yet
java.io.IOException
__DNA__FIELD__system_rotation
public short getFlag() throws java.io.IOException
java.io.IOException
__DNA__FIELD__flag
public void setFlag(short flag) throws java.io.IOException
java.io.IOException
__DNA__FIELD__flag
public CPointer<UnitSettings> __io__addressof()