public class AssetMetaData extends CFacade
The meta-data of an asset. By creating and giving this for a data-block (ID.asset_data
), the data-block becomes an asset.
This struct must be readable without having to read anything but blocks from the ID
it is attached to! That way, asset information of a file can be read, without reading anything more than that from the file. So pointers to other IDs or ID
data are strictly forbidden.
Modifier and Type | Field and Description |
---|---|
static long[] |
__DNA__FIELD___pad
Field descriptor (offset) for struct member '_pad'.
|
static long[] |
__DNA__FIELD__active_tag
Field descriptor (offset) for struct member 'active_tag'.
|
static long[] |
__DNA__FIELD__description
Field descriptor (offset) for struct member 'description'.
|
static long[] |
__DNA__FIELD__properties
Field descriptor (offset) for struct member 'properties'.
|
static long[] |
__DNA__FIELD__tags
Field descriptor (offset) for struct member 'tags'.
|
static long[] |
__DNA__FIELD__tot_tags
Field descriptor (offset) for struct member 'tot_tags'.
|
static int |
__DNA__SDNA_INDEX
This is the sdna index of the struct AssetMetaData.
|
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
Modifier | Constructor and Description |
---|---|
protected |
AssetMetaData(AssetMetaData that) |
|
AssetMetaData(long __address,
Block __block,
BlockTable __blockTable) |
Modifier and Type | Method and Description |
---|---|
CPointer<AssetMetaData> |
__io__addressof()
Instantiates a pointer on this instance.
|
CArrayFacade<java.lang.Byte> |
get_pad()
Get method for struct member '_pad'.
|
short |
getActive_tag()
Get method for struct member 'active_tag'.
|
CPointer<java.lang.Byte> |
getDescription()
Get method for struct member 'description'.
|
CPointer<IDProperty> |
getProperties()
Get method for struct member 'properties'.
|
ListBase |
getTags()
Get method for struct member 'tags'.
|
short |
getTot_tags()
Get method for struct member 'tot_tags'.
|
void |
set_pad(CArrayFacade<java.lang.Byte> _pad)
Set method for struct member '_pad'.
|
void |
setActive_tag(short active_tag)
Set method for struct member 'active_tag'.
|
void |
setDescription(CPointer<java.lang.Byte> description)
Set method for struct member 'description'.
|
void |
setProperties(CPointer<IDProperty> properties)
Set method for struct member 'properties'.
|
void |
setTags(ListBase tags)
Set method for struct member 'tags'.
|
void |
setTot_tags(short tot_tags)
Set method for struct member 'tot_tags'.
|
__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 AssetMetaData.
org.cakelab.blender.io.dna.internal.StructDNA}
,
org.cakelab.blender.io.block.BlockTable#allocate}
,
Constant Field Valuespublic static final long[] __DNA__FIELD__properties
Custom asset meta-data. Cannot store pointers to IDs (#STRUCT_NO_DATABLOCK_IDPROPERTIES)!
This is how you get a reference on the corresponding field in the struct:
AssetMetaData assetmetadata = ...; CPointer<Object> p = assetmetadata.__dna__addressof(AssetMetaData.__DNA__FIELD__properties); CPointer<CPointer<IDProperty>> p_properties = p.cast(new Class[]{CPointer.class, IDProperty.class});
public static final long[] __DNA__FIELD__description
Optional description of this asset for display in the UI. Dynamic length.
This is how you get a reference on the corresponding field in the struct:
AssetMetaData assetmetadata = ...; CPointer<Object> p = assetmetadata.__dna__addressof(AssetMetaData.__DNA__FIELD__description); CPointer<CPointer<Byte>> p_description = p.cast(new Class[]{CPointer.class, Byte.class});
public static final long[] __DNA__FIELD__tags
User defined tags for this asset. The asset manager uses these for filtering, but how they function exactly (e.g. how they are registered to provide a list of searchable available tags) is up to the asset-engine. AssetTag
This is how you get a reference on the corresponding field in the struct:
AssetMetaData assetmetadata = ...; CPointer<Object> p = assetmetadata.__dna__addressof(AssetMetaData.__DNA__FIELD__tags); CPointer<ListBase> p_tags = p.cast(new Class[]{ListBase.class});
public static final long[] __DNA__FIELD__active_tag
This is how you get a reference on the corresponding field in the struct:
AssetMetaData assetmetadata = ...; CPointer<Object> p = assetmetadata.__dna__addressof(AssetMetaData.__DNA__FIELD__active_tag); CPointer<Short> p_active_tag = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD__tot_tags
Store the number of tags to avoid continuous counting. Could be turned into runtime data, we can always reliably reconstruct it from the list.
This is how you get a reference on the corresponding field in the struct:
AssetMetaData assetmetadata = ...; CPointer<Object> p = assetmetadata.__dna__addressof(AssetMetaData.__DNA__FIELD__tot_tags); CPointer<Short> p_tot_tags = p.cast(new Class[]{Short.class});
public static final long[] __DNA__FIELD___pad
This is how you get a reference on the corresponding field in the struct:
AssetMetaData assetmetadata = ...; CPointer<Object> p = assetmetadata.__dna__addressof(AssetMetaData.__DNA__FIELD___pad); CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
public AssetMetaData(long __address, Block __block, BlockTable __blockTable)
protected AssetMetaData(AssetMetaData that)
public CPointer<IDProperty> getProperties() throws java.io.IOException
Custom asset meta-data. Cannot store pointers to IDs (#STRUCT_NO_DATABLOCK_IDPROPERTIES)!
java.io.IOException
__DNA__FIELD__properties
public void setProperties(CPointer<IDProperty> properties) throws java.io.IOException
Custom asset meta-data. Cannot store pointers to IDs (#STRUCT_NO_DATABLOCK_IDPROPERTIES)!
java.io.IOException
__DNA__FIELD__properties
public CPointer<java.lang.Byte> getDescription() throws java.io.IOException
Optional description of this asset for display in the UI. Dynamic length.
java.io.IOException
__DNA__FIELD__description
public void setDescription(CPointer<java.lang.Byte> description) throws java.io.IOException
Optional description of this asset for display in the UI. Dynamic length.
java.io.IOException
__DNA__FIELD__description
public ListBase getTags() throws java.io.IOException
User defined tags for this asset. The asset manager uses these for filtering, but how they function exactly (e.g. how they are registered to provide a list of searchable available tags) is up to the asset-engine. AssetTag
java.io.IOException
__DNA__FIELD__tags
public void setTags(ListBase tags) throws java.io.IOException
User defined tags for this asset. The asset manager uses these for filtering, but how they function exactly (e.g. how they are registered to provide a list of searchable available tags) is up to the asset-engine. AssetTag
java.io.IOException
__DNA__FIELD__tags
public short getActive_tag() throws java.io.IOException
java.io.IOException
__DNA__FIELD__active_tag
public void setActive_tag(short active_tag) throws java.io.IOException
java.io.IOException
__DNA__FIELD__active_tag
public short getTot_tags() throws java.io.IOException
Store the number of tags to avoid continuous counting. Could be turned into runtime data, we can always reliably reconstruct it from the list.
java.io.IOException
__DNA__FIELD__tot_tags
public void setTot_tags(short tot_tags) throws java.io.IOException
Store the number of tags to avoid continuous counting. Could be turned into runtime data, we can always reliably reconstruct it from the list.
java.io.IOException
__DNA__FIELD__tot_tags
public CArrayFacade<java.lang.Byte> get_pad() throws java.io.IOException
java.io.IOException
__DNA__FIELD___pad
public void set_pad(CArrayFacade<java.lang.Byte> _pad) throws java.io.IOException
java.io.IOException
__DNA__FIELD___pad
public CPointer<AssetMetaData> __io__addressof()