|
Blender
V2.93
|
#include <string.h>#include "MEM_guardedalloc.h"#include "DNA_ID.h"#include "DNA_customdata_types.h"#include "DNA_hair_types.h"#include "DNA_mesh_types.h"#include "DNA_meshdata_types.h"#include "DNA_pointcloud_types.h"#include "BLI_string_utf8.h"#include "BKE_attribute.h"#include "BKE_customdata.h"#include "BKE_hair.h"#include "BKE_pointcloud.h"#include "BKE_report.h"#include "RNA_access.h"Go to the source code of this file.
Classes | |
| struct | DomainInfo |
Typedefs | |
| typedef struct DomainInfo | DomainInfo |
| typedef struct DomainInfo DomainInfo |
|
static |
Definition at line 89 of file attribute.c.
References ARRAY_HAS_ITEM, ATTR_DOMAIN_NUM, DomainInfo::customdata, get_domains(), CustomData::layers, NULL, and CustomData::totlayer.
Referenced by BKE_id_attribute_remove(), and BKE_id_attribute_rename().
| int BKE_id_attribute_data_length | ( | ID * | id, |
| CustomDataLayer * | layer | ||
| ) |
Definition at line 209 of file attribute.c.
References ARRAY_HAS_ITEM, ATTR_DOMAIN_NUM, BLI_assert, DomainInfo::customdata, get_domains(), CustomData::layers, DomainInfo::length, and CustomData::totlayer.
Referenced by BKE_id_attribute_remove().
| AttributeDomain BKE_id_attribute_domain | ( | ID * | id, |
| CustomDataLayer * | layer | ||
| ) |
Definition at line 193 of file attribute.c.
References ARRAY_HAS_ITEM, ATTR_DOMAIN_NUM, BLI_assert, DomainInfo::customdata, get_domains(), CustomData::layers, and CustomData::totlayer.
| CustomDataLayer* BKE_id_attribute_new | ( | ID * | id, |
| const char * | name, | ||
| const int | type, | ||
| const AttributeDomain | domain, | ||
| ReportList * | reports | ||
| ) |
Definition at line 137 of file attribute.c.
References ATTR_DOMAIN_NUM, BKE_report(), CD_DEFAULT, DomainInfo::customdata, CustomData_add_layer_named(), CustomData_get_named_layer_index(), get_domains(), CustomData::layers, length(), NULL, RPT_ERROR, and type.
Referenced by geometry_attribute_add_exec().
| bool BKE_id_attribute_remove | ( | ID * | id, |
| CustomDataLayer * | layer, | ||
| ReportList * | reports | ||
| ) |
Definition at line 154 of file attribute.c.
References attribute_customdata_find(), BKE_id_attribute_data_length(), BKE_id_attribute_required(), BKE_report(), CustomData_free_layer(), CustomData_get_named_layer_index(), length(), CustomDataLayer::name, RPT_ERROR, and CustomDataLayer::type.
Referenced by geometry_attribute_remove_exec().
| bool BKE_id_attribute_rename | ( | ID * | id, |
| CustomDataLayer * | layer, | ||
| const char * | new_name, | ||
| ReportList * | reports | ||
| ) |
Definition at line 116 of file attribute.c.
References attribute_customdata_find(), BKE_id_attribute_required(), BKE_report(), BLI_assert, BLI_strncpy_utf8(), CustomData_set_layer_unique_name(), CustomData::layers, CustomDataLayer::name, NULL, and RPT_ERROR.
| bool BKE_id_attribute_required | ( | ID * | id, |
| CustomDataLayer * | layer | ||
| ) |
Definition at line 225 of file attribute.c.
References BKE_hair_customdata_required(), BKE_pointcloud_customdata_required(), GS, id, ID_HA, ID_PT, and ID::name.
Referenced by BKE_id_attribute_remove(), and BKE_id_attribute_rename().
| CustomDataLayer* BKE_id_attributes_active_get | ( | ID * | id | ) |
Definition at line 239 of file attribute.c.
References ATTR_DOMAIN_NUM, BKE_id_attributes_active_index_p(), BKE_id_attributes_length(), CD_MASK_PROP_ALL, CD_TYPE_AS_MASK, DomainInfo::customdata, get_domains(), CustomData::layers, NULL, CustomData::totlayer, and CustomDataLayer::type.
Referenced by geometry_attribute_remove_exec().
| int* BKE_id_attributes_active_index_p | ( | ID * | id | ) |
Definition at line 293 of file attribute.c.
References GS, id, ID_HA, ID_ME, ID_PT, ID::name, and NULL.
Referenced by BKE_id_attributes_active_get(), and BKE_id_attributes_active_set().
| void BKE_id_attributes_active_set | ( | ID * | id, |
| CustomDataLayer * | active_layer | ||
| ) |
Definition at line 269 of file attribute.c.
References ATTR_DOMAIN_NUM, BKE_id_attributes_active_index_p(), CD_MASK_PROP_ALL, CD_TYPE_AS_MASK, DomainInfo::customdata, get_domains(), CustomData::layers, CustomData::totlayer, and CustomDataLayer::type.
Referenced by geometry_attribute_add_exec().
| CustomData* BKE_id_attributes_iterator_next_domain | ( | ID * | id, |
| CustomDataLayer * | layers | ||
| ) |
Definition at line 310 of file attribute.c.
References ATTR_DOMAIN_NUM, DomainInfo::customdata, get_domains(), CustomData::layers, and NULL.
| int BKE_id_attributes_length | ( | ID * | id, |
| const CustomDataMask | mask | ||
| ) |
Definition at line 176 of file attribute.c.
References ATTR_DOMAIN_NUM, DomainInfo::customdata, CustomData_number_of_layers_typemask(), get_domains(), length(), and mask().
Referenced by BKE_id_attributes_active_get().
| bool BKE_id_attributes_supported | ( | struct ID * | id | ) |
Definition at line 104 of file attribute.c.
References ATTR_DOMAIN_NUM, and get_domains().
Referenced by geometry_attributes_poll().
|
static |
Definition at line 53 of file attribute.c.
References ATTR_DOMAIN_CORNER, ATTR_DOMAIN_CURVE, ATTR_DOMAIN_EDGE, ATTR_DOMAIN_FACE, ATTR_DOMAIN_NUM, ATTR_DOMAIN_POINT, Hair::cdata, GS, id, ID_HA, ID_ME, ID_PT, Mesh::ldata, mesh, ID::name, Hair::pdata, PointCloud::pdata, Hair::totcurve, Mesh::totedge, Mesh::totloop, Hair::totpoint, PointCloud::totpoint, Mesh::totpoly, and Mesh::totvert.
Referenced by attribute_customdata_find(), BKE_id_attribute_data_length(), BKE_id_attribute_domain(), BKE_id_attribute_new(), BKE_id_attributes_active_get(), BKE_id_attributes_active_set(), BKE_id_attributes_iterator_next_domain(), BKE_id_attributes_length(), and BKE_id_attributes_supported().