|
Blender V5.3
|
#include <BKE_attribute.hh>
Public Attributes | |
| bool(*) | domain_supported (const void *owner, AttrDomain domain) |
| int(*) | domain_size (const void *owner, AttrDomain domain) |
| std::optional< AttributeDomainAndType >(*) | builtin_domain_and_type (const void *owner, StringRef name) |
| GPointer(*) | get_builtin_default (const void *owner, StringRef name) |
| std::optional< AttributeMetaData >(*) | lookup_meta_data (const void *owner, StringRef name) |
| GAttributeReader(*) | lookup (const void *owner, StringRef name) |
| GVArray(*) | adapt_domain (const void *owner, const GVArray &varray, AttrDomain from_domain, AttrDomain to_domain) |
| void(*) | foreach_attribute (const void *owner, FunctionRef< void(const AttributeIter &iter)> fn, const AttributeAccessor &accessor) |
| AttributeValidator(*) | lookup_validator (const void *owner, StringRef name) |
| GAttributeWriter(*) | lookup_for_write (void *owner, StringRef name) |
| bool(*) | remove (void *owner, StringRef name) |
| bool(*) | add (void *owner, StringRef name, AttrDomain domain, AttrType data_type, const AttributeInit &initializer) |
| Set< StringRef >(*) | rename (void *owner, const Map< StringRef, StringRef > &map, bool overwrite) |
| bool(*) | assign_data (void *owner, StringRef name, const AttributeInit &initializer) |
Core functions which make up the attribute API. They should not be called directly, but through #AttributesAccessor or #MutableAttributesAccessor.
This is similar to a virtual function table. A struct of function pointers is used instead, because this way the attribute accessors can be trivial and can be passed around by value. This makes it easy to return the attribute accessor for a geometry from a function.
Definition at line 460 of file BKE_attribute.hh.
| GVArray(*) blender::bke::AttributeAccessorFunctions::adapt_domain(const void *owner, const GVArray &varray, AttrDomain from_domain, AttrDomain to_domain) |
Definition at line 468 of file BKE_attribute.hh.
Referenced by blender::bke::AttributeAccessor::adapt_domain().
| bool(*) blender::bke::AttributeAccessorFunctions::add(void *owner, StringRef name, AttrDomain domain, AttrType data_type, const AttributeInit &initializer) |
Definition at line 478 of file BKE_attribute.hh.
Referenced by blender::bke::MutableAttributeAccessor::add().
| bool(*) blender::bke::AttributeAccessorFunctions::assign_data(void *owner, StringRef name, const AttributeInit &initializer) |
Definition at line 484 of file BKE_attribute.hh.
Referenced by blender::bke::MutableAttributeAccessor::assign_data().
| std::optional< AttributeDomainAndType >(*) blender::bke::AttributeAccessorFunctions::builtin_domain_and_type(const void *owner, StringRef name) |
Definition at line 462 of file BKE_attribute.hh.
Referenced by blender::bke::AttributeAccessor::get_builtin_domain_and_type(), and blender::bke::AttributeAccessor::is_builtin().
| int(*) blender::bke::AttributeAccessorFunctions::domain_size(const void *owner, AttrDomain domain) |
Definition at line 462 of file BKE_attribute.hh.
Referenced by blender::bke::AttributeAccessor::domain_size().
| bool(*) blender::bke::AttributeAccessorFunctions::domain_supported(const void *owner, AttrDomain domain) |
Definition at line 461 of file BKE_attribute.hh.
Referenced by blender::bke::AttributeAccessor::domain_supported().
| void(*) blender::bke::AttributeAccessorFunctions::foreach_attribute(const void *owner, FunctionRef< void(const AttributeIter &iter)> fn, const AttributeAccessor &accessor) |
Definition at line 472 of file BKE_attribute.hh.
Referenced by blender::bke::AttributeAccessor::foreach_attribute().
| GPointer(*) blender::bke::AttributeAccessorFunctions::get_builtin_default(const void *owner, StringRef name) |
Definition at line 465 of file BKE_attribute.hh.
Referenced by blender::bke::AttributeAccessor::get_builtin_default().
| GAttributeReader(*) blender::bke::AttributeAccessorFunctions::lookup(const void *owner, StringRef name) |
Definition at line 467 of file BKE_attribute.hh.
Referenced by blender::bke::AttributeAccessor::lookup().
| GAttributeWriter(*) blender::bke::AttributeAccessorFunctions::lookup_for_write(void *owner, StringRef name) |
Definition at line 476 of file BKE_attribute.hh.
Referenced by blender::bke::MutableAttributeAccessor::lookup_for_write().
| std::optional< AttributeMetaData >(*) blender::bke::AttributeAccessorFunctions::lookup_meta_data(const void *owner, StringRef name) |
Definition at line 465 of file BKE_attribute.hh.
Referenced by blender::bke::AttributeAccessor::lookup_meta_data().
| AttributeValidator(*) blender::bke::AttributeAccessorFunctions::lookup_validator(const void *owner, StringRef name) |
Definition at line 475 of file BKE_attribute.hh.
Referenced by blender::bke::AttributeAccessor::lookup_validator().
| bool(*) blender::bke::AttributeAccessorFunctions::remove(void *owner, StringRef name) |
Definition at line 477 of file BKE_attribute.hh.
Referenced by blender::bke::MutableAttributeAccessor::remove().
| Set< StringRef >(*) blender::bke::AttributeAccessorFunctions::rename(void *owner, const Map< StringRef, StringRef > &map, bool overwrite) |
Definition at line 478 of file BKE_attribute.hh.
Referenced by blender::bke::MutableAttributeAccessor::rename(), and blender::bke::MutableAttributeAccessor::rename().