Package org.blender.dna
Class MDeformWeight
- java.lang.Object
-
- org.cakelab.blender.nio.CFacade
-
- org.blender.dna.MDeformWeight
-
public class MDeformWeight extends CFacade
Generated facet for DNA struct type 'MDeformWeight'.Class Documentation
Blender Source Code
Vertex group index and weight for
MDeformVert.getDw()
-
-
Field Summary
Fields Modifier and Type Field Description static long[]
__DNA__FIELD__def_nr
Field descriptor (offset) for struct member 'def_nr'.static long[]
__DNA__FIELD__weight
Field descriptor (offset) for struct member 'weight'.static int
__DNA__SDNA_INDEX
This is the sdna index of the struct MDeformWeight.-
Fields inherited from class org.cakelab.blender.nio.CFacade
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
-
-
Constructor Summary
Constructors Modifier Constructor Description MDeformWeight(long __address, Block __block, BlockTable __blockTable)
protected
MDeformWeight(MDeformWeight that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPointer<MDeformWeight>
__io__addressof()
Instantiates a pointer on this instance.int
getDef_nr()
Get method for struct member 'def_nr'.float
getWeight()
Get method for struct member 'weight'.void
setDef_nr(int def_nr)
Set method for struct member 'def_nr'.void
setWeight(float weight)
Set method for struct member 'weight'.-
Methods inherited from class org.cakelab.blender.nio.CFacade
__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, equals, hashCode
-
-
-
-
Field Detail
-
__DNA__SDNA_INDEX
public static final int __DNA__SDNA_INDEX
This is the sdna index of the struct MDeformWeight.It is required when allocating a new block to store data for MDeformWeight.
- See Also:
StructDNA
,BlockTable
, Constant Field Values
-
__DNA__FIELD__def_nr
public static final long[] __DNA__FIELD__def_nr
Field descriptor (offset) for struct member 'def_nr'.Field Documentation
Blender Source Code
be unique when in an array.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
MDeformWeight mdeformweight = ...; CPointer<Object> p = mdeformweight.__dna__addressof(MDeformWeight.__DNA__FIELD__def_nr); CPointer<Integer> p_def_nr = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'def_nr'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__weight
public static final long[] __DNA__FIELD__weight
Field descriptor (offset) for struct member 'weight'.Field Documentation
Blender Source Code
Weight between 0.0 and 1.0.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
MDeformWeight mdeformweight = ...; CPointer<Object> p = mdeformweight.__dna__addressof(MDeformWeight.__DNA__FIELD__weight); CPointer<Float> p_weight = p.cast(new Class[]{Float.class});
Metadata
- Field: 'weight'
- Signature: 'float'
- Actual Size (32bit/64bit): 4/4
-
-
Constructor Detail
-
MDeformWeight
public MDeformWeight(long __address, Block __block, BlockTable __blockTable)
-
MDeformWeight
protected MDeformWeight(MDeformWeight that)
-
-
Method Detail
-
getDef_nr
public int getDef_nr() throws java.io.IOException
Get method for struct member 'def_nr'.Field Documentation
Blender Source Code
be unique when in an array.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__def_nr
-
setDef_nr
public void setDef_nr(int def_nr) throws java.io.IOException
Set method for struct member 'def_nr'.Field Documentation
Blender Source Code
be unique when in an array.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__def_nr
-
getWeight
public float getWeight() throws java.io.IOException
Get method for struct member 'weight'.Field Documentation
Blender Source Code
Weight between 0.0 and 1.0.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__weight
-
setWeight
public void setWeight(float weight) throws java.io.IOException
Set method for struct member 'weight'.Field Documentation
Blender Source Code
Weight between 0.0 and 1.0.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__weight
-
__io__addressof
public CPointer<MDeformWeight> __io__addressof()
Instantiates a pointer on this instance.
-
-