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

#include <attribute_access_intern.hh>

Inherits blender::bke::DynamicAttributesProvider.

Public Member Functions

 CustomDataAttributeProvider (const AttributeDomain domain, const CustomDataAccessInfo custom_data_access)
 
ReadAttributePtr try_get_for_read (const GeometryComponent &component, const StringRef attribute_name) const final
 
WriteAttributePtr try_get_for_write (GeometryComponent &component, const StringRef attribute_name) const final
 
bool try_delete (GeometryComponent &component, const StringRef attribute_name) const final
 
bool try_create (GeometryComponent &component, const StringRef attribute_name, const AttributeDomain domain, const CustomDataType data_type) const final
 
bool foreach_attribute (const GeometryComponent &component, const AttributeForeachCallback callback) const final
 
void foreach_domain (const FunctionRef< void(AttributeDomain)> callback) const final
 
- Public Member Functions inherited from blender::bke::DynamicAttributesProvider
virtual bool try_create (GeometryComponent &UNUSED(component), const StringRef UNUSED(attribute_name), const AttributeDomain UNUSED(domain), const CustomDataType UNUSED(data_type)) const
 

Detailed Description

This is the attribute provider for most user generated attributes.

Definition at line 297 of file attribute_access_intern.hh.

Constructor & Destructor Documentation

◆ CustomDataAttributeProvider()

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

Definition at line 306 of file attribute_access_intern.hh.

Member Function Documentation

◆ foreach_attribute()

bool blender::bke::CustomDataAttributeProvider::foreach_attribute ( const GeometryComponent component,
const AttributeForeachCallback  callback 
) const
finalvirtual

◆ foreach_domain()

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

Implements blender::bke::DynamicAttributesProvider.

Definition at line 328 of file attribute_access_intern.hh.

References callback.

◆ try_create()

bool blender::bke::CustomDataAttributeProvider::try_create ( GeometryComponent component,
const StringRef  attribute_name,
const AttributeDomain  domain,
const CustomDataType  data_type 
) const
final

◆ try_delete()

bool blender::bke::CustomDataAttributeProvider::try_delete ( GeometryComponent component,
const StringRef  attribute_name 
) const
finalvirtual

◆ try_get_for_read()

ReadAttributePtr blender::bke::CustomDataAttributeProvider::try_get_for_read ( const GeometryComponent component,
const StringRef  attribute_name 
) const
finalvirtual

◆ try_get_for_write()

WriteAttributePtr blender::bke::CustomDataAttributeProvider::try_get_for_write ( GeometryComponent component,
const StringRef  attribute_name 
) const
finalvirtual

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