Blender V4.3
blender::bke::BuiltinCustomDataLayerProvider Class Referencefinal

#include <attribute_access_intern.hh>

Inherits blender::bke::BuiltinAttributeProvider.

Public Member Functions

 BuiltinCustomDataLayerProvider (std::string attribute_name, const AttrDomain domain, const eCustomDataType data_type, const DeletableEnum deletable, const CustomDataAccessInfo custom_data_access, const UpdateOnChange update_on_change, const AttributeValidator validator={}, const GPointer default_value={})
 
GAttributeReader try_get_for_read (const void *owner) const final
 
GAttributeWriter try_get_for_write (void *owner) const final
 
bool try_delete (void *owner) const final
 
bool try_create (void *owner, const AttributeInit &initializer) const final
 
bool exists (const void *owner) const final
 
- Public Member Functions inherited from blender::bke::BuiltinAttributeProvider
 BuiltinAttributeProvider (std::string name, const AttrDomain domain, const eCustomDataType data_type, const DeletableEnum deletable, AttributeValidator validator={}, const GPointer default_value={})
 
StringRefNull name () const
 
AttrDomain domain () const
 
eCustomDataType data_type () const
 
AttributeValidator validator () const
 

Additional Inherited Members

- Public Types inherited from blender::bke::BuiltinAttributeProvider
enum  DeletableEnum { Deletable , NonDeletable }
 
- Protected Attributes inherited from blender::bke::BuiltinAttributeProvider
const std::string name_
 
const AttrDomain domain_
 
const eCustomDataType data_type_
 
const DeletableEnum deletable_
 
const AttributeValidator validator_
 
const GPointer default_value_
 

Detailed Description

This provider is used to provide access to builtin attributes. It supports making internal types available as different types.

It also supports named builtin attributes, and will look up attributes in CustomData by name if the stored type is the same as the attribute type.

Definition at line 173 of file attribute_access_intern.hh.

Constructor & Destructor Documentation

◆ BuiltinCustomDataLayerProvider()

blender::bke::BuiltinCustomDataLayerProvider::BuiltinCustomDataLayerProvider ( std::string attribute_name,
const AttrDomain domain,
const eCustomDataType data_type,
const DeletableEnum deletable,
const CustomDataAccessInfo custom_data_access,
const UpdateOnChange update_on_change,
const AttributeValidator validator = {},
const GPointer default_value = {} )
inline

Definition at line 179 of file attribute_access_intern.hh.

Member Function Documentation

◆ exists()

bool blender::bke::BuiltinCustomDataLayerProvider::exists ( const void * owner) const
finalvirtual

◆ try_create()

◆ try_delete()

◆ try_get_for_read()

◆ try_get_for_write()


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