public class KeyBlock extends CFacade
Modifier and Type | Field and Description |
---|---|
static long[] |
__DNA__FIELD___pad1
Field descriptor (offset) for struct member '_pad1'.
|
static long[] |
__DNA__FIELD__curval
Field descriptor (offset) for struct member 'curval'.
|
static long[] |
__DNA__FIELD__data
Field descriptor (offset) for struct member 'data'.
|
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__pos
Field descriptor (offset) for struct member 'pos'.
|
static long[] |
__DNA__FIELD__prev
Field descriptor (offset) for struct member 'prev'.
|
static long[] |
__DNA__FIELD__relative
Field descriptor (offset) for struct member 'relative'.
|
static long[] |
__DNA__FIELD__slidermax
Field descriptor (offset) for struct member 'slidermax'.
|
static long[] |
__DNA__FIELD__slidermin
Field descriptor (offset) for struct member 'slidermin'.
|
static long[] |
__DNA__FIELD__totelem
Field descriptor (offset) for struct member 'totelem'.
|
static long[] |
__DNA__FIELD__type
Field descriptor (offset) for struct member 'type'.
|
static long[] |
__DNA__FIELD__uid
Field descriptor (offset) for struct member 'uid'.
|
static long[] |
__DNA__FIELD__vgroup
Field descriptor (offset) for struct member 'vgroup'.
|
static int |
__DNA__SDNA_INDEX
This is the sdna index of the struct KeyBlock.
|
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
Modifier | Constructor and Description |
---|---|
protected |
KeyBlock(KeyBlock that) |
|
KeyBlock(long __address,
Block __block,
BlockTable __blockTable) |
Modifier and Type | Method and Description |
---|---|
CPointer<KeyBlock> |
__io__addressof()
Instantiates a pointer on this instance.
|
CArrayFacade<java.lang.Byte> |
get_pad1()
Get method for struct member '_pad1'.
|
float |
getCurval()
Get method for struct member 'curval'.
|
CPointer<java.lang.Object> |
getData()
Get method for struct member 'data'.
|
short |
getFlag()
Get method for struct member 'flag'.
|
CArrayFacade<java.lang.Byte> |
getName()
Get method for struct member 'name'.
|
CPointer<KeyBlock> |
getNext()
Get method for struct member 'next'.
|
float |
getPos()
Get method for struct member 'pos'.
|
CPointer<KeyBlock> |
getPrev()
Get method for struct member 'prev'.
|
short |
getRelative()
Get method for struct member 'relative'.
|
float |
getSlidermax()
Get method for struct member 'slidermax'.
|
float |
getSlidermin()
Get method for struct member 'slidermin'.
|
int |
getTotelem()
Get method for struct member 'totelem'.
|
short |
getType()
Get method for struct member 'type'.
|
int |
getUid()
Get method for struct member 'uid'.
|
CArrayFacade<java.lang.Byte> |
getVgroup()
Get method for struct member 'vgroup'.
|
void |
set_pad1(CArrayFacade<java.lang.Byte> _pad1)
Set method for struct member '_pad1'.
|
void |
setCurval(float curval)
Set method for struct member 'curval'.
|
void |
setData(CPointer<java.lang.Object> data)
Set method for struct member 'data'.
|
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<KeyBlock> next)
Set method for struct member 'next'.
|
void |
setPos(float pos)
Set method for struct member 'pos'.
|
void |
setPrev(CPointer<KeyBlock> prev)
Set method for struct member 'prev'.
|
void |
setRelative(short relative)
Set method for struct member 'relative'.
|
void |
setSlidermax(float slidermax)
Set method for struct member 'slidermax'.
|
void |
setSlidermin(float slidermin)
Set method for struct member 'slidermin'.
|
void |
setTotelem(int totelem)
Set method for struct member 'totelem'.
|
void |
setType(short type)
Set method for struct member 'type'.
|
void |
setUid(int uid)
Set method for struct member 'uid'.
|
void |
setVgroup(CArrayFacade<java.lang.Byte> vgroup)
Set method for struct member 'vgroup'.
|
__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 KeyBlock.
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:
KeyBlock keyblock = ...; CPointer<Object> p = keyblock.__dna__addressof(KeyBlock.__DNA__FIELD__next); CPointer<CPointer<KeyBlock>> p_next = p.cast(new Class[]{CPointer.class, KeyBlock.class});
public static final long[] __DNA__FIELD__prev
This is how you get a reference on the corresponding field in the struct:
KeyBlock keyblock = ...; CPointer<Object> p = keyblock.__dna__addressof(KeyBlock.__DNA__FIELD__prev); CPointer<CPointer<KeyBlock>> p_prev = p.cast(new Class[]{CPointer.class, KeyBlock.class});
public static final long[] __DNA__FIELD__pos
point in time (Key->type == KEY_NORMAL) only, for historic reasons this is relative to (Key->ctime / 100), so this value increments by 0.1f per frame.
This is how you get a reference on the corresponding field in the struct:
KeyBlock keyblock = ...; CPointer<Object> p = keyblock.__dna__addressof(KeyBlock.__DNA__FIELD__pos); CPointer<Float> p_pos = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__curval
influence (typically [0 - 1] but can be more), (Key->type == KEY_RELATIVE) only.
This is how you get a reference on the corresponding field in the struct:
KeyBlock keyblock = ...; CPointer<Object> p = keyblock.__dna__addressof(KeyBlock.__DNA__FIELD__curval); CPointer<Float> p_curval = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__type
interpolation type (Key->type == KEY_NORMAL) only.
This is how you get a reference on the corresponding field in the struct:
KeyBlock keyblock = ...; CPointer<Object> p = keyblock.__dna__addressof(KeyBlock.__DNA__FIELD__type); CPointer<Short> p_type = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD___pad1
This is how you get a reference on the corresponding field in the struct:
KeyBlock keyblock = ...; CPointer<Object> p = keyblock.__dna__addressof(KeyBlock.__DNA__FIELD___pad1); CPointer<CArrayFacade<Byte>> p__pad1 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
public static final long[] __DNA__FIELD__relative
relative == 0 means first key is reference, otherwise the index of Key->blocks
This is how you get a reference on the corresponding field in the struct:
KeyBlock keyblock = ...; CPointer<Object> p = keyblock.__dna__addressof(KeyBlock.__DNA__FIELD__relative); CPointer<Short> p_relative = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__flag
This is how you get a reference on the corresponding field in the struct:
KeyBlock keyblock = ...; CPointer<Object> p = keyblock.__dna__addressof(KeyBlock.__DNA__FIELD__flag); CPointer<Short> p_flag = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__totelem
total number if items in the keyblock (compare with mesh/curve verts to check we match)
This is how you get a reference on the corresponding field in the struct:
KeyBlock keyblock = ...; CPointer<Object> p = keyblock.__dna__addressof(KeyBlock.__DNA__FIELD__totelem); CPointer<Integer> p_totelem = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__uid
for meshes only, match the unique number with the customdata layer
This is how you get a reference on the corresponding field in the struct:
KeyBlock keyblock = ...; CPointer<Object> p = keyblock.__dna__addressof(KeyBlock.__DNA__FIELD__uid); CPointer<Integer> p_uid = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__data
array of shape key values, size is (Key->elemsize * KeyBlock->totelem)
This is how you get a reference on the corresponding field in the struct:
KeyBlock keyblock = ...; CPointer<Object> p = keyblock.__dna__addressof(KeyBlock.__DNA__FIELD__data); CPointer<CPointer<Object>> p_data = p.cast(new Class[]{CPointer.class, Object.class});
public static final long[] __DNA__FIELD__name
MAX_NAME (unique name, user assigned)
This is how you get a reference on the corresponding field in the struct:
KeyBlock keyblock = ...; CPointer<Object> p = keyblock.__dna__addressof(KeyBlock.__DNA__FIELD__name); CPointer<CArrayFacade<Byte>> p_name = p.cast(new Class[]{CArrayFacade.class, Byte.class});
public static final long[] __DNA__FIELD__vgroup
MAX_VGROUP_NAME (optional vertex group), array gets allocated into 'weights' when set
This is how you get a reference on the corresponding field in the struct:
KeyBlock keyblock = ...; CPointer<Object> p = keyblock.__dna__addressof(KeyBlock.__DNA__FIELD__vgroup); CPointer<CArrayFacade<Byte>> p_vgroup = p.cast(new Class[]{CArrayFacade.class, Byte.class});
public static final long[] __DNA__FIELD__slidermin
ranges, for RNA and UI only to clamp 'curval'
This is how you get a reference on the corresponding field in the struct:
KeyBlock keyblock = ...; CPointer<Object> p = keyblock.__dna__addressof(KeyBlock.__DNA__FIELD__slidermin); CPointer<Float> p_slidermin = p.cast(new Class[]{Float.class});
public static final long[] __DNA__FIELD__slidermax
This is how you get a reference on the corresponding field in the struct:
KeyBlock keyblock = ...; CPointer<Object> p = keyblock.__dna__addressof(KeyBlock.__DNA__FIELD__slidermax); CPointer<Float> p_slidermax = p.cast(new Class[]{Float.class});
public KeyBlock(long __address, Block __block, BlockTable __blockTable)
protected KeyBlock(KeyBlock that)
public CPointer<KeyBlock> getNext() throws java.io.IOException
java.io.IOException
__DNA__FIELD__next
public void setNext(CPointer<KeyBlock> next) throws java.io.IOException
java.io.IOException
__DNA__FIELD__next
public CPointer<KeyBlock> getPrev() throws java.io.IOException
java.io.IOException
__DNA__FIELD__prev
public void setPrev(CPointer<KeyBlock> prev) throws java.io.IOException
java.io.IOException
__DNA__FIELD__prev
public float getPos() throws java.io.IOException
point in time (Key->type == KEY_NORMAL) only, for historic reasons this is relative to (Key->ctime / 100), so this value increments by 0.1f per frame.
java.io.IOException
__DNA__FIELD__pos
public void setPos(float pos) throws java.io.IOException
point in time (Key->type == KEY_NORMAL) only, for historic reasons this is relative to (Key->ctime / 100), so this value increments by 0.1f per frame.
java.io.IOException
__DNA__FIELD__pos
public float getCurval() throws java.io.IOException
influence (typically [0 - 1] but can be more), (Key->type == KEY_RELATIVE) only.
java.io.IOException
__DNA__FIELD__curval
public void setCurval(float curval) throws java.io.IOException
influence (typically [0 - 1] but can be more), (Key->type == KEY_RELATIVE) only.
java.io.IOException
__DNA__FIELD__curval
public short getType() throws java.io.IOException
interpolation type (Key->type == KEY_NORMAL) only.
java.io.IOException
__DNA__FIELD__type
public void setType(short type) throws java.io.IOException
interpolation type (Key->type == KEY_NORMAL) only.
java.io.IOException
__DNA__FIELD__type
public CArrayFacade<java.lang.Byte> get_pad1() throws java.io.IOException
java.io.IOException
__DNA__FIELD___pad1
public void set_pad1(CArrayFacade<java.lang.Byte> _pad1) throws java.io.IOException
java.io.IOException
__DNA__FIELD___pad1
public short getRelative() throws java.io.IOException
relative == 0 means first key is reference, otherwise the index of Key->blocks
java.io.IOException
__DNA__FIELD__relative
public void setRelative(short relative) throws java.io.IOException
relative == 0 means first key is reference, otherwise the index of Key->blocks
java.io.IOException
__DNA__FIELD__relative
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 int getTotelem() throws java.io.IOException
total number if items in the keyblock (compare with mesh/curve verts to check we match)
java.io.IOException
__DNA__FIELD__totelem
public void setTotelem(int totelem) throws java.io.IOException
total number if items in the keyblock (compare with mesh/curve verts to check we match)
java.io.IOException
__DNA__FIELD__totelem
public int getUid() throws java.io.IOException
for meshes only, match the unique number with the customdata layer
java.io.IOException
__DNA__FIELD__uid
public void setUid(int uid) throws java.io.IOException
for meshes only, match the unique number with the customdata layer
java.io.IOException
__DNA__FIELD__uid
public CPointer<java.lang.Object> getData() throws java.io.IOException
array of shape key values, size is (Key->elemsize * KeyBlock->totelem)
java.io.IOException
__DNA__FIELD__data
public void setData(CPointer<java.lang.Object> data) throws java.io.IOException
array of shape key values, size is (Key->elemsize * KeyBlock->totelem)
java.io.IOException
__DNA__FIELD__data
public CArrayFacade<java.lang.Byte> getName() throws java.io.IOException
MAX_NAME (unique name, user assigned)
java.io.IOException
__DNA__FIELD__name
public void setName(CArrayFacade<java.lang.Byte> name) throws java.io.IOException
MAX_NAME (unique name, user assigned)
java.io.IOException
__DNA__FIELD__name
public CArrayFacade<java.lang.Byte> getVgroup() throws java.io.IOException
MAX_VGROUP_NAME (optional vertex group), array gets allocated into 'weights' when set
java.io.IOException
__DNA__FIELD__vgroup
public void setVgroup(CArrayFacade<java.lang.Byte> vgroup) throws java.io.IOException
MAX_VGROUP_NAME (optional vertex group), array gets allocated into 'weights' when set
java.io.IOException
__DNA__FIELD__vgroup
public float getSlidermin() throws java.io.IOException
ranges, for RNA and UI only to clamp 'curval'
java.io.IOException
__DNA__FIELD__slidermin
public void setSlidermin(float slidermin) throws java.io.IOException
ranges, for RNA and UI only to clamp 'curval'
java.io.IOException
__DNA__FIELD__slidermin
public float getSlidermax() throws java.io.IOException
java.io.IOException
__DNA__FIELD__slidermax
public void setSlidermax(float slidermax) throws java.io.IOException
java.io.IOException
__DNA__FIELD__slidermax