public class bNearSensor extends CFacade
****************** SENSORS *********************
Modifier and Type | Field and Description |
---|---|
static long[] |
__DNA__FIELD__dist
Field descriptor (offset) for struct member 'dist'.
|
static long[] |
__DNA__FIELD__lastval
Field descriptor (offset) for struct member 'lastval'.
|
static long[] |
__DNA__FIELD__name
Field descriptor (offset) for struct member 'name'.
|
static long[] |
__DNA__FIELD__pad
Field descriptor (offset) for struct member 'pad'.
|
static long[] |
__DNA__FIELD__resetdist
Field descriptor (offset) for struct member 'resetdist'.
|
static int |
__DNA__SDNA_INDEX
This is the sdna index of the struct bNearSensor.
|
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
Modifier | Constructor and Description |
---|---|
protected |
bNearSensor(bNearSensor that) |
|
bNearSensor(long __address,
Block __block,
BlockTable __blockTable) |
Modifier and Type | Method and Description |
---|---|
CPointer<bNearSensor> |
__io__addressof()
Instantiates a pointer on this instance.
|
float |
getDist()
Get method for struct member 'dist'.
|
int |
getLastval()
Get method for struct member 'lastval'.
|
CArrayFacade<java.lang.Byte> |
getName()
Get method for struct member 'name'.
|
int |
getPad()
Get method for struct member 'pad'.
|
float |
getResetdist()
Get method for struct member 'resetdist'.
|
void |
setDist(float dist)
Set method for struct member 'dist'.
|
void |
setLastval(int lastval)
Set method for struct member 'lastval'.
|
void |
setName(CArrayFacade<java.lang.Byte> name)
Set method for struct member 'name'.
|
void |
setPad(int pad)
Set method for struct member 'pad'.
|
void |
setResetdist(float resetdist)
Set method for struct member 'resetdist'.
|
__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 bNearSensor.
org.cakelab.blender.io.dna.internal.StructDNA}
,
org.cakelab.blender.io.block.BlockTable#allocate}
,
Constant Field Valuespublic static final long[] __DNA__FIELD__name
MAX_NAME
This is how you get a reference on the corresponding field in the struct:
bNearSensor bnearsensor = ...; CPointer<Object> p = bnearsensor.__dna__addressof(bNearSensor.__DNA__FIELD__name); CPointer<CArrayFacade<Byte>> p_name = p.cast(new Class[]{CArrayFacade.class, Byte.class});
public static final long[] __DNA__FIELD__dist
This is how you get a reference on the corresponding field in the struct:
bNearSensor bnearsensor = ...; CPointer<Object> p = bnearsensor.__dna__addressof(bNearSensor.__DNA__FIELD__dist); CPointer<Float> p_dist = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__resetdist
This is how you get a reference on the corresponding field in the struct:
bNearSensor bnearsensor = ...; CPointer<Object> p = bnearsensor.__dna__addressof(bNearSensor.__DNA__FIELD__resetdist); CPointer<Float> p_resetdist = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__lastval
This is how you get a reference on the corresponding field in the struct:
bNearSensor bnearsensor = ...; CPointer<Object> p = bnearsensor.__dna__addressof(bNearSensor.__DNA__FIELD__lastval); CPointer<Integer> p_lastval = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__pad
This is how you get a reference on the corresponding field in the struct:
bNearSensor bnearsensor = ...; CPointer<Object> p = bnearsensor.__dna__addressof(bNearSensor.__DNA__FIELD__pad); CPointer<Integer> p_pad = p.cast(new Class[]{Integer.class});
public bNearSensor(long __address, Block __block, BlockTable __blockTable)
protected bNearSensor(bNearSensor that)
public CArrayFacade<java.lang.Byte> getName() throws java.io.IOException
MAX_NAME
java.io.IOException
__DNA__FIELD__name
public void setName(CArrayFacade<java.lang.Byte> name) throws java.io.IOException
MAX_NAME
java.io.IOException
__DNA__FIELD__name
public float getDist() throws java.io.IOException
java.io.IOException
__DNA__FIELD__dist
public void setDist(float dist) throws java.io.IOException
java.io.IOException
__DNA__FIELD__dist
public float getResetdist() throws java.io.IOException
java.io.IOException
__DNA__FIELD__resetdist
public void setResetdist(float resetdist) throws java.io.IOException
java.io.IOException
__DNA__FIELD__resetdist
public int getLastval() throws java.io.IOException
java.io.IOException
__DNA__FIELD__lastval
public void setLastval(int lastval) throws java.io.IOException
java.io.IOException
__DNA__FIELD__lastval
public int getPad() throws java.io.IOException
java.io.IOException
__DNA__FIELD__pad
public void setPad(int pad) throws java.io.IOException
java.io.IOException
__DNA__FIELD__pad
public CPointer<bNearSensor> __io__addressof()