|
Blender V5.0
|
#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 135 of file attribute_access_intern.hh.
|
inline |
Definition at line 142 of file attribute_access_intern.hh.
|
finalvirtual |
Return false when the iteration was stopped.
Implements blender::bke::DynamicAttributesProvider.
Definition at line 633 of file attribute_access.cc.
References BLI_assert, blender::bke::custom_data_type_to_attr_type(), blender::bke::custom_data_type_to_cpp_type(), data, blender::GVArray::from_span(), blender::bke::AttributeIter::is_stopped(), CustomData::layers, and CustomData::totlayer.
|
inlinefinalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 163 of file attribute_access_intern.hh.
|
finalvirtual |
Reimplemented from blender::bke::DynamicAttributesProvider.
Definition at line 594 of file attribute_access.cc.
References blender::bke::add_custom_data_layer_from_attribute_init(), blender::bke::AttributeInit::Construct, CustomData::layers, CustomData::totlayer, and blender::bke::AttributeInit::type.
|
finalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 571 of file attribute_access.cc.
References CustomData_free_layer(), i, CustomData::layers, CustomDataLayer::name, CustomData::totlayer, and CustomDataLayer::type.
|
finalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 520 of file attribute_access.cc.
References blender::bke::custom_data_type_to_cpp_type(), data, blender::GVArray::from_span(), CustomData::layers, and CustomData::totlayer.
|
finalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 542 of file attribute_access.cc.
References blender::bke::custom_data_type_to_cpp_type(), CustomData_get_layer_named_for_write(), data, blender::GVMutableArray::from_span(), CustomData::layers, and CustomData::totlayer.