|
Blender V4.5
|
#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 134 of file attribute_access_intern.hh.
|
inline |
Definition at line 141 of file attribute_access_intern.hh.
|
finalvirtual |
Return false when the iteration was stopped.
Implements blender::bke::DynamicAttributesProvider.
Definition at line 636 of file attribute_access.cc.
References BLI_assert, blender::bke::custom_data_type_to_cpp_type(), data, blender::GVArray::ForSpan(), blender::bke::AttributeIter::is_stopped(), CustomData::layers, and CustomData::totlayer.
|
inlinefinalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 162 of file attribute_access_intern.hh.
|
finalvirtual |
Reimplemented from blender::bke::DynamicAttributesProvider.
Definition at line 597 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 574 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 523 of file attribute_access.cc.
References blender::bke::custom_data_type_to_cpp_type(), data, blender::GVArray::ForSpan(), CustomData::layers, and CustomData::totlayer.
|
finalvirtual |
Implements blender::bke::DynamicAttributesProvider.
Definition at line 545 of file attribute_access.cc.
References blender::bke::custom_data_type_to_cpp_type(), CustomData_get_layer_named_for_write(), data, blender::GVMutableArray::ForSpan(), CustomData::layers, and CustomData::totlayer.