Blender
V3.3
|
#include <attribute_access_intern.hh>
Public Member Functions | |
CustomDataAttributeProvider (const eAttrDomain domain, const CustomDataAccessInfo custom_data_access) | |
GAttributeReader | try_get_for_read (const void *owner, const AttributeIDRef &attribute_id) const final |
GAttributeWriter | try_get_for_write (void *owner, const AttributeIDRef &attribute_id) const final |
bool | try_delete (void *owner, const AttributeIDRef &attribute_id) const final |
bool | try_create (void *owner, const AttributeIDRef &attribute_id, eAttrDomain domain, const eCustomDataType data_type, const AttributeInit &initializer) const final |
bool | foreach_attribute (const void *owner, const AttributeForeachCallback callback) const final |
void | foreach_domain (const FunctionRef< void(eAttrDomain)> callback) const final |
This is the attribute provider for most user generated attributes.
Definition at line 126 of file attribute_access_intern.hh.
|
inline |
Definition at line 133 of file attribute_access_intern.hh.
|
finalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 532 of file attribute_access.cc.
References blender::bke::attribute_id_from_custom_data_layer(), callback, blender::bke::CustomDataAccessInfo::get_const_custom_data, if(), CustomData::layers, and CustomData::totlayer.
|
inlinefinalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 154 of file attribute_access_intern.hh.
References callback.
|
finalvirtual |
Reimplemented from blender::bke::DynamicAttributesProvider.
Definition at line 505 of file attribute_access.cc.
References blender::bke::add_custom_data_layer_from_attribute_init(), blender::bke::custom_data_layer_matches_attribute_id(), blender::bke::CustomDataAccessInfo::get_custom_data, blender::bke::CustomDataAccessInfo::get_element_num, CustomData::layers, and CustomData::totlayer.
|
finalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 486 of file attribute_access.cc.
References blender::bke::custom_data_layer_matches_attribute_id(), CustomData_free_layer(), blender::bke::CustomDataAccessInfo::get_custom_data, blender::bke::CustomDataAccessInfo::get_element_num, CustomData::layers, CustomData::totlayer, and CustomDataLayer::type.
|
finalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 434 of file attribute_access.cc.
References blender::bke::custom_data_layer_matches_attribute_id(), blender::bke::custom_data_type_to_cpp_type(), data, blender::GVArray::ForSpan(), blender::bke::CustomDataAccessInfo::get_const_custom_data, blender::bke::CustomDataAccessInfo::get_element_num, CustomData::layers, CustomData::totlayer, and type.
|
finalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 456 of file attribute_access.cc.
References blender::bke::AttributeIDRef::anonymous_id(), blender::bke::custom_data_layer_matches_attribute_id(), blender::bke::custom_data_type_to_cpp_type(), CustomData_duplicate_referenced_layer_anonymous(), CustomData_duplicate_referenced_layer_named(), data, blender::GVMutableArray::ForSpan(), blender::bke::CustomDataAccessInfo::get_custom_data, blender::bke::CustomDataAccessInfo::get_element_num, blender::bke::AttributeIDRef::is_named(), CustomData::layers, CustomData::totlayer, and type.