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

#include <attribute_access_intern.hh>

Inherited by blender::bke::CustomDataAttributeProvider, blender::bke::NamedLegacyCustomDataProvider, and blender::bke::VertexGroupsAttributeProvider.

Public Member Functions

virtual ReadAttributePtr try_get_for_read (const GeometryComponent &component, const StringRef attribute_name) const =0
 
virtual WriteAttributePtr try_get_for_write (GeometryComponent &component, const StringRef attribute_name) const =0
 
virtual bool try_delete (GeometryComponent &component, const StringRef attribute_name) const =0
 
virtual bool try_create (GeometryComponent &UNUSED(component), const StringRef UNUSED(attribute_name), const AttributeDomain UNUSED(domain), const CustomDataType UNUSED(data_type)) const
 
virtual bool foreach_attribute (const GeometryComponent &component, const AttributeForeachCallback callback) const =0
 
virtual void foreach_domain (const FunctionRef< void(AttributeDomain)> callback) const =0
 

Detailed Description

A #DynamicAttributesProvider manages a set of named attributes on a geometry component. Each attribute has a name, domain and type.

Definition at line 273 of file attribute_access_intern.hh.

Member Function Documentation

◆ foreach_attribute()

virtual bool blender::bke::DynamicAttributesProvider::foreach_attribute ( const GeometryComponent component,
const AttributeForeachCallback  callback 
) const
pure virtual

◆ foreach_domain()

virtual void blender::bke::DynamicAttributesProvider::foreach_domain ( const FunctionRef< void(AttributeDomain)>  callback) const
pure virtual

◆ try_create()

virtual bool blender::bke::DynamicAttributesProvider::try_create ( GeometryComponent UNUSEDcomponent,
const StringRef   UNUSEDattribute_name,
const AttributeDomain   UNUSEDdomain,
const CustomDataType   UNUSEDdata_type 
) const
inlinevirtual

Definition at line 280 of file attribute_access_intern.hh.

◆ try_delete()

virtual bool blender::bke::DynamicAttributesProvider::try_delete ( GeometryComponent component,
const StringRef  attribute_name 
) const
pure virtual

◆ try_get_for_read()

virtual ReadAttributePtr blender::bke::DynamicAttributesProvider::try_get_for_read ( const GeometryComponent component,
const StringRef  attribute_name 
) const
pure virtual

◆ try_get_for_write()

virtual WriteAttributePtr blender::bke::DynamicAttributesProvider::try_get_for_write ( GeometryComponent component,
const StringRef  attribute_name 
) const
pure virtual

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