public class BoidData extends CFacade
Modifier and Type | Field and Description |
---|---|
static long[] |
__DNA__FIELD__acc
Field descriptor (offset) for struct member 'acc'.
|
static long[] |
__DNA__FIELD__health
Field descriptor (offset) for struct member 'health'.
|
static long[] |
__DNA__FIELD__mode
Field descriptor (offset) for struct member 'mode'.
|
static long[] |
__DNA__FIELD__state_id
Field descriptor (offset) for struct member 'state_id'.
|
static int |
__DNA__SDNA_INDEX
This is the sdna index of the struct BoidData.
|
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
Modifier | Constructor and Description |
---|---|
protected |
BoidData(BoidData that) |
|
BoidData(long __address,
Block __block,
BlockTable __blockTable) |
Modifier and Type | Method and Description |
---|---|
CPointer<BoidData> |
__io__addressof()
Instantiates a pointer on this instance.
|
CArrayFacade<java.lang.Float> |
getAcc()
Get method for struct member 'acc'.
|
float |
getHealth()
Get method for struct member 'health'.
|
short |
getMode()
Get method for struct member 'mode'.
|
short |
getState_id()
Get method for struct member 'state_id'.
|
void |
setAcc(CArrayFacade<java.lang.Float> acc)
Set method for struct member 'acc'.
|
void |
setHealth(float health)
Set method for struct member 'health'.
|
void |
setMode(short mode)
Set method for struct member 'mode'.
|
void |
setState_id(short state_id)
Set method for struct member 'state_id'.
|
__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 BoidData.
org.cakelab.blender.io.dna.internal.StructDNA}
,
org.cakelab.blender.io.block.BlockTable#allocate}
,
Constant Field Valuespublic static final long[] __DNA__FIELD__health
This is how you get a reference on the corresponding field in the struct:
BoidData boiddata = ...; CPointer<Object> p = boiddata.__dna__addressof(BoidData.__DNA__FIELD__health); CPointer<Float> p_health = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__acc
This is how you get a reference on the corresponding field in the struct:
BoidData boiddata = ...; CPointer<Object> p = boiddata.__dna__addressof(BoidData.__DNA__FIELD__acc); CPointer<CArrayFacade<Float>> p_acc = p.cast(new Class[]{CArrayFacade.class, Float.class});
public static final long[] __DNA__FIELD__state_id
This is how you get a reference on the corresponding field in the struct:
BoidData boiddata = ...; CPointer<Object> p = boiddata.__dna__addressof(BoidData.__DNA__FIELD__state_id); CPointer<Short> p_state_id = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__mode
This is how you get a reference on the corresponding field in the struct:
BoidData boiddata = ...; CPointer<Object> p = boiddata.__dna__addressof(BoidData.__DNA__FIELD__mode); CPointer<Short> p_mode = p.cast(new Class[]{Short.class});
public BoidData(long __address, Block __block, BlockTable __blockTable)
protected BoidData(BoidData that)
public float getHealth() throws java.io.IOException
java.io.IOException
__DNA__FIELD__health
public void setHealth(float health) throws java.io.IOException
java.io.IOException
__DNA__FIELD__health
public CArrayFacade<java.lang.Float> getAcc() throws java.io.IOException
java.io.IOException
__DNA__FIELD__acc
public void setAcc(CArrayFacade<java.lang.Float> acc) throws java.io.IOException
java.io.IOException
__DNA__FIELD__acc
public short getState_id() throws java.io.IOException
java.io.IOException
__DNA__FIELD__state_id
public void setState_id(short state_id) throws java.io.IOException
java.io.IOException
__DNA__FIELD__state_id
public short getMode() throws java.io.IOException
java.io.IOException
__DNA__FIELD__mode
public void setMode(short mode) throws java.io.IOException
java.io.IOException
__DNA__FIELD__mode