public class DriverVar extends CFacade
Driver Variable (dvar)
A 'variable' for use as an input for the driver evaluation. Defines a way of accessing some channel to use, that can be referred to in the expression as a variable, thus simplifying expressions and also Depsgraph building.
Modifier and Type | Field and Description |
---|---|
static long[] |
__DNA__FIELD__curval
Field descriptor (offset) for struct member 'curval'.
|
static long[] |
__DNA__FIELD__flag
Field descriptor (offset) for struct member 'flag'.
|
static long[] |
__DNA__FIELD__name
Field descriptor (offset) for struct member 'name'.
|
static long[] |
__DNA__FIELD__next
Field descriptor (offset) for struct member 'next'.
|
static long[] |
__DNA__FIELD__num_targets
Field descriptor (offset) for struct member 'num_targets'.
|
static long[] |
__DNA__FIELD__prev
Field descriptor (offset) for struct member 'prev'.
|
static long[] |
__DNA__FIELD__targets
Field descriptor (offset) for struct member 'targets'.
|
static long[] |
__DNA__FIELD__type
Field descriptor (offset) for struct member 'type'.
|
static int |
__DNA__SDNA_INDEX
This is the sdna index of the struct DriverVar.
|
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
Modifier | Constructor and Description |
---|---|
protected |
DriverVar(DriverVar that) |
|
DriverVar(long __address,
Block __block,
BlockTable __blockTable) |
Modifier and Type | Method and Description |
---|---|
CPointer<DriverVar> |
__io__addressof()
Instantiates a pointer on this instance.
|
float |
getCurval()
Get method for struct member 'curval'.
|
short |
getFlag()
Get method for struct member 'flag'.
|
CArrayFacade<java.lang.Byte> |
getName()
Get method for struct member 'name'.
|
CPointer<DriverVar> |
getNext()
Get method for struct member 'next'.
|
byte |
getNum_targets()
Get method for struct member 'num_targets'.
|
CPointer<DriverVar> |
getPrev()
Get method for struct member 'prev'.
|
CArrayFacade<DriverTarget> |
getTargets()
Get method for struct member 'targets'.
|
byte |
getType()
Get method for struct member 'type'.
|
void |
setCurval(float curval)
Set method for struct member 'curval'.
|
void |
setFlag(short flag)
Set method for struct member 'flag'.
|
void |
setName(CArrayFacade<java.lang.Byte> name)
Set method for struct member 'name'.
|
void |
setNext(CPointer<DriverVar> next)
Set method for struct member 'next'.
|
void |
setNum_targets(byte num_targets)
Set method for struct member 'num_targets'.
|
void |
setPrev(CPointer<DriverVar> prev)
Set method for struct member 'prev'.
|
void |
setTargets(CArrayFacade<DriverTarget> targets)
Set method for struct member 'targets'.
|
void |
setType(byte type)
Set method for struct member 'type'.
|
__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 DriverVar.
org.cakelab.blender.io.dna.internal.StructDNA}
,
org.cakelab.blender.io.block.BlockTable#allocate}
,
Constant Field Valuespublic static final long[] __DNA__FIELD__next
This is how you get a reference on the corresponding field in the struct:
DriverVar drivervar = ...; CPointer<Object> p = drivervar.__dna__addressof(DriverVar.__DNA__FIELD__next); CPointer<CPointer<DriverVar>> p_next = p.cast(new Class[]{CPointer.class, DriverVar.class});
public static final long[] __DNA__FIELD__prev
This is how you get a reference on the corresponding field in the struct:
DriverVar drivervar = ...; CPointer<Object> p = drivervar.__dna__addressof(DriverVar.__DNA__FIELD__prev); CPointer<CPointer<DriverVar>> p_prev = p.cast(new Class[]{CPointer.class, DriverVar.class});
public static final long[] __DNA__FIELD__name
name of the variable to use in py-expression (must be valid python identifier) - MAX_ID_NAME-2
This is how you get a reference on the corresponding field in the struct:
DriverVar drivervar = ...; CPointer<Object> p = drivervar.__dna__addressof(DriverVar.__DNA__FIELD__name); CPointer<CArrayFacade<Byte>> p_name = p.cast(new Class[]{CArrayFacade.class, Byte.class});
public static final long[] __DNA__FIELD__targets
MAX_DRIVER_TARGETS, target slots
This is how you get a reference on the corresponding field in the struct:
DriverVar drivervar = ...; CPointer<Object> p = drivervar.__dna__addressof(DriverVar.__DNA__FIELD__targets); CPointer<CArrayFacade<DriverTarget>> p_targets = p.cast(new Class[]{CArrayFacade.class, DriverTarget.class});
public static final long[] __DNA__FIELD__num_targets
number of targets actually used by this variable
This is how you get a reference on the corresponding field in the struct:
DriverVar drivervar = ...; CPointer<Object> p = drivervar.__dna__addressof(DriverVar.__DNA__FIELD__num_targets); CPointer<Byte> p_num_targets = p.cast(new Class[]{Byte.class});
public static final long[] __DNA__FIELD__type
type of driver variable (eDriverVar_Types)
This is how you get a reference on the corresponding field in the struct:
DriverVar drivervar = ...; CPointer<Object> p = drivervar.__dna__addressof(DriverVar.__DNA__FIELD__type); CPointer<Byte> p_type = p.cast(new Class[]{Byte.class});
public static final long[] __DNA__FIELD__flag
validation tags, etc. (eDriverVar_Flags)
This is how you get a reference on the corresponding field in the struct:
DriverVar drivervar = ...; CPointer<Object> p = drivervar.__dna__addressof(DriverVar.__DNA__FIELD__flag); CPointer<Short> p_flag = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__curval
result of previous evaluation
This is how you get a reference on the corresponding field in the struct:
DriverVar drivervar = ...; CPointer<Object> p = drivervar.__dna__addressof(DriverVar.__DNA__FIELD__curval); CPointer<Float> p_curval = p.cast(new Class[]{Float.class});
public DriverVar(long __address, Block __block, BlockTable __blockTable)
protected DriverVar(DriverVar that)
public CPointer<DriverVar> getNext() throws java.io.IOException
java.io.IOException
__DNA__FIELD__next
public void setNext(CPointer<DriverVar> next) throws java.io.IOException
java.io.IOException
__DNA__FIELD__next
public CPointer<DriverVar> getPrev() throws java.io.IOException
java.io.IOException
__DNA__FIELD__prev
public void setPrev(CPointer<DriverVar> prev) throws java.io.IOException
java.io.IOException
__DNA__FIELD__prev
public CArrayFacade<java.lang.Byte> getName() throws java.io.IOException
name of the variable to use in py-expression (must be valid python identifier) - MAX_ID_NAME-2
java.io.IOException
__DNA__FIELD__name
public void setName(CArrayFacade<java.lang.Byte> name) throws java.io.IOException
name of the variable to use in py-expression (must be valid python identifier) - MAX_ID_NAME-2
java.io.IOException
__DNA__FIELD__name
public CArrayFacade<DriverTarget> getTargets() throws java.io.IOException
MAX_DRIVER_TARGETS, target slots
java.io.IOException
__DNA__FIELD__targets
public void setTargets(CArrayFacade<DriverTarget> targets) throws java.io.IOException
MAX_DRIVER_TARGETS, target slots
java.io.IOException
__DNA__FIELD__targets
public byte getNum_targets() throws java.io.IOException
number of targets actually used by this variable
java.io.IOException
__DNA__FIELD__num_targets
public void setNum_targets(byte num_targets) throws java.io.IOException
number of targets actually used by this variable
java.io.IOException
__DNA__FIELD__num_targets
public byte getType() throws java.io.IOException
type of driver variable (eDriverVar_Types)
java.io.IOException
__DNA__FIELD__type
public void setType(byte type) throws java.io.IOException
type of driver variable (eDriverVar_Types)
java.io.IOException
__DNA__FIELD__type
public short getFlag() throws java.io.IOException
validation tags, etc. (eDriverVar_Flags)
java.io.IOException
__DNA__FIELD__flag
public void setFlag(short flag) throws java.io.IOException
validation tags, etc. (eDriverVar_Flags)
java.io.IOException
__DNA__FIELD__flag
public float getCurval() throws java.io.IOException
result of previous evaluation
java.io.IOException
__DNA__FIELD__curval
public void setCurval(float curval) throws java.io.IOException
result of previous evaluation
java.io.IOException
__DNA__FIELD__curval