public class CustomDataLayer extends CFacade
Descriptor and storage for a custom data layer.
Modifier and Type | Field and Description |
---|---|
static long[] |
__DNA__FIELD__active
Field descriptor (offset) for struct member 'active'.
|
static long[] |
__DNA__FIELD__active_clone
Field descriptor (offset) for struct member 'active_clone'.
|
static long[] |
__DNA__FIELD__active_mask
Field descriptor (offset) for struct member 'active_mask'.
|
static long[] |
__DNA__FIELD__active_rnd
Field descriptor (offset) for struct member 'active_rnd'.
|
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__offset
Field descriptor (offset) for struct member 'offset'.
|
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 int |
__DNA__SDNA_INDEX
This is the sdna index of the struct CustomDataLayer.
|
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
Modifier | Constructor and Description |
---|---|
protected |
CustomDataLayer(CustomDataLayer that) |
|
CustomDataLayer(long __address,
Block __block,
BlockTable __blockTable) |
Modifier and Type | Method and Description |
---|---|
CPointer<CustomDataLayer> |
__io__addressof()
Instantiates a pointer on this instance.
|
int |
getActive_clone()
Get method for struct member 'active_clone'.
|
int |
getActive_mask()
Get method for struct member 'active_mask'.
|
int |
getActive_rnd()
Get method for struct member 'active_rnd'.
|
int |
getActive()
Get method for struct member 'active'.
|
CPointer<java.lang.Object> |
getData()
Get method for struct member 'data'.
|
int |
getFlag()
Get method for struct member 'flag'.
|
CArrayFacade<java.lang.Byte> |
getName()
Get method for struct member 'name'.
|
int |
getOffset()
Get method for struct member 'offset'.
|
int |
getType()
Get method for struct member 'type'.
|
int |
getUid()
Get method for struct member 'uid'.
|
void |
setActive_clone(int active_clone)
Set method for struct member 'active_clone'.
|
void |
setActive_mask(int active_mask)
Set method for struct member 'active_mask'.
|
void |
setActive_rnd(int active_rnd)
Set method for struct member 'active_rnd'.
|
void |
setActive(int active)
Set method for struct member 'active'.
|
void |
setData(CPointer<java.lang.Object> data)
Set method for struct member 'data'.
|
void |
setFlag(int flag)
Set method for struct member 'flag'.
|
void |
setName(CArrayFacade<java.lang.Byte> name)
Set method for struct member 'name'.
|
void |
setOffset(int offset)
Set method for struct member 'offset'.
|
void |
setType(int type)
Set method for struct member 'type'.
|
void |
setUid(int uid)
Set method for struct member 'uid'.
|
__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 CustomDataLayer.
org.cakelab.blender.io.dna.internal.StructDNA}
,
org.cakelab.blender.io.block.BlockTable#allocate}
,
Constant Field Valuespublic static final long[] __DNA__FIELD__type
CD_AUTO_FROM_NAME = -1, CD_MVERT = 0, CD_MSTICKY = 1, // DEPRECATED CD_MDEFORMVERT = 2, CD_MEDGE = 3, CD_MFACE = 4, CD_MTFACE = 5, CD_MCOL = 6, CD_ORIGINDEX = 7, CD_NORMAL = 8, // CD_POLYINDEX = 9, CD_PROP_FLT = 10, CD_PROP_INT = 11, CD_PROP_STR = 12, CD_ORIGSPACE = 13, // for modifier stack face location mapping CD_ORCO = 14, CD_MTEXPOLY = 15, CD_MLOOPUV = 16, CD_MLOOPCOL = 17, CD_TANGENT = 18, CD_MDISPS = 19, CD_PREVIEW_MCOL = 20, // for displaying weightpaint colors // CD_ID_MCOL = 21, CD_TEXTURE_MLOOPCOL = 22, CD_CLOTH_ORCO = 23, CD_RECAST = 24, // BMESH ONLY START CD_MPOLY = 25, CD_MLOOP = 26, CD_SHAPE_KEYINDEX = 27, CD_SHAPEKEY = 28, CD_BWEIGHT = 29, CD_CREASE = 30, CD_ORIGSPACE_MLOOP = 31, CD_PREVIEW_MLOOPCOL = 32, CD_BM_ELEM_PYPTR = 33, // BMESH ONLY END CD_PAINT_MASK = 34, CD_GRID_PAINT_MASK = 35, CD_MVERT_SKIN = 36, CD_FREESTYLE_EDGE = 37, CD_FREESTYLE_FACE = 38, CD_MLOOPTANGENT = 39, CD_TESSLOOPNORMAL = 40, CD_CUSTOMLOOPNORMAL = 41, CD_NUMTYPES = 42
Type of data in layer.
This is how you get a reference on the corresponding field in the struct:
CustomDataLayer customdatalayer = ...; CPointer<Object> p = customdatalayer.__dna__addressof(CustomDataLayer.__DNA__FIELD__type); CPointer<Integer> p_type = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__offset
In editmode, offset of layer in block.
This is how you get a reference on the corresponding field in the struct:
CustomDataLayer customdatalayer = ...; CPointer<Object> p = customdatalayer.__dna__addressof(CustomDataLayer.__DNA__FIELD__offset); CPointer<Integer> p_offset = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__flag
// Indicates layer should not be copied by CustomData_from_template or CustomData_copy_data CD_FLAG_NOCOPY = (1 << 0), // Indicates layer should not be freed (for layers backed by external data) CD_FLAG_NOFREE = (1 << 1), // Indicates the layer is only temporary, also implies no copy CD_FLAG_TEMPORARY = ((1 << 2) | CD_FLAG_NOCOPY), // Indicates the layer is stored in an external file CD_FLAG_EXTERNAL = (1 << 3), // Indicates external data is read into memory CD_FLAG_IN_MEMORY = (1 << 4),
General purpose flag.
This is how you get a reference on the corresponding field in the struct:
CustomDataLayer customdatalayer = ...; CPointer<Object> p = customdatalayer.__dna__addressof(CustomDataLayer.__DNA__FIELD__flag); CPointer<Integer> p_flag = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__active
Number of the active layer of this type.
This is how you get a reference on the corresponding field in the struct:
CustomDataLayer customdatalayer = ...; CPointer<Object> p = customdatalayer.__dna__addressof(CustomDataLayer.__DNA__FIELD__active); CPointer<Integer> p_active = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__active_rnd
Number of the layer to render.
This is how you get a reference on the corresponding field in the struct:
CustomDataLayer customdatalayer = ...; CPointer<Object> p = customdatalayer.__dna__addressof(CustomDataLayer.__DNA__FIELD__active_rnd); CPointer<Integer> p_active_rnd = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__active_clone
Number of the layer to render.
This is how you get a reference on the corresponding field in the struct:
CustomDataLayer customdatalayer = ...; CPointer<Object> p = customdatalayer.__dna__addressof(CustomDataLayer.__DNA__FIELD__active_clone); CPointer<Integer> p_active_clone = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__active_mask
Number of the layer to render.
This is how you get a reference on the corresponding field in the struct:
CustomDataLayer customdatalayer = ...; CPointer<Object> p = customdatalayer.__dna__addressof(CustomDataLayer.__DNA__FIELD__active_mask); CPointer<Integer> p_active_mask = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__uid
Shape keyblock unique id reference.
This is how you get a reference on the corresponding field in the struct:
CustomDataLayer customdatalayer = ...; CPointer<Object> p = customdatalayer.__dna__addressof(CustomDataLayer.__DNA__FIELD__uid); CPointer<Integer> p_uid = p.cast(new Class[]{Integer.class});
public static final long[] __DNA__FIELD__name
Layer name, MAX_CUSTOMDATA_LAYER_NAME.
This is how you get a reference on the corresponding field in the struct:
CustomDataLayer customdatalayer = ...; CPointer<Object> p = customdatalayer.__dna__addressof(CustomDataLayer.__DNA__FIELD__name); CPointer<CArrayFacade<Byte>> p_name = p.cast(new Class[]{CArrayFacade.class, Byte.class});
public static final long[] __DNA__FIELD__data
Layer data.
This is how you get a reference on the corresponding field in the struct:
CustomDataLayer customdatalayer = ...; CPointer<Object> p = customdatalayer.__dna__addressof(CustomDataLayer.__DNA__FIELD__data); CPointer<CPointer<Object>> p_data = p.cast(new Class[]{CPointer.class, Object.class});
public CustomDataLayer(long __address, Block __block, BlockTable __blockTable)
protected CustomDataLayer(CustomDataLayer that)
public int getType() throws java.io.IOException
CD_AUTO_FROM_NAME = -1, CD_MVERT = 0, CD_MSTICKY = 1, // DEPRECATED CD_MDEFORMVERT = 2, CD_MEDGE = 3, CD_MFACE = 4, CD_MTFACE = 5, CD_MCOL = 6, CD_ORIGINDEX = 7, CD_NORMAL = 8, // CD_POLYINDEX = 9, CD_PROP_FLT = 10, CD_PROP_INT = 11, CD_PROP_STR = 12, CD_ORIGSPACE = 13, // for modifier stack face location mapping CD_ORCO = 14, CD_MTEXPOLY = 15, CD_MLOOPUV = 16, CD_MLOOPCOL = 17, CD_TANGENT = 18, CD_MDISPS = 19, CD_PREVIEW_MCOL = 20, // for displaying weightpaint colors // CD_ID_MCOL = 21, CD_TEXTURE_MLOOPCOL = 22, CD_CLOTH_ORCO = 23, CD_RECAST = 24, // BMESH ONLY START CD_MPOLY = 25, CD_MLOOP = 26, CD_SHAPE_KEYINDEX = 27, CD_SHAPEKEY = 28, CD_BWEIGHT = 29, CD_CREASE = 30, CD_ORIGSPACE_MLOOP = 31, CD_PREVIEW_MLOOPCOL = 32, CD_BM_ELEM_PYPTR = 33, // BMESH ONLY END CD_PAINT_MASK = 34, CD_GRID_PAINT_MASK = 35, CD_MVERT_SKIN = 36, CD_FREESTYLE_EDGE = 37, CD_FREESTYLE_FACE = 38, CD_MLOOPTANGENT = 39, CD_TESSLOOPNORMAL = 40, CD_CUSTOMLOOPNORMAL = 41, CD_NUMTYPES = 42
Type of data in layer.
java.io.IOException
__DNA__FIELD__type
public void setType(int type) throws java.io.IOException
CD_AUTO_FROM_NAME = -1, CD_MVERT = 0, CD_MSTICKY = 1, // DEPRECATED CD_MDEFORMVERT = 2, CD_MEDGE = 3, CD_MFACE = 4, CD_MTFACE = 5, CD_MCOL = 6, CD_ORIGINDEX = 7, CD_NORMAL = 8, // CD_POLYINDEX = 9, CD_PROP_FLT = 10, CD_PROP_INT = 11, CD_PROP_STR = 12, CD_ORIGSPACE = 13, // for modifier stack face location mapping CD_ORCO = 14, CD_MTEXPOLY = 15, CD_MLOOPUV = 16, CD_MLOOPCOL = 17, CD_TANGENT = 18, CD_MDISPS = 19, CD_PREVIEW_MCOL = 20, // for displaying weightpaint colors // CD_ID_MCOL = 21, CD_TEXTURE_MLOOPCOL = 22, CD_CLOTH_ORCO = 23, CD_RECAST = 24, // BMESH ONLY START CD_MPOLY = 25, CD_MLOOP = 26, CD_SHAPE_KEYINDEX = 27, CD_SHAPEKEY = 28, CD_BWEIGHT = 29, CD_CREASE = 30, CD_ORIGSPACE_MLOOP = 31, CD_PREVIEW_MLOOPCOL = 32, CD_BM_ELEM_PYPTR = 33, // BMESH ONLY END CD_PAINT_MASK = 34, CD_GRID_PAINT_MASK = 35, CD_MVERT_SKIN = 36, CD_FREESTYLE_EDGE = 37, CD_FREESTYLE_FACE = 38, CD_MLOOPTANGENT = 39, CD_TESSLOOPNORMAL = 40, CD_CUSTOMLOOPNORMAL = 41, CD_NUMTYPES = 42
Type of data in layer.
java.io.IOException
__DNA__FIELD__type
public int getOffset() throws java.io.IOException
In editmode, offset of layer in block.
java.io.IOException
__DNA__FIELD__offset
public void setOffset(int offset) throws java.io.IOException
In editmode, offset of layer in block.
java.io.IOException
__DNA__FIELD__offset
public int getFlag() throws java.io.IOException
// Indicates layer should not be copied by CustomData_from_template or CustomData_copy_data CD_FLAG_NOCOPY = (1 << 0), // Indicates layer should not be freed (for layers backed by external data) CD_FLAG_NOFREE = (1 << 1), // Indicates the layer is only temporary, also implies no copy CD_FLAG_TEMPORARY = ((1 << 2) | CD_FLAG_NOCOPY), // Indicates the layer is stored in an external file CD_FLAG_EXTERNAL = (1 << 3), // Indicates external data is read into memory CD_FLAG_IN_MEMORY = (1 << 4),
General purpose flag.
java.io.IOException
__DNA__FIELD__flag
public void setFlag(int flag) throws java.io.IOException
// Indicates layer should not be copied by CustomData_from_template or CustomData_copy_data CD_FLAG_NOCOPY = (1 << 0), // Indicates layer should not be freed (for layers backed by external data) CD_FLAG_NOFREE = (1 << 1), // Indicates the layer is only temporary, also implies no copy CD_FLAG_TEMPORARY = ((1 << 2) | CD_FLAG_NOCOPY), // Indicates the layer is stored in an external file CD_FLAG_EXTERNAL = (1 << 3), // Indicates external data is read into memory CD_FLAG_IN_MEMORY = (1 << 4),
General purpose flag.
java.io.IOException
__DNA__FIELD__flag
public int getActive() throws java.io.IOException
Number of the active layer of this type.
java.io.IOException
__DNA__FIELD__active
public void setActive(int active) throws java.io.IOException
Number of the active layer of this type.
java.io.IOException
__DNA__FIELD__active
public int getActive_rnd() throws java.io.IOException
Number of the layer to render.
java.io.IOException
__DNA__FIELD__active_rnd
public void setActive_rnd(int active_rnd) throws java.io.IOException
Number of the layer to render.
java.io.IOException
__DNA__FIELD__active_rnd
public int getActive_clone() throws java.io.IOException
Number of the layer to render.
java.io.IOException
__DNA__FIELD__active_clone
public void setActive_clone(int active_clone) throws java.io.IOException
Number of the layer to render.
java.io.IOException
__DNA__FIELD__active_clone
public int getActive_mask() throws java.io.IOException
Number of the layer to render.
java.io.IOException
__DNA__FIELD__active_mask
public void setActive_mask(int active_mask) throws java.io.IOException
Number of the layer to render.
java.io.IOException
__DNA__FIELD__active_mask
public int getUid() throws java.io.IOException
Shape keyblock unique id reference.
java.io.IOException
__DNA__FIELD__uid
public void setUid(int uid) throws java.io.IOException
Shape keyblock unique id reference.
java.io.IOException
__DNA__FIELD__uid
public CArrayFacade<java.lang.Byte> getName() throws java.io.IOException
Layer name, MAX_CUSTOMDATA_LAYER_NAME.
java.io.IOException
__DNA__FIELD__name
public void setName(CArrayFacade<java.lang.Byte> name) throws java.io.IOException
Layer name, MAX_CUSTOMDATA_LAYER_NAME.
java.io.IOException
__DNA__FIELD__name
public CPointer<java.lang.Object> getData() throws java.io.IOException
Layer data.
java.io.IOException
__DNA__FIELD__data
public void setData(CPointer<java.lang.Object> data) throws java.io.IOException
Layer data.
java.io.IOException
__DNA__FIELD__data
public CPointer<CustomDataLayer> __io__addressof()