Blender V4.3
blender::bke::DynamicAttributesProvider Class Referenceabstract

#include <attribute_access_intern.hh>

Inherited by blender::bke::CurvesVertexGroupsAttributeProvider, blender::bke::CustomDataAttributeProvider, and blender::bke::MeshVertexGroupsAttributeProvider.

Public Member Functions

virtual GAttributeReader try_get_for_read (const void *owner, StringRef attribute_id) const =0
 
virtual GAttributeWriter try_get_for_write (void *owner, StringRef attribute_id) const =0
 
virtual bool try_delete (void *owner, StringRef attribute_id) const =0
 
virtual bool try_create (void *owner, const StringRef attribute_id, const AttrDomain domain, const eCustomDataType data_type, const AttributeInit &initializer) const
 
virtual bool foreach_attribute (const void *owner, FunctionRef< void(const AttributeIter &)> fn) const =0
 
virtual void foreach_domain (const FunctionRef< void(AttrDomain)> 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 99 of file attribute_access_intern.hh.

Member Function Documentation

◆ foreach_attribute()

virtual bool blender::bke::DynamicAttributesProvider::foreach_attribute ( const void * owner,
FunctionRef< void(const AttributeIter &)> fn ) const
pure virtual

Return false when the iteration was stopped.

Implemented in blender::bke::CurvesVertexGroupsAttributeProvider, and blender::bke::CustomDataAttributeProvider.

◆ foreach_domain()

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

◆ try_create()

virtual bool blender::bke::DynamicAttributesProvider::try_create ( void * owner,
const StringRef attribute_id,
const AttrDomain domain,
const eCustomDataType data_type,
const AttributeInit & initializer ) const
inlinevirtual

Reimplemented in blender::bke::CustomDataAttributeProvider.

Definition at line 104 of file attribute_access_intern.hh.

References UNUSED_VARS.

◆ try_delete()

virtual bool blender::bke::DynamicAttributesProvider::try_delete ( void * owner,
StringRef attribute_id ) const
pure virtual

◆ try_get_for_read()

virtual GAttributeReader blender::bke::DynamicAttributesProvider::try_get_for_read ( const void * owner,
StringRef attribute_id ) const
pure virtual

◆ try_get_for_write()

virtual GAttributeWriter blender::bke::DynamicAttributesProvider::try_get_for_write ( void * owner,
StringRef attribute_id ) const
pure virtual

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