public class CustomData extends CFacade
Structure which stores custom element data associated with mesh elements (vertices, edges or faces). The custom data is organized into a series of layers, each with a data type (e.g. MTFace
, MDeformVert
, etc.).
Modifier and Type | Field and Description |
---|---|
static long[] |
__DNA__FIELD__external
Field descriptor (offset) for struct member 'external'.
|
static long[] |
__DNA__FIELD__layers
Field descriptor (offset) for struct member 'layers'.
|
static long[] |
__DNA__FIELD__maxlayer
Field descriptor (offset) for struct member 'maxlayer'.
|
static long[] |
__DNA__FIELD__pool
Field descriptor (offset) for struct member 'pool'.
|
static long[] |
__DNA__FIELD__totlayer
Field descriptor (offset) for struct member 'totlayer'.
|
static long[] |
__DNA__FIELD__totsize
Field descriptor (offset) for struct member 'totsize'.
|
static long[] |
__DNA__FIELD__typemap
Field descriptor (offset) for struct member 'typemap'.
|
static int |
__DNA__SDNA_INDEX
This is the sdna index of the struct CustomData.
|
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
Modifier | Constructor and Description |
---|---|
protected |
CustomData(CustomData that) |
|
CustomData(long __address,
Block __block,
BlockTable __blockTable) |
Modifier and Type | Method and Description |
---|---|
CPointer<CustomData> |
__io__addressof()
Instantiates a pointer on this instance.
|
CPointer<CustomDataExternal> |
getExternal()
Get method for struct member 'external'.
|
CPointer<CustomDataLayer> |
getLayers()
Get method for struct member 'layers'.
|
int |
getMaxlayer()
Get method for struct member 'maxlayer'.
|
CPointer<java.lang.Object> |
getPool()
Get method for struct member 'pool'.
|
int |
getTotlayer()
Get method for struct member 'totlayer'.
|
int |
getTotsize()
Get method for struct member 'totsize'.
|
CArrayFacade<java.lang.Integer> |
getTypemap()
Get method for struct member 'typemap'.
|
void |
setExternal(CPointer<CustomDataExternal> external)
Set method for struct member 'external'.
|
void |
setLayers(CPointer<CustomDataLayer> layers)
Set method for struct member 'layers'.
|
void |
setMaxlayer(int maxlayer)
Set method for struct member 'maxlayer'.
|
void |
setPool(CPointer<java.lang.Object> pool)
Set method for struct member 'pool'.
|
void |
setTotlayer(int totlayer)
Set method for struct member 'totlayer'.
|
void |
setTotsize(int totsize)
Set method for struct member 'totsize'.
|
void |
setTypemap(CArrayFacade<java.lang.Integer> typemap)
Set method for struct member 'typemap'.
|
__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 CustomData.
org.cakelab.blender.io.dna.internal.StructDNA}
,
org.cakelab.blender.io.block.BlockTable#allocate}
,
Constant Field Valuespublic static final long[] __DNA__FIELD__layers
CustomDataLayers, ordered by type.
This is how you get a reference on the corresponding field in the struct:
CustomData customdata = ...; CPointer<Object> p = customdata.__dna__addressof(CustomData.__DNA__FIELD__layers); CPointer<CPointer<CustomDataLayer>> p_layers = p.cast(new Class[]{CPointer.class, CustomDataLayer.class});
public static final long[] __DNA__FIELD__typemap
runtime only! - maps types to indices of first layer of that type, MUST be >= CD_NUMTYPES, but we cant use a define here. Correct size is ensured in CustomData_update_typemap assert().
This is how you get a reference on the corresponding field in the struct:
CustomData customdata = ...; CPointer<Object> p = customdata.__dna__addressof(CustomData.__DNA__FIELD__typemap); CPointer<CArrayFacade<Integer>> p_typemap = p.cast(new Class[]{CArrayFacade.class, Integer.class});
public static final long[] __DNA__FIELD__totlayer
Number of layers, size of layers array.
This is how you get a reference on the corresponding field in the struct:
CustomData customdata = ...; CPointer<Object> p = customdata.__dna__addressof(CustomData.__DNA__FIELD__totlayer); CPointer<Integer> p_totlayer = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__maxlayer
This is how you get a reference on the corresponding field in the struct:
CustomData customdata = ...; CPointer<Object> p = customdata.__dna__addressof(CustomData.__DNA__FIELD__maxlayer); CPointer<Integer> p_maxlayer = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__totsize
In editmode, total size of all data layers.
This is how you get a reference on the corresponding field in the struct:
CustomData customdata = ...; CPointer<Object> p = customdata.__dna__addressof(CustomData.__DNA__FIELD__totsize); CPointer<Integer> p_totsize = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__pool
(BMesh Only): Memory pool for allocation of blocks.
This is how you get a reference on the corresponding field in the struct:
CustomData customdata = ...; CPointer<Object> p = customdata.__dna__addressof(CustomData.__DNA__FIELD__pool); CPointer<CPointer<Object>> p_pool = p.cast(new Class[]{CPointer.class, Object.class});
public static final long[] __DNA__FIELD__external
External file storing customdata layers.
This is how you get a reference on the corresponding field in the struct:
CustomData customdata = ...; CPointer<Object> p = customdata.__dna__addressof(CustomData.__DNA__FIELD__external); CPointer<CPointer<CustomDataExternal>> p_external = p.cast(new Class[]{CPointer.class, CustomDataExternal.class});
public CustomData(long __address, Block __block, BlockTable __blockTable)
protected CustomData(CustomData that)
public CPointer<CustomDataLayer> getLayers() throws java.io.IOException
CustomDataLayers, ordered by type.
java.io.IOException
__DNA__FIELD__layers
public void setLayers(CPointer<CustomDataLayer> layers) throws java.io.IOException
CustomDataLayers, ordered by type.
java.io.IOException
__DNA__FIELD__layers
public CArrayFacade<java.lang.Integer> getTypemap() throws java.io.IOException
runtime only! - maps types to indices of first layer of that type, MUST be >= CD_NUMTYPES, but we cant use a define here. Correct size is ensured in CustomData_update_typemap assert().
java.io.IOException
__DNA__FIELD__typemap
public void setTypemap(CArrayFacade<java.lang.Integer> typemap) throws java.io.IOException
runtime only! - maps types to indices of first layer of that type, MUST be >= CD_NUMTYPES, but we cant use a define here. Correct size is ensured in CustomData_update_typemap assert().
java.io.IOException
__DNA__FIELD__typemap
public int getTotlayer() throws java.io.IOException
Number of layers, size of layers array.
java.io.IOException
__DNA__FIELD__totlayer
public void setTotlayer(int totlayer) throws java.io.IOException
Number of layers, size of layers array.
java.io.IOException
__DNA__FIELD__totlayer
public int getMaxlayer() throws java.io.IOException
java.io.IOException
__DNA__FIELD__maxlayer
public void setMaxlayer(int maxlayer) throws java.io.IOException
java.io.IOException
__DNA__FIELD__maxlayer
public int getTotsize() throws java.io.IOException
In editmode, total size of all data layers.
java.io.IOException
__DNA__FIELD__totsize
public void setTotsize(int totsize) throws java.io.IOException
In editmode, total size of all data layers.
java.io.IOException
__DNA__FIELD__totsize
public CPointer<java.lang.Object> getPool() throws java.io.IOException
(BMesh Only): Memory pool for allocation of blocks.
java.io.IOException
__DNA__FIELD__pool
public void setPool(CPointer<java.lang.Object> pool) throws java.io.IOException
(BMesh Only): Memory pool for allocation of blocks.
java.io.IOException
__DNA__FIELD__pool
public CPointer<CustomDataExternal> getExternal() throws java.io.IOException
External file storing customdata layers.
java.io.IOException
__DNA__FIELD__external
public void setExternal(CPointer<CustomDataExternal> external) throws java.io.IOException
External file storing customdata layers.
java.io.IOException
__DNA__FIELD__external
public CPointer<CustomData> __io__addressof()