|
Blender V4.3
|
#include <attribute_access_intern.hh>
Inherits blender::bke::DynamicAttributesProvider.
Public Member Functions | |
| CustomDataAttributeProvider (const AttrDomain domain, const CustomDataAccessInfo custom_data_access) | |
| GAttributeReader | try_get_for_read (const void *owner, StringRef attribute_id) const final |
| GAttributeWriter | try_get_for_write (void *owner, StringRef attribute_id) const final |
| bool | try_delete (void *owner, StringRef attribute_id) const final |
| bool | try_create (void *owner, StringRef attribute_id, AttrDomain domain, const eCustomDataType data_type, const AttributeInit &initializer) const final |
| bool | foreach_attribute (const void *owner, FunctionRef< void(const AttributeIter &)> fn) const final |
| void | foreach_domain (const FunctionRef< void(AttrDomain)> 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 |
Return false when the iteration was stopped.
Implements blender::bke::DynamicAttributesProvider.
Definition at line 534 of file attribute_access.cc.
References BLI_assert, blender::bke::custom_data_type_to_cpp_type(), blender::GSpan::data(), blender::GVArray::ForSpan(), blender::bke::CustomDataAccessInfo::get_const_custom_data, blender::bke::CustomDataAccessInfo::get_element_num, CustomData::layers, blender::bke::AttributeIter::name, 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 507 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 488 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, and CustomData::totlayer.
|
finalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 441 of file attribute_access.cc.
References blender::bke::custom_data_layer_matches_attribute_id(), blender::bke::custom_data_type_to_cpp_type(), blender::GSpan::data(), blender::GVArray::ForSpan(), blender::bke::CustomDataAccessInfo::get_const_custom_data, blender::bke::CustomDataAccessInfo::get_element_num, CustomData::layers, and CustomData::totlayer.
|
finalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 463 of file attribute_access.cc.
References blender::bke::custom_data_layer_matches_attribute_id(), blender::bke::custom_data_type_to_cpp_type(), CustomData_get_layer_named_for_write(), blender::GMutableSpan::data(), blender::GVMutableArray::ForSpan(), blender::bke::CustomDataAccessInfo::get_custom_data, blender::bke::CustomDataAccessInfo::get_element_num, CustomData::layers, and CustomData::totlayer.