Blender  V3.3
Public Member Functions | List of all members
blender::bke::CustomDataAttributeProvider Class Referencefinal

#include <attribute_access_intern.hh>

Inheritance diagram for blender::bke::CustomDataAttributeProvider:
blender::bke::DynamicAttributesProvider

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
 

Detailed Description

This is the attribute provider for most user generated attributes.

Definition at line 126 of file attribute_access_intern.hh.

Constructor & Destructor Documentation

◆ CustomDataAttributeProvider()

blender::bke::CustomDataAttributeProvider::CustomDataAttributeProvider ( const eAttrDomain  domain,
const CustomDataAccessInfo  custom_data_access 
)
inline

Definition at line 133 of file attribute_access_intern.hh.

Member Function Documentation

◆ foreach_attribute()

bool blender::bke::CustomDataAttributeProvider::foreach_attribute ( const void owner,
const AttributeForeachCallback  callback 
) const
finalvirtual

◆ foreach_domain()

void blender::bke::CustomDataAttributeProvider::foreach_domain ( const FunctionRef< void(eAttrDomain)>  callback) const
inlinefinalvirtual

Implements blender::bke::DynamicAttributesProvider.

Definition at line 154 of file attribute_access_intern.hh.

References callback.

◆ try_create()

bool blender::bke::CustomDataAttributeProvider::try_create ( void owner,
const AttributeIDRef attribute_id,
eAttrDomain  domain,
const eCustomDataType  data_type,
const AttributeInit initializer 
) const
finalvirtual

◆ try_delete()

bool blender::bke::CustomDataAttributeProvider::try_delete ( void owner,
const AttributeIDRef attribute_id 
) const
finalvirtual

◆ try_get_for_read()

GAttributeReader blender::bke::CustomDataAttributeProvider::try_get_for_read ( const void owner,
const AttributeIDRef attribute_id 
) const
finalvirtual

◆ try_get_for_write()

GAttributeWriter blender::bke::CustomDataAttributeProvider::try_get_for_write ( void owner,
const AttributeIDRef attribute_id 
) const
finalvirtual

The documentation for this class was generated from the following files: